From 6d8b9020422ab12619fa5118e4b0d304e21db408 Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Thu, 1 Jul 2021 15:20:36 +0300 Subject: [PATCH 1/5] Initial pass with GoVet --- citrixadc/helpers_test.go | 16 +- citrixadc/provider.go | 8 +- .../resource_citrixadc_appfwfieldtype.go | 16 +- .../resource_citrixadc_appfwfieldtype_test.go | 9 +- ...resource_citrixadc_appfwjsoncontenttype.go | 10 +- ...rce_citrixadc_appfwjsoncontenttype_test.go | 9 +- citrixadc/resource_citrixadc_appfwpolicy.go | 12 +- .../resource_citrixadc_appfwpolicy_test.go | 6 +- .../resource_citrixadc_appfwpolicylabel.go | 10 +- ...esource_citrixadc_appfwpolicylabel_test.go | 9 +- citrixadc/resource_citrixadc_appfwprofile.go | 160 +++++++------- ..._appfwprofile_cookieconsistency_binding.go | 12 +- ...wprofile_cookieconsistency_binding_test.go | 9 +- ...appfwprofile_crosssitescripting_binding.go | 12 +- ...profile_crosssitescripting_binding_test.go | 9 +- ..._citrixadc_appfwprofile_denyurl_binding.go | 12 +- ...ixadc_appfwprofile_denyurl_binding_test.go | 9 +- ...ixadc_appfwprofile_sqlinjection_binding.go | 12 +- ..._appfwprofile_sqlinjection_binding_test.go | 9 +- ...citrixadc_appfwprofile_starturl_binding.go | 12 +- ...xadc_appfwprofile_starturl_binding_test.go | 9 +- .../resource_citrixadc_appfwprofile_test.go | 9 +- .../resource_citrixadc_appfwxmlcontenttype.go | 10 +- ...urce_citrixadc_appfwxmlcontenttype_test.go | 9 +- .../resource_citrixadc_auditmessageaction.go | 12 +- ...ource_citrixadc_auditmessageaction_test.go | 9 +- .../resource_citrixadc_auditsyslogaction.go | 28 +-- ...source_citrixadc_auditsyslogaction_test.go | 9 +- .../resource_citrixadc_auditsyslogpolicy.go | 27 ++- ...source_citrixadc_auditsyslogpolicy_test.go | 9 +- citrixadc/resource_citrixadc_cluster.go | 70 +++--- citrixadc/resource_citrixadc_cluster_test.go | 9 +- .../resource_citrixadc_clusterfiles_syncer.go | 8 +- citrixadc/resource_citrixadc_cmppolicy.go | 12 +- .../resource_citrixadc_cmppolicy_test.go | 9 +- citrixadc/resource_citrixadc_csaction.go | 12 +- citrixadc/resource_citrixadc_csaction_test.go | 6 +- citrixadc/resource_citrixadc_cspolicy.go | 35 +-- citrixadc/resource_citrixadc_cspolicy_test.go | 9 +- citrixadc/resource_citrixadc_csvserver.go | 112 +++++----- ...citrixadc_csvserver_appfwpolicy_binding.go | 26 ++- ...xadc_csvserver_appfwpolicy_binding_test.go | 9 +- ...e_citrixadc_csvserver_cmppolicy_binding.go | 14 +- ...rixadc_csvserver_cmppolicy_binding_test.go | 10 +- ...ce_citrixadc_csvserver_cspolicy_binding.go | 12 +- ...trixadc_csvserver_cspolicy_binding_test.go | 10 +- ...itrixadc_csvserver_filterpolicy_binding.go | 14 +- ...adc_csvserver_filterpolicy_binding_test.go | 13 +- ...ixadc_csvserver_responderpolicy_binding.go | 14 +- ..._csvserver_responderpolicy_binding_test.go | 10 +- ...trixadc_csvserver_rewritepolicy_binding.go | 14 +- ...dc_csvserver_rewritepolicy_binding_test.go | 10 +- .../resource_citrixadc_csvserver_test.go | 10 +- ...ixadc_csvserver_transformpolicy_binding.go | 12 +- ..._csvserver_transformpolicy_binding_test.go | 10 +- citrixadc/resource_citrixadc_dnsnsrec.go | 12 +- citrixadc/resource_citrixadc_dnsnsrec_test.go | 9 +- citrixadc/resource_citrixadc_dnssoarec.go | 40 ++-- .../resource_citrixadc_dnssoarec_test.go | 9 +- citrixadc/resource_citrixadc_filterpolicy.go | 12 +- .../resource_citrixadc_filterpolicy_test.go | 9 +- citrixadc/resource_citrixadc_gslbservice.go | 83 +++---- .../resource_citrixadc_gslbservice_test.go | 17 +- citrixadc/resource_citrixadc_gslbsite.go | 12 +- citrixadc/resource_citrixadc_gslbsite_test.go | 15 +- citrixadc/resource_citrixadc_gslbvserver.go | 95 ++++---- .../resource_citrixadc_gslbvserver_test.go | 10 +- citrixadc/resource_citrixadc_inat.go | 16 +- citrixadc/resource_citrixadc_inat_test.go | 10 +- citrixadc/resource_citrixadc_installer.go | 2 +- citrixadc/resource_citrixadc_interface.go | 42 ++-- .../resource_citrixadc_interface_test.go | 7 +- citrixadc/resource_citrixadc_ipset.go | 16 +- citrixadc/resource_citrixadc_ipset_test.go | 6 +- citrixadc/resource_citrixadc_iptunnel.go | 12 +- citrixadc/resource_citrixadc_iptunnel_test.go | 9 +- citrixadc/resource_citrixadc_lbmonitor.go | 96 ++++---- .../resource_citrixadc_lbmonitor_test.go | 10 +- citrixadc/resource_citrixadc_lbparameter.go | 8 +- .../resource_citrixadc_lbparameter_test.go | 9 +- citrixadc/resource_citrixadc_lbvserver.go | 44 ++-- ...citrixadc_lbvserver_appfwpolicy_binding.go | 16 +- ...xadc_lbvserver_appfwpolicy_binding_test.go | 9 +- ...e_citrixadc_lbvserver_cmppolicy_binding.go | 14 +- ...rixadc_lbvserver_cmppolicy_binding_test.go | 11 +- ...itrixadc_lbvserver_filterpolicy_binding.go | 14 +- ...adc_lbvserver_filterpolicy_binding_test.go | 11 +- ...ixadc_lbvserver_responderpolicy_binding.go | 14 +- ..._lbvserver_responderpolicy_binding_test.go | 11 +- ...trixadc_lbvserver_rewritepolicy_binding.go | 14 +- ...dc_lbvserver_rewritepolicy_binding_test.go | 11 +- ...rce_citrixadc_lbvserver_service_binding.go | 10 +- ...itrixadc_lbvserver_service_binding_test.go | 11 +- ...itrixadc_lbvserver_servicegroup_binding.go | 8 +- ...adc_lbvserver_servicegroup_binding_test.go | 11 +- .../resource_citrixadc_lbvserver_test.go | 15 +- ...ixadc_lbvserver_transformpolicy_binding.go | 12 +- ..._lbvserver_transformpolicy_binding_test.go | 11 +- citrixadc/resource_citrixadc_linkset.go | 19 +- citrixadc/resource_citrixadc_linkset_test.go | 6 +- citrixadc/resource_citrixadc_netprofile.go | 10 +- .../resource_citrixadc_netprofile_test.go | 9 +- citrixadc/resource_citrixadc_nsacl.go | 54 ++--- citrixadc/resource_citrixadc_nsacl_test.go | 9 +- citrixadc/resource_citrixadc_nsacls.go | 42 ++-- citrixadc/resource_citrixadc_nsacls_test.go | 8 +- citrixadc/resource_citrixadc_nscapacity.go | 6 +- .../resource_citrixadc_nsconfig_clear.go | 6 +- citrixadc/resource_citrixadc_nsconfig_save.go | 6 +- .../resource_citrixadc_nsconfig_save_test.go | 11 +- .../resource_citrixadc_nsconfig_update.go | 21 +- citrixadc/resource_citrixadc_nshttpprofile.go | 68 +++--- .../resource_citrixadc_nshttpprofile_test.go | 6 +- citrixadc/resource_citrixadc_nsip.go | 17 +- citrixadc/resource_citrixadc_nsip6.go | 10 +- citrixadc/resource_citrixadc_nsip6_test.go | 9 +- citrixadc/resource_citrixadc_nsip_test.go | 9 +- citrixadc/resource_citrixadc_nslicense.go | 2 +- .../resource_citrixadc_nslicenseserver.go | 10 +- ...resource_citrixadc_nslicenseserver_test.go | 7 +- citrixadc/resource_citrixadc_nsparam.go | 30 +-- citrixadc/resource_citrixadc_nsparam_test.go | 7 +- citrixadc/resource_citrixadc_nsrpcnode.go | 10 +- .../resource_citrixadc_nsrpcnode_test.go | 7 +- citrixadc/resource_citrixadc_nstcpparam.go | 7 +- .../resource_citrixadc_nstcpparam_test.go | 11 +- citrixadc/resource_citrixadc_nstcpprofile.go | 10 +- .../resource_citrixadc_nstcpprofile_test.go | 9 +- citrixadc/resource_citrixadc_nsvpxparam.go | 5 +- citrixadc/resource_citrixadc_pinger.go | 10 +- citrixadc/resource_citrixadc_policydataset.go | 10 +- .../resource_citrixadc_policydataset_test.go | 9 +- ...e_citrixadc_policydataset_value_binding.go | 12 +- ...rixadc_policydataset_value_binding_test.go | 11 +- .../resource_citrixadc_policyexpression.go | 12 +- ...esource_citrixadc_policyexpression_test.go | 9 +- citrixadc/resource_citrixadc_policypatset.go | 10 +- ..._citrixadc_policypatset_pattern_binding.go | 12 +- ...ixadc_policypatset_pattern_binding_test.go | 11 +- .../resource_citrixadc_policypatset_test.go | 9 +- .../resource_citrixadc_policystringmap.go | 12 +- ...trixadc_policystringmap_pattern_binding.go | 8 +- ...dc_policystringmap_pattern_binding_test.go | 11 +- ...resource_citrixadc_policystringmap_test.go | 9 +- citrixadc/resource_citrixadc_rebooter.go | 2 +- citrixadc/resource_citrixadc_rebooter_test.go | 7 +- .../resource_citrixadc_responderaction.go | 16 +- ...resource_citrixadc_responderaction_test.go | 15 +- .../resource_citrixadc_responderpolicy.go | 47 ++-- ...resource_citrixadc_responderpolicy_test.go | 11 +- ...resource_citrixadc_responderpolicylabel.go | 10 +- ...rce_citrixadc_responderpolicylabel_test.go | 9 +- citrixadc/resource_citrixadc_rewriteaction.go | 12 +- .../resource_citrixadc_rewriteaction_test.go | 9 +- citrixadc/resource_citrixadc_rewritepolicy.go | 47 ++-- .../resource_citrixadc_rewritepolicy_test.go | 11 +- .../resource_citrixadc_rewritepolicylabel.go | 10 +- ...ource_citrixadc_rewritepolicylabel_test.go | 9 +- citrixadc/resource_citrixadc_rnat.go | 12 +- citrixadc/resource_citrixadc_rnat_test.go | 9 +- citrixadc/resource_citrixadc_route.go | 38 ++-- citrixadc/resource_citrixadc_route_test.go | 10 +- ...resource_citrixadc_routerdynamicrouting.go | 4 +- citrixadc/resource_citrixadc_server.go | 28 +-- citrixadc/resource_citrixadc_server_test.go | 10 +- citrixadc/resource_citrixadc_service.go | 189 ++++++++-------- citrixadc/resource_citrixadc_service_test.go | 20 +- citrixadc/resource_citrixadc_servicegroup.go | 205 +++++++++--------- ...itrixadc_servicegroup_lbmonitor_binding.go | 22 +- ...adc_servicegroup_lbmonitor_binding_test.go | 11 +- ...servicegroup_servicegroupmember_binding.go | 18 +- ...cegroup_servicegroupmember_binding_test.go | 13 +- .../resource_citrixadc_servicegroup_test.go | 20 +- citrixadc/resource_citrixadc_sslaction.go | 10 +- .../resource_citrixadc_sslaction_test.go | 6 +- citrixadc/resource_citrixadc_sslcertkey.go | 30 +-- .../resource_citrixadc_sslcertkey_test.go | 15 +- citrixadc/resource_citrixadc_sslcipher.go | 31 ++- .../resource_citrixadc_sslcipher_test.go | 8 +- citrixadc/resource_citrixadc_ssldhparam.go | 8 +- citrixadc/resource_citrixadc_sslparameter.go | 46 ++-- .../resource_citrixadc_sslparameter_test.go | 4 +- citrixadc/resource_citrixadc_sslpolicy.go | 12 +- .../resource_citrixadc_sslpolicy_test.go | 6 +- citrixadc/resource_citrixadc_sslprofile.go | 34 +-- ..._citrixadc_sslprofile_sslcipher_binding.go | 14 +- ...ixadc_sslprofile_sslcipher_binding_test.go | 11 +- .../resource_citrixadc_sslprofile_test.go | 9 +- ...citrixadc_sslvserver_sslcertkey_binding.go | 12 +- ...xadc_sslvserver_sslcertkey_binding_test.go | 11 +- ..._citrixadc_sslvserver_sslpolicy_binding.go | 14 +- ...ixadc_sslvserver_sslpolicy_binding_test.go | 11 +- .../resource_citrixadc_systemcmdpolicy.go | 12 +- ...resource_citrixadc_systemcmdpolicy_test.go | 9 +- .../resource_citrixadc_systemextramgmtcpu.go | 8 +- citrixadc/resource_citrixadc_systemfile.go | 9 +- .../resource_citrixadc_systemfile_test.go | 11 +- citrixadc/resource_citrixadc_systemgroup.go | 22 +- .../resource_citrixadc_systemgroup_test.go | 9 +- citrixadc/resource_citrixadc_systemuser.go | 24 +- .../resource_citrixadc_systemuser_test.go | 9 +- .../resource_citrixadc_transformaction.go | 20 +- ...resource_citrixadc_transformaction_test.go | 9 +- .../resource_citrixadc_transformpolicy.go | 12 +- ...resource_citrixadc_transformpolicy_test.go | 9 +- .../resource_citrixadc_transformprofile.go | 14 +- ...esource_citrixadc_transformprofile_test.go | 9 +- citrixadc/resource_citrixadc_vlan.go | 20 +- citrixadc/resource_citrixadc_vlan_test.go | 9 +- citrixadc/sslvserver_utils.go | 43 ++-- citrixadc/sslvserver_utils_test.go | 11 +- citrixadc/utils.go | 14 +- 212 files changed, 1921 insertions(+), 1849 deletions(-) diff --git a/citrixadc/helpers_test.go b/citrixadc/helpers_test.go index 385dcab23..2c7120fd1 100644 --- a/citrixadc/helpers_test.go +++ b/citrixadc/helpers_test.go @@ -13,8 +13,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/config/system" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" ) func uploadTestdataFile(c *NetScalerNitroClient, t *testing.T, filename, targetDir string) error { @@ -33,14 +33,14 @@ func uploadTestdataFile(c *NetScalerNitroClient, t *testing.T, filename, targetD Filecontent: base64.StdEncoding.EncodeToString(b), Filelocation: targetDir, } - _, err = nsClient.AddResource(netscaler.Systemfile.Type(), filename, &sf) + _, err = nsClient.AddResource(service.Systemfile.Type(), filename, &sf) if err != nil && strings.Contains(err.Error(), "File already exists") { url_args := map[string]string{"filelocation": strings.Replace(targetDir, "/", "%2F", -1)} - err := nsClient.DeleteResourceWithArgsMap(netscaler.Systemfile.Type(), filename, url_args) + err := nsClient.DeleteResourceWithArgsMap(service.Systemfile.Type(), filename, url_args) if err != nil { return err } - _, err = nsClient.AddResource(netscaler.Systemfile.Type(), filename, &sf) + _, err = nsClient.AddResource(service.Systemfile.Type(), filename, &sf) if err != nil { return err } @@ -80,14 +80,14 @@ func testHelperInstantiateClient(nsUrl, username, password string, sslVerify boo Endpoint: nsUrl, } - params := netscaler.NitroParams{ + params := service.NitroParams{ Url: nsUrl, Username: username, Password: password, //ProxiedNs: d.Get("proxied_ns").(string), SslVerify: sslVerify, } - client, err := netscaler.NewNitroClientFromParams(params) + client, err := service.NewNitroClientFromParams(params) if err != nil { return nil, err } @@ -158,7 +158,7 @@ func testIsTargetAdcCluster() bool { } nsClient := c.client - datalist, err := nsClient.FindAllResources(netscaler.Clusterinstance.Type()) + datalist, err := nsClient.FindAllResources(service.Clusterinstance.Type()) if err != nil { //lintignore:R009 panic(err) diff --git a/citrixadc/provider.go b/citrixadc/provider.go index bca44d41d..e8af723e1 100644 --- a/citrixadc/provider.go +++ b/citrixadc/provider.go @@ -19,7 +19,7 @@ import ( "log" "sync" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/version" @@ -29,7 +29,7 @@ type NetScalerNitroClient struct { Username string Password string Endpoint string - client *netscaler.NitroClient + client *service.NitroClient lock sync.Mutex } @@ -203,7 +203,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { Endpoint: d.Get("endpoint").(string), } - params := netscaler.NitroParams{ + params := service.NitroParams{ Url: d.Get("endpoint").(string), Username: d.Get("username").(string), Password: d.Get("password").(string), @@ -211,7 +211,7 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) { SslVerify: !d.Get("insecure_skip_verify").(bool), Headers: userHeaders, } - client, err := netscaler.NewNitroClientFromParams(params) + client, err := service.NewNitroClientFromParams(params) if err != nil { return nil, err } diff --git a/citrixadc/resource_citrixadc_appfwfieldtype.go b/citrixadc/resource_citrixadc_appfwfieldtype.go index f7305d7be..4fc613432 100644 --- a/citrixadc/resource_citrixadc_appfwfieldtype.go +++ b/citrixadc/resource_citrixadc_appfwfieldtype.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -55,11 +55,11 @@ func createAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { Comment: d.Get("comment").(string), Name: appfwfieldtypeName, Nocharmaps: d.Get("nocharmaps").(bool), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Regex: d.Get("regex").(string), } - _, err := client.AddResource(netscaler.Appfwfieldtype.Type(), appfwfieldtypeName, &appfwfieldtype) + _, err := client.AddResource(service.Appfwfieldtype.Type(), appfwfieldtypeName, &appfwfieldtype) if err != nil { return err } @@ -79,7 +79,7 @@ func readAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client appfwfieldtypeName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwfieldtype state %s", appfwfieldtypeName) - data, err := client.FindResource(netscaler.Appfwfieldtype.Type(), appfwfieldtypeName) + data, err := client.FindResource(service.Appfwfieldtype.Type(), appfwfieldtypeName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwfieldtype state %s", appfwfieldtypeName) d.SetId("") @@ -123,7 +123,7 @@ func updateAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] citrixadc-provider: Priority has changed for appfwfieldtype %s, starting update", appfwfieldtypeName) - appfwfieldtype.Priority = d.Get("priority").(int) + appfwfieldtype.Priority = uint32(d.Get("priority").(int)) hasChange = true } // if d.HasChange("regex") { @@ -133,7 +133,7 @@ func updateAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { // } if hasChange { - _, err := client.UpdateResource(netscaler.Appfwfieldtype.Type(), appfwfieldtypeName, &appfwfieldtype) + _, err := client.UpdateResource(service.Appfwfieldtype.Type(), appfwfieldtypeName, &appfwfieldtype) if err != nil { return fmt.Errorf("Error updating appfwfieldtype %s", appfwfieldtypeName) } @@ -145,7 +145,7 @@ func deleteAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwfieldtypeFunc") client := meta.(*NetScalerNitroClient).client appfwfieldtypeName := d.Id() - err := client.DeleteResource(netscaler.Appfwfieldtype.Type(), appfwfieldtypeName) + err := client.DeleteResource(service.Appfwfieldtype.Type(), appfwfieldtypeName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwfieldtype_test.go b/citrixadc/resource_citrixadc_appfwfieldtype_test.go index 90941807b..73cf082fa 100644 --- a/citrixadc/resource_citrixadc_appfwfieldtype_test.go +++ b/citrixadc/resource_citrixadc_appfwfieldtype_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccAppfwfieldtype_add = ` @@ -84,7 +85,7 @@ func testAccCheckAppfwfieldtypeExist(n string, id *string) resource.TestCheckFun } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwfieldtype.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwfieldtype.Type(), rs.Primary.ID) if err != nil { return err @@ -110,7 +111,7 @@ func testAccCheckAppfwfieldtypeDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwfieldtype.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwfieldtype.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwjsoncontenttype.go b/citrixadc/resource_citrixadc_appfwjsoncontenttype.go index 276747426..26f875c69 100644 --- a/citrixadc/resource_citrixadc_appfwjsoncontenttype.go +++ b/citrixadc/resource_citrixadc_appfwjsoncontenttype.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -39,7 +39,7 @@ func createAppfwjsoncontenttypeFunc(d *schema.ResourceData, meta interface{}) er Jsoncontenttypevalue: appfwjsoncontenttypeName, } - _, err := client.AddResource(netscaler.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName, &appfwjsoncontenttype) + _, err := client.AddResource(service.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName, &appfwjsoncontenttype) if err != nil { return err } @@ -59,7 +59,7 @@ func readAppfwjsoncontenttypeFunc(d *schema.ResourceData, meta interface{}) erro client := meta.(*NetScalerNitroClient).client appfwjsoncontenttypeName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwjsoncontenttype state %s", appfwjsoncontenttypeName) - data, err := client.FindResource(netscaler.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName) + data, err := client.FindResource(service.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwjsoncontenttype state %s", appfwjsoncontenttypeName) d.SetId("") @@ -76,7 +76,7 @@ func deleteAppfwjsoncontenttypeFunc(d *schema.ResourceData, meta interface{}) er log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwjsoncontenttypeFunc") client := meta.(*NetScalerNitroClient).client appfwjsoncontenttypeName := d.Id() - err := client.DeleteResource(netscaler.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName) + err := client.DeleteResource(service.Appfwjsoncontenttype.Type(), appfwjsoncontenttypeName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go b/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go index fde1bab0e..e6aa9914e 100644 --- a/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go +++ b/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccAppfwjsoncontenttype_basic = ` @@ -69,7 +70,7 @@ func testAccCheckAppfwjsoncontenttypeExist(n string, id *string) resource.TestCh } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwjsoncontenttype.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwjsoncontenttype.Type(), rs.Primary.ID) if err != nil { return err @@ -95,7 +96,7 @@ func testAccCheckAppfwjsoncontenttypeDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwjsoncontenttype.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwjsoncontenttype.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwpolicy.go b/citrixadc/resource_citrixadc_appfwpolicy.go index 70d0dc33f..694ddced3 100644 --- a/citrixadc/resource_citrixadc_appfwpolicy.go +++ b/citrixadc/resource_citrixadc_appfwpolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -66,7 +66,7 @@ func createAppfwpolicyFunc(d *schema.ResourceData, meta interface{}) error { Rule: d.Get("rule").(string), } - _, err := client.AddResource(netscaler.Appfwpolicy.Type(), appfwpolicyName, &appfwpolicy) + _, err := client.AddResource(service.Appfwpolicy.Type(), appfwpolicyName, &appfwpolicy) if err != nil { return err } @@ -86,7 +86,7 @@ func readAppfwpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client appfwpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwpolicy state %s", appfwpolicyName) - data, err := client.FindResource(netscaler.Appfwpolicy.Type(), appfwpolicyName) + data, err := client.FindResource(service.Appfwpolicy.Type(), appfwpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwpolicy state %s", appfwpolicyName) d.SetId("") @@ -145,7 +145,7 @@ func updateAppfwpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Appfwpolicy.Type(), appfwpolicyName, &appfwpolicy) + _, err := client.UpdateResource(service.Appfwpolicy.Type(), appfwpolicyName, &appfwpolicy) if err != nil { return fmt.Errorf("Error updating appfwpolicy %s", appfwpolicyName) } @@ -157,7 +157,7 @@ func deleteAppfwpolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwpolicyFunc") client := meta.(*NetScalerNitroClient).client appfwpolicyName := d.Id() - err := client.DeleteResource(netscaler.Appfwpolicy.Type(), appfwpolicyName) + err := client.DeleteResource(service.Appfwpolicy.Type(), appfwpolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwpolicy_test.go b/citrixadc/resource_citrixadc_appfwpolicy_test.go index 6f9b5d729..515394b44 100644 --- a/citrixadc/resource_citrixadc_appfwpolicy_test.go +++ b/citrixadc/resource_citrixadc_appfwpolicy_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -153,7 +153,7 @@ func testAccCheckAppfwpolicyExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -179,7 +179,7 @@ func testAccCheckAppfwpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwpolicylabel.go b/citrixadc/resource_citrixadc_appfwpolicylabel.go index ce2031746..1fd979f91 100644 --- a/citrixadc/resource_citrixadc_appfwpolicylabel.go +++ b/citrixadc/resource_citrixadc_appfwpolicylabel.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -39,7 +39,7 @@ func createAppfwpolicylabelFunc(d *schema.ResourceData, meta interface{}) error Policylabeltype: d.Get("policylabeltype").(string), } - _, err := client.AddResource(netscaler.Appfwpolicylabel.Type(), appfwpolicylabelName, &appfwpolicylabel) + _, err := client.AddResource(service.Appfwpolicylabel.Type(), appfwpolicylabelName, &appfwpolicylabel) if err != nil { return err } @@ -59,7 +59,7 @@ func readAppfwpolicylabelFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client appfwpolicylabelName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwpolicylabel state %s", appfwpolicylabelName) - data, err := client.FindResource(netscaler.Appfwpolicylabel.Type(), appfwpolicylabelName) + data, err := client.FindResource(service.Appfwpolicylabel.Type(), appfwpolicylabelName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwpolicylabel state %s", appfwpolicylabelName) d.SetId("") @@ -76,7 +76,7 @@ func deleteAppfwpolicylabelFunc(d *schema.ResourceData, meta interface{}) error log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwpolicylabelFunc") client := meta.(*NetScalerNitroClient).client appfwpolicylabelName := d.Id() - err := client.DeleteResource(netscaler.Appfwpolicylabel.Type(), appfwpolicylabelName) + err := client.DeleteResource(service.Appfwpolicylabel.Type(), appfwpolicylabelName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwpolicylabel_test.go b/citrixadc/resource_citrixadc_appfwpolicylabel_test.go index 5d0659e78..37c1fde4a 100644 --- a/citrixadc/resource_citrixadc_appfwpolicylabel_test.go +++ b/citrixadc/resource_citrixadc_appfwpolicylabel_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccAppfwpolicylabel_basic = ` @@ -67,7 +68,7 @@ func testAccCheckAppfwpolicylabelExist(n string, id *string) resource.TestCheckF } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwpolicylabel.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwpolicylabel.Type(), rs.Primary.ID) if err != nil { return err @@ -93,7 +94,7 @@ func testAccCheckAppfwpolicylabelDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwpolicylabel.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwpolicylabel.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile.go b/citrixadc/resource_citrixadc_appfwprofile.go index 1b1e00627..84aa5233a 100644 --- a/citrixadc/resource_citrixadc_appfwprofile.go +++ b/citrixadc/resource_citrixadc_appfwprofile.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -491,23 +491,23 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Name: appfwprofileName, Addcookieflags: d.Get("addcookieflags").(string), Archivename: d.Get("archivename").(string), - Bufferoverflowmaxcookielength: d.Get("bufferoverflowmaxcookielength").(int), - Bufferoverflowmaxheaderlength: d.Get("bufferoverflowmaxheaderlength").(int), - Bufferoverflowmaxurllength: d.Get("bufferoverflowmaxurllength").(int), + Bufferoverflowmaxcookielength: uint32(d.Get("bufferoverflowmaxcookielength").(int)), + Bufferoverflowmaxheaderlength: uint32(d.Get("bufferoverflowmaxheaderlength").(int)), + Bufferoverflowmaxurllength: uint32(d.Get("bufferoverflowmaxurllength").(int)), Canonicalizehtmlresponse: d.Get("canonicalizehtmlresponse").(string), Checkrequestheaders: d.Get("checkrequestheaders").(string), Comment: d.Get("comment").(string), Cookieencryption: d.Get("cookieencryption").(string), Cookieproxying: d.Get("cookieproxying").(string), Cookietransforms: d.Get("cookietransforms").(string), - Creditcardmaxallowed: d.Get("creditcardmaxallowed").(int), + Creditcardmaxallowed: uint32(d.Get("creditcardmaxallowed").(int)), Creditcardxout: d.Get("creditcardxout").(string), Crosssitescriptingcheckcompleteurls: d.Get("crosssitescriptingcheckcompleteurls").(string), Crosssitescriptingtransformunsafehtml: d.Get("crosssitescriptingtransformunsafehtml").(string), Customsettings: d.Get("customsettings").(string), Defaultcharset: d.Get("defaultcharset").(string), - Defaultfieldformatmaxlength: d.Get("defaultfieldformatmaxlength").(int), - Defaultfieldformatminlength: d.Get("defaultfieldformatminlength").(int), + Defaultfieldformatmaxlength: uint32(d.Get("defaultfieldformatmaxlength").(int)), + Defaultfieldformatminlength: uint32(d.Get("defaultfieldformatminlength").(int)), Defaultfieldformattype: d.Get("defaultfieldformattype").(string), Defaults: d.Get("defaults").(string), Dosecurecreditcardlogging: d.Get("dosecurecreditcardlogging").(string), @@ -515,7 +515,7 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Errorurl: d.Get("errorurl").(string), Excludefileuploadfromchecks: d.Get("excludefileuploadfromchecks").(string), Exemptclosureurlsfromsecuritychecks: d.Get("exemptclosureurlsfromsecuritychecks").(string), - Fileuploadmaxnum: d.Get("fileuploadmaxnum").(int), + Fileuploadmaxnum: uint32(d.Get("fileuploadmaxnum").(int)), Htmlerrorobject: d.Get("htmlerrorobject").(string), Invalidpercenthandling: d.Get("invalidpercenthandling").(string), Jsonerrorobject: d.Get("jsonerrorobject").(string), @@ -523,8 +523,8 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Logeverypolicyhit: d.Get("logeverypolicyhit").(string), Optimizepartialreqs: d.Get("optimizepartialreqs").(string), Percentdecoderecursively: d.Get("percentdecoderecursively").(string), - Postbodylimit: d.Get("postbodylimit").(int), - Postbodylimitsignature: d.Get("postbodylimitsignature").(int), + Postbodylimit: uint64(d.Get("postbodylimit").(int)), + Postbodylimitsignature: uint32(d.Get("postbodylimitsignature").(int)), Refererheadercheck: d.Get("refererheadercheck").(string), Requestcontenttype: d.Get("requestcontenttype").(string), Responsecontenttype: d.Get("responsecontenttype").(string), @@ -554,36 +554,36 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Xmlsqlinjectiontype: d.Get("xmlsqlinjectiontype").(string), } - appfwprofile.Bufferoverflowaction = d.Get("bufferoverflowaction").(*schema.Set).List() - appfwprofile.Contenttypeaction = d.Get("contenttypeaction").(*schema.Set).List() - appfwprofile.Cookieconsistencyaction = d.Get("cookieconsistencyaction").(*schema.Set).List() - appfwprofile.Creditcard = d.Get("creditcard").(*schema.Set).List() - appfwprofile.Creditcardaction = d.Get("creditcardaction").(*schema.Set).List() - appfwprofile.Crosssitescriptingaction = d.Get("crosssitescriptingaction").(*schema.Set).List() - appfwprofile.Csrftagaction = d.Get("csrftagaction").(*schema.Set).List() - appfwprofile.Denyurlaction = d.Get("denyurlaction").(*schema.Set).List() - appfwprofile.Dynamiclearning = d.Get("dynamiclearning").(*schema.Set).List() - appfwprofile.Fieldconsistencyaction = d.Get("fieldconsistencyaction").(*schema.Set).List() - appfwprofile.Fieldformataction = d.Get("fieldformataction").(*schema.Set).List() - appfwprofile.Fileuploadtypesaction = d.Get("fileuploadtypesaction").(*schema.Set).List() - appfwprofile.Inspectcontenttypes = d.Get("inspectcontenttypes").(*schema.Set).List() - appfwprofile.Jsondosaction = d.Get("jsondosaction").(*schema.Set).List() - appfwprofile.Jsonsqlinjectionaction = d.Get("jsonsqlinjectionaction").(*schema.Set).List() - appfwprofile.Jsonxssaction = d.Get("jsonxssaction").(*schema.Set).List() - appfwprofile.Multipleheaderaction = d.Get("multipleheaderaction").(*schema.Set).List() - appfwprofile.Sqlinjectionaction = d.Get("sqlinjectionaction").(*schema.Set).List() - appfwprofile.Starturlaction = d.Get("starturlaction").(*schema.Set).List() - appfwprofile.Type = d.Get("type").(*schema.Set).List() - appfwprofile.Xmlattachmentaction = d.Get("xmlattachmentaction").(*schema.Set).List() - appfwprofile.Xmldosaction = d.Get("xmldosaction").(*schema.Set).List() - appfwprofile.Xmlformataction = d.Get("xmlformataction").(*schema.Set).List() - appfwprofile.Xmlsoapfaultaction = d.Get("xmlsoapfaultaction").(*schema.Set).List() - appfwprofile.Xmlsqlinjectionaction = d.Get("xmlsqlinjectionaction").(*schema.Set).List() - appfwprofile.Xmlvalidationaction = d.Get("xmlvalidationaction").(*schema.Set).List() - appfwprofile.Xmlwsiaction = d.Get("xmlwsiaction").(*schema.Set).List() - appfwprofile.Xmlxssaction = d.Get("xmlxssaction").(*schema.Set).List() + appfwprofile.Bufferoverflowaction = toStringList(d.Get("bufferoverflowaction").(*schema.Set).List()) + appfwprofile.Contenttypeaction = toStringList(d.Get("contenttypeaction").(*schema.Set).List()) + appfwprofile.Cookieconsistencyaction = toStringList(d.Get("cookieconsistencyaction").(*schema.Set).List()) + appfwprofile.Creditcard = toStringList(d.Get("creditcard").(*schema.Set).List()) + appfwprofile.Creditcardaction = toStringList(d.Get("creditcardaction").(*schema.Set).List()) + appfwprofile.Crosssitescriptingaction = toStringList(d.Get("crosssitescriptingaction").(*schema.Set).List()) + appfwprofile.Csrftagaction = toStringList(d.Get("csrftagaction").(*schema.Set).List()) + appfwprofile.Denyurlaction = toStringList(d.Get("denyurlaction").(*schema.Set).List()) + appfwprofile.Dynamiclearning = toStringList(d.Get("dynamiclearning").(*schema.Set).List()) + appfwprofile.Fieldconsistencyaction = toStringList(d.Get("fieldconsistencyaction").(*schema.Set).List()) + appfwprofile.Fieldformataction = toStringList(d.Get("fieldformataction").(*schema.Set).List()) + appfwprofile.Fileuploadtypesaction = toStringList(d.Get("fileuploadtypesaction").(*schema.Set).List()) + appfwprofile.Inspectcontenttypes = toStringList(d.Get("inspectcontenttypes").(*schema.Set).List()) + appfwprofile.Jsondosaction = toStringList(d.Get("jsondosaction").(*schema.Set).List()) + appfwprofile.Jsonsqlinjectionaction = toStringList(d.Get("jsonsqlinjectionaction").(*schema.Set).List()) + appfwprofile.Jsonxssaction = toStringList(d.Get("jsonxssaction").(*schema.Set).List()) + appfwprofile.Multipleheaderaction = toStringList(d.Get("multipleheaderaction").(*schema.Set).List()) + appfwprofile.Sqlinjectionaction = toStringList(d.Get("sqlinjectionaction").(*schema.Set).List()) + appfwprofile.Starturlaction = toStringList(d.Get("starturlaction").(*schema.Set).List()) + appfwprofile.Type = toStringList(d.Get("type").(*schema.Set).List()) + appfwprofile.Xmlattachmentaction = toStringList(d.Get("xmlattachmentaction").(*schema.Set).List()) + appfwprofile.Xmldosaction = toStringList(d.Get("xmldosaction").(*schema.Set).List()) + appfwprofile.Xmlformataction = toStringList(d.Get("xmlformataction").(*schema.Set).List()) + appfwprofile.Xmlsoapfaultaction = toStringList(d.Get("xmlsoapfaultaction").(*schema.Set).List()) + appfwprofile.Xmlsqlinjectionaction = toStringList(d.Get("xmlsqlinjectionaction").(*schema.Set).List()) + appfwprofile.Xmlvalidationaction = toStringList(d.Get("xmlvalidationaction").(*schema.Set).List()) + appfwprofile.Xmlwsiaction = toStringList(d.Get("xmlwsiaction").(*schema.Set).List()) + appfwprofile.Xmlxssaction = toStringList(d.Get("xmlxssaction").(*schema.Set).List()) - _, err := client.AddResource(netscaler.Appfwprofile.Type(), appfwprofileName, &appfwprofile) + _, err := client.AddResource(service.Appfwprofile.Type(), appfwprofileName, &appfwprofile) if err != nil { return err } @@ -603,7 +603,7 @@ func readAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client appfwprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofile state %s", appfwprofileName) - data, err := client.FindResource(netscaler.Appfwprofile.Type(), appfwprofileName) + data, err := client.FindResource(service.Appfwprofile.Type(), appfwprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwprofile state %s", appfwprofileName) d.SetId("") @@ -729,17 +729,17 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("bufferoverflowmaxcookielength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxcookielength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxcookielength = d.Get("bufferoverflowmaxcookielength").(int) + appfwprofile.Bufferoverflowmaxcookielength = uint32(d.Get("bufferoverflowmaxcookielength").(int)) hasChange = true } if d.HasChange("bufferoverflowmaxheaderlength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxheaderlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxheaderlength = d.Get("bufferoverflowmaxheaderlength").(int) + appfwprofile.Bufferoverflowmaxheaderlength = uint32(d.Get("bufferoverflowmaxheaderlength").(int)) hasChange = true } if d.HasChange("bufferoverflowmaxurllength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxurllength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxurllength = d.Get("bufferoverflowmaxurllength").(int) + appfwprofile.Bufferoverflowmaxurllength = uint32(d.Get("bufferoverflowmaxurllength").(int)) hasChange = true } if d.HasChange("canonicalizehtmlresponse") { @@ -774,7 +774,7 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("creditcardmaxallowed") { log.Printf("[DEBUG] citrixadc-provider: Creditcardmaxallowed has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Creditcardmaxallowed = d.Get("creditcardmaxallowed").(int) + appfwprofile.Creditcardmaxallowed = uint32(d.Get("creditcardmaxallowed").(int)) hasChange = true } if d.HasChange("creditcardxout") { @@ -804,12 +804,12 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("defaultfieldformatmaxlength") { log.Printf("[DEBUG] citrixadc-provider: Defaultfieldformatmaxlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Defaultfieldformatmaxlength = d.Get("defaultfieldformatmaxlength").(int) + appfwprofile.Defaultfieldformatmaxlength = uint32(d.Get("defaultfieldformatmaxlength").(int)) hasChange = true } if d.HasChange("defaultfieldformatminlength") { log.Printf("[DEBUG] citrixadc-provider: Defaultfieldformatminlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Defaultfieldformatminlength = d.Get("defaultfieldformatminlength").(int) + appfwprofile.Defaultfieldformatminlength = uint32(d.Get("defaultfieldformatminlength").(int)) hasChange = true } if d.HasChange("defaultfieldformattype") { @@ -849,7 +849,7 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("fileuploadmaxnum") { log.Printf("[DEBUG] citrixadc-provider: Fileuploadmaxnum has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Fileuploadmaxnum = d.Get("fileuploadmaxnum").(int) + appfwprofile.Fileuploadmaxnum = uint32(d.Get("fileuploadmaxnum").(int)) hasChange = true } if d.HasChange("htmlerrorobject") { @@ -894,12 +894,12 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("postbodylimit") { log.Printf("[DEBUG] citrixadc-provider: Postbodylimit has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Postbodylimit = d.Get("postbodylimit").(int) + appfwprofile.Postbodylimit = uint64(d.Get("postbodylimit").(int)) hasChange = true } if d.HasChange("postbodylimitsignature") { log.Printf("[DEBUG] citrixadc-provider: Postbodylimitsignature has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Postbodylimitsignature = d.Get("postbodylimitsignature").(int) + appfwprofile.Postbodylimitsignature = uint32(d.Get("postbodylimitsignature").(int)) hasChange = true } if d.HasChange("refererheadercheck") { @@ -1040,174 +1040,174 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { if d.HasChange("bufferoverflowaction") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowaction = d.Get("bufferoverflowaction").(*schema.Set).List() + appfwprofile.Bufferoverflowaction = toStringList(d.Get("bufferoverflowaction").(*schema.Set).List()) hasChange = true } if d.HasChange("contenttypeaction") { log.Printf("[DEBUG] citrixadc-provider: Contenttypeaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Contenttypeaction = d.Get("contenttypeaction").(*schema.Set).List() + appfwprofile.Contenttypeaction = toStringList(d.Get("contenttypeaction").(*schema.Set).List()) hasChange = true } if d.HasChange("cookieconsistencyaction") { log.Printf("[DEBUG] citrixadc-provider: Cookieconsistencyaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Cookieconsistencyaction = d.Get("cookieconsistencyaction").(*schema.Set).List() + appfwprofile.Cookieconsistencyaction = toStringList(d.Get("cookieconsistencyaction").(*schema.Set).List()) hasChange = true } if d.HasChange("creditcard") { log.Printf("[DEBUG] citrixadc-provider: Creditcard has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Creditcard = d.Get("creditcard").(*schema.Set).List() + appfwprofile.Creditcard = toStringList(d.Get("creditcard").(*schema.Set).List()) hasChange = true } if d.HasChange("creditcardaction") { log.Printf("[DEBUG] citrixadc-provider: Creditcardaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Creditcardaction = d.Get("creditcardaction").(*schema.Set).List() + appfwprofile.Creditcardaction = toStringList(d.Get("creditcardaction").(*schema.Set).List()) hasChange = true } if d.HasChange("crosssitescriptingaction") { log.Printf("[DEBUG] citrixadc-provider: Crosssitescriptingaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Crosssitescriptingaction = d.Get("crosssitescriptingaction").(*schema.Set).List() + appfwprofile.Crosssitescriptingaction = toStringList(d.Get("crosssitescriptingaction").(*schema.Set).List()) hasChange = true } if d.HasChange("csrftagaction") { log.Printf("[DEBUG] citrixadc-provider: Csrftagaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Csrftagaction = d.Get("csrftagaction").(*schema.Set).List() + appfwprofile.Csrftagaction = toStringList(d.Get("csrftagaction").(*schema.Set).List()) hasChange = true } if d.HasChange("denyurlaction") { log.Printf("[DEBUG] citrixadc-provider: Denyurlaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Denyurlaction = d.Get("denyurlaction").(*schema.Set).List() + appfwprofile.Denyurlaction = toStringList(d.Get("denyurlaction").(*schema.Set).List()) hasChange = true } if d.HasChange("dynamiclearning") { log.Printf("[DEBUG] citrixadc-provider: Dynamiclearning has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Dynamiclearning = d.Get("dynamiclearning").(*schema.Set).List() + appfwprofile.Dynamiclearning = toStringList(d.Get("dynamiclearning").(*schema.Set).List()) hasChange = true } if d.HasChange("fieldconsistencyaction") { log.Printf("[DEBUG] citrixadc-provider: Fieldconsistencyaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Fieldconsistencyaction = d.Get("fieldconsistencyaction").(*schema.Set).List() + appfwprofile.Fieldconsistencyaction = toStringList(d.Get("fieldconsistencyaction").(*schema.Set).List()) hasChange = true } if d.HasChange("fieldformataction") { log.Printf("[DEBUG] citrixadc-provider: Fieldformataction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Fieldformataction = d.Get("fieldformataction").(*schema.Set).List() + appfwprofile.Fieldformataction = toStringList(d.Get("fieldformataction").(*schema.Set).List()) hasChange = true } if d.HasChange("fileuploadtypesaction") { log.Printf("[DEBUG] citrixadc-provider: Fileuploadtypesaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Fileuploadtypesaction = d.Get("fileuploadtypesaction").(*schema.Set).List() + appfwprofile.Fileuploadtypesaction = toStringList(d.Get("fileuploadtypesaction").(*schema.Set).List()) hasChange = true } if d.HasChange("inspectcontenttypes") { log.Printf("[DEBUG] citrixadc-provider: Inspectcontenttypes has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Inspectcontenttypes = d.Get("inspectcontenttypes").(*schema.Set).List() + appfwprofile.Inspectcontenttypes = toStringList(d.Get("inspectcontenttypes").(*schema.Set).List()) hasChange = true } if d.HasChange("jsondosaction") { log.Printf("[DEBUG] citrixadc-provider: Jsondosaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Jsondosaction = d.Get("jsondosaction").(*schema.Set).List() + appfwprofile.Jsondosaction = toStringList(d.Get("jsondosaction").(*schema.Set).List()) hasChange = true } if d.HasChange("jsonsqlinjectionaction") { log.Printf("[DEBUG] citrixadc-provider: Jsonsqlinjectionaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Jsonsqlinjectionaction = d.Get("jsonsqlinjectionaction").(*schema.Set).List() + appfwprofile.Jsonsqlinjectionaction = toStringList(d.Get("jsonsqlinjectionaction").(*schema.Set).List()) hasChange = true } if d.HasChange("jsonxssaction") { log.Printf("[DEBUG] citrixadc-provider: Jsonxssaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Jsonxssaction = d.Get("jsonxssaction").(*schema.Set).List() + appfwprofile.Jsonxssaction = toStringList(d.Get("jsonxssaction").(*schema.Set).List()) hasChange = true } if d.HasChange("multipleheaderaction") { log.Printf("[DEBUG] citrixadc-provider: Multipleheaderaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Multipleheaderaction = d.Get("multipleheaderaction").(*schema.Set).List() + appfwprofile.Multipleheaderaction = toStringList(d.Get("multipleheaderaction").(*schema.Set).List()) hasChange = true } if d.HasChange("sqlinjectionaction") { log.Printf("[DEBUG] citrixadc-provider: Sqlinjectionaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Sqlinjectionaction = d.Get("sqlinjectionaction").(*schema.Set).List() + appfwprofile.Sqlinjectionaction = toStringList(d.Get("sqlinjectionaction").(*schema.Set).List()) hasChange = true } if d.HasChange("starturlaction") { log.Printf("[DEBUG] citrixadc-provider: Starturlaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Starturlaction = d.Get("starturlaction").(*schema.Set).List() + appfwprofile.Starturlaction = toStringList(d.Get("starturlaction").(*schema.Set).List()) hasChange = true } if d.HasChange("type") { log.Printf("[DEBUG] citrixadc-provider: Type has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Type = d.Get("type").(*schema.Set).List() + appfwprofile.Type = toStringList(d.Get("type").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlattachmentaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlattachmentaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlattachmentaction = d.Get("xmlattachmentaction").(*schema.Set).List() + appfwprofile.Xmlattachmentaction = toStringList(d.Get("xmlattachmentaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmldosaction") { log.Printf("[DEBUG] citrixadc-provider: Xmldosaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmldosaction = d.Get("xmldosaction").(*schema.Set).List() + appfwprofile.Xmldosaction = toStringList(d.Get("xmldosaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlformataction") { log.Printf("[DEBUG] citrixadc-provider: Xmlformataction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlformataction = d.Get("xmlformataction").(*schema.Set).List() + appfwprofile.Xmlformataction = toStringList(d.Get("xmlformataction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlsoapfaultaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlsoapfaultaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlsoapfaultaction = d.Get("xmlsoapfaultaction").(*schema.Set).List() + appfwprofile.Xmlsoapfaultaction = toStringList(d.Get("xmlsoapfaultaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlsqlinjectionaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlsqlinjectionaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlsqlinjectionaction = d.Get("xmlsqlinjectionaction").(*schema.Set).List() + appfwprofile.Xmlsqlinjectionaction = toStringList(d.Get("xmlsqlinjectionaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlvalidationaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlvalidationaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlvalidationaction = d.Get("xmlvalidationaction").(*schema.Set).List() + appfwprofile.Xmlvalidationaction = toStringList(d.Get("xmlvalidationaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlwsiaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlwsiaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlwsiaction = d.Get("xmlwsiaction").(*schema.Set).List() + appfwprofile.Xmlwsiaction = toStringList(d.Get("xmlwsiaction").(*schema.Set).List()) hasChange = true } if d.HasChange("xmlxssaction") { log.Printf("[DEBUG] citrixadc-provider: Xmlxssaction has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Xmlxssaction = d.Get("xmlxssaction").(*schema.Set).List() + appfwprofile.Xmlxssaction = toStringList(d.Get("xmlxssaction").(*schema.Set).List()) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Appfwprofile.Type(), appfwprofileName, &appfwprofile) + _, err := client.UpdateResource(service.Appfwprofile.Type(), appfwprofileName, &appfwprofile) if err != nil { return fmt.Errorf("Error updating appfwprofile %s", appfwprofileName) } @@ -1219,7 +1219,7 @@ func deleteAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwprofileFunc") client := meta.(*NetScalerNitroClient).client appfwprofileName := d.Id() - err := client.DeleteResource(netscaler.Appfwprofile.Type(), appfwprofileName) + err := client.DeleteResource(service.Appfwprofile.Type(), appfwprofileName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding.go b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding.go index cb69f2856..359fa3278 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding.go +++ b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding.go @@ -5,9 +5,9 @@ import ( "net/url" "strings" - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "log" @@ -80,7 +80,7 @@ func createAppfwprofile_cookieconsistency_bindingFunc(d *schema.ResourceData, me State: d.Get("state").(string), } - _, err := client.AddResource(netscaler.Appfwprofile_cookieconsistency_binding.Type(), appFwName, &appfwprofile_cookieconsistency_binding) + _, err := client.AddResource(service.Appfwprofile_cookieconsistency_binding.Type(), appFwName, &appfwprofile_cookieconsistency_binding) if err != nil { return err } @@ -104,8 +104,8 @@ func readAppfwprofile_cookieconsistency_bindingFunc(d *schema.ResourceData, meta cookieconsistency := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofile_cookieconsistency_binding state %s", bindingId) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_cookieconsistency_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_cookieconsistency_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -168,7 +168,7 @@ func deleteAppfwprofile_cookieconsistency_bindingFunc(d *schema.ResourceData, me args := make(map[string]string) args["cookieconsistency"] = url.QueryEscape(cookieConsistencyString) - err := client.DeleteResourceWithArgsMap(netscaler.Appfwprofile_cookieconsistency_binding.Type(), appFwName, args) + err := client.DeleteResourceWithArgsMap(service.Appfwprofile_cookieconsistency_binding.Type(), appFwName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go index a57dccd57..677c8aa75 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go @@ -20,7 +20,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -107,8 +108,8 @@ func testAccCheckAppfwprofile_cookieconsistency_bindingExist(n string, id *strin appFwName := idSlice[0] cookieconsistency := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_cookieconsistency_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_cookieconsistency_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -150,7 +151,7 @@ func testAccCheckAppfwprofile_cookieconsistency_bindingDestroy(s *terraform.Stat return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile_cookieconsistency_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile_cookieconsistency_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("appfwprofile_cookieconsistency_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding.go b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding.go index 3be8e7d41..a6c01f6dd 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding.go +++ b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding.go @@ -3,10 +3,10 @@ package citrixadc import ( "net/url" - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "log" "strings" @@ -113,7 +113,7 @@ func createAppfwprofile_crosssitescripting_bindingFunc(d *schema.ResourceData, m State: d.Get("state").(string), } - _, err := client.AddResource(netscaler.Appfwprofile_crosssitescripting_binding.Type(), appFwName, &appfwprofile_crosssitescripting_binding) + _, err := client.AddResource(service.Appfwprofile_crosssitescripting_binding.Type(), appFwName, &appfwprofile_crosssitescripting_binding) if err != nil { return err } @@ -138,8 +138,8 @@ func readAppfwprofile_crosssitescripting_bindingFunc(d *schema.ResourceData, met crosssitescripting := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofile_crosssitescripting_binding state %s", bindingId) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_crosssitescripting_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_crosssitescripting_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -208,7 +208,7 @@ func deleteAppfwprofile_crosssitescripting_bindingFunc(d *schema.ResourceData, m args["crosssitescripting"] = crosssitescripting args["formactionurl_xss"] = url.QueryEscape(d.Get("formactionurl_xss").(string)) args["as_scan_location_xss"] = d.Get("as_scan_location_xss").(string) - err := client.DeleteResourceWithArgsMap(netscaler.Appfwprofile_crosssitescripting_binding.Type(), appFwName, args) + err := client.DeleteResourceWithArgsMap(service.Appfwprofile_crosssitescripting_binding.Type(), appFwName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go index e4b0284ca..2fe336227 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go @@ -20,7 +20,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -119,8 +120,8 @@ func testAccCheckAppfwprofile_crosssitescripting_bindingExist(n string, id *stri appFwName := idSlice[0] crosssitescripting := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_crosssitescripting_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_crosssitescripting_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -161,7 +162,7 @@ func testAccCheckAppfwprofile_crosssitescripting_bindingDestroy(s *terraform.Sta return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile_crosssitescripting_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile_crosssitescripting_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("appfwprofile_crosssitescripting_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding.go b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding.go index 3e65be036..41f198210 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding.go +++ b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding.go @@ -3,9 +3,9 @@ package citrixadc import ( "net/url" - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -73,7 +73,7 @@ func createAppfwprofileDenyurlBindingFunc(d *schema.ResourceData, meta interface State: d.Get("state").(string), } - err := client.UpdateUnnamedResource(netscaler.Appfwprofile_denyurl_binding.Type(), &appfwprofileDenyurlBinding) + err := client.UpdateUnnamedResource(service.Appfwprofile_denyurl_binding.Type(), &appfwprofileDenyurlBinding) if err != nil { return err } @@ -104,8 +104,8 @@ func readAppfwprofileDenyurlBindingFunc(d *schema.ResourceData, meta interface{} log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofileDenyurlBinding state %s", bindingID) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_denyurl_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_denyurl_binding.Type(), ResourceName: profileName, } findParams.FilterMap = make(map[string]string) @@ -157,7 +157,7 @@ func deleteAppfwprofileDenyurlBindingFunc(d *schema.ResourceData, meta interface args := make([]string, 0) args = append(args, fmt.Sprintf("denyurl:%v", url.QueryEscape(denyURL))) - err := client.DeleteResourceWithArgs(netscaler.Appfwprofile_denyurl_binding.Type(), profileName, args) + err := client.DeleteResourceWithArgs(service.Appfwprofile_denyurl_binding.Type(), profileName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go index ddeeee176..41f84b345 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go @@ -21,7 +21,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -117,8 +118,8 @@ func testAccCheckAppfwprofile_denyurl_bindingExist(n string, id *string) resourc profileName := idSlice[0] denyURL := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_denyurl_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_denyurl_binding.Type(), ResourceName: profileName, } findParams.FilterMap = make(map[string]string) @@ -149,7 +150,7 @@ func testAccCheckAppfwprofile_denyurl_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile_denyurl_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile_denyurl_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("appfwprofile_denyurl_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding.go b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding.go index f8cc05202..40aacd95b 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding.go +++ b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding.go @@ -5,9 +5,9 @@ import ( "net/url" "strings" - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "log" @@ -114,7 +114,7 @@ func createAppfwprofile_sqlinjection_bindingFunc(d *schema.ResourceData, meta in State: d.Get("state").(string), } - _, err := client.AddResource(netscaler.Appfwprofile_sqlinjection_binding.Type(), sqlinjection, &appfwprofile_sqlinjection_binding) + _, err := client.AddResource(service.Appfwprofile_sqlinjection_binding.Type(), sqlinjection, &appfwprofile_sqlinjection_binding) if err != nil { return err } @@ -139,8 +139,8 @@ func readAppfwprofile_sqlinjection_bindingFunc(d *schema.ResourceData, meta inte sqlinjection := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofile_sqlinjection_binding state %s", bindingId) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_sqlinjection_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_sqlinjection_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -210,7 +210,7 @@ func deleteAppfwprofile_sqlinjection_bindingFunc(d *schema.ResourceData, meta in args["formactionurl_sql"] = url.QueryEscape(d.Get("formactionurl_sql").(string)) args["as_scan_location_sql"] = d.Get("as_scan_location_sql").(string) - err := client.DeleteResourceWithArgsMap(netscaler.Appfwprofile_sqlinjection_binding.Type(), appFwName, args) + err := client.DeleteResourceWithArgsMap(service.Appfwprofile_sqlinjection_binding.Type(), appFwName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go index 6bccb96b4..871403d4c 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go @@ -20,7 +20,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -112,8 +113,8 @@ func testAccCheckAppfwprofile_sqlinjection_bindingExist(n string, id *string) re appFwName := idSlice[0] sqlinjection := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_sqlinjection_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_sqlinjection_binding.Type(), ResourceName: appFwName, ResourceMissingErrorCode: 258, } @@ -154,7 +155,7 @@ func testAccCheckAppfwprofile_sqlinjection_bindingDestroy(s *terraform.State) er return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile_sqlinjection_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile_sqlinjection_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("appfwprofile_sqlinjection_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding.go b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding.go index a3dfafae6..2889bee14 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding.go +++ b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding.go @@ -3,9 +3,9 @@ package citrixadc import ( "net/url" - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -73,7 +73,7 @@ func createAppfwprofileStarturlBindingFunc(d *schema.ResourceData, meta interfac State: d.Get("state").(string), } - err := client.UpdateUnnamedResource(netscaler.Appfwprofile_starturl_binding.Type(), &appfwprofileStarturlBinding) + err := client.UpdateUnnamedResource(service.Appfwprofile_starturl_binding.Type(), &appfwprofileStarturlBinding) if err != nil { return err } @@ -104,8 +104,8 @@ func readAppfwprofileStarturlBindingFunc(d *schema.ResourceData, meta interface{ log.Printf("[DEBUG] citrixadc-provider: Reading appfwprofileStarturlBinding state %s", bindingID) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_starturl_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_starturl_binding.Type(), ResourceName: profileName, } findParams.FilterMap = make(map[string]string) @@ -157,7 +157,7 @@ func deleteAppfwprofileStarturlBindingFunc(d *schema.ResourceData, meta interfac args := make([]string, 0) args = append(args, fmt.Sprintf("starturl:%v", url.QueryEscape(startURL))) - err := client.DeleteResourceWithArgs(netscaler.Appfwprofile_starturl_binding.Type(), profileName, args) + err := client.DeleteResourceWithArgs(service.Appfwprofile_starturl_binding.Type(), profileName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go index 6e6c219f6..0aeac1d8c 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go @@ -21,7 +21,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -117,8 +118,8 @@ func testAccCheckAppfwprofile_starturl_bindingExist(n string, id *string) resour profileName := idSlice[0] startURL := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Appfwprofile_starturl_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Appfwprofile_starturl_binding.Type(), ResourceName: profileName, } findParams.FilterMap = make(map[string]string) @@ -149,7 +150,7 @@ func testAccCheckAppfwprofile_starturl_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile_starturl_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile_starturl_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("appfwprofile_starturl_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwprofile_test.go b/citrixadc/resource_citrixadc_appfwprofile_test.go index 782d7858e..036a0e0fb 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccAppfwprofile_add = ` @@ -139,7 +140,7 @@ func testAccCheckAppfwprofileExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -165,7 +166,7 @@ func testAccCheckAppfwprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_appfwxmlcontenttype.go b/citrixadc/resource_citrixadc_appfwxmlcontenttype.go index eac38a3ae..ca5b788c9 100644 --- a/citrixadc/resource_citrixadc_appfwxmlcontenttype.go +++ b/citrixadc/resource_citrixadc_appfwxmlcontenttype.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/appfw" + "github.com/citrix/adc-nitro-go/resource/config/appfw" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -39,7 +39,7 @@ func createAppfwxmlcontenttypeFunc(d *schema.ResourceData, meta interface{}) err Xmlcontenttypevalue: appfwxmlcontenttypeName, } - _, err := client.AddResource(netscaler.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName, &appfwxmlcontenttype) + _, err := client.AddResource(service.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName, &appfwxmlcontenttype) if err != nil { return err } @@ -59,7 +59,7 @@ func readAppfwxmlcontenttypeFunc(d *schema.ResourceData, meta interface{}) error client := meta.(*NetScalerNitroClient).client appfwxmlcontenttypeName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading appfwxmlcontenttype state %s", appfwxmlcontenttypeName) - data, err := client.FindResource(netscaler.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName) + data, err := client.FindResource(service.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing appfwxmlcontenttype state %s", appfwxmlcontenttypeName) d.SetId("") @@ -76,7 +76,7 @@ func deleteAppfwxmlcontenttypeFunc(d *schema.ResourceData, meta interface{}) err log.Printf("[DEBUG] citrixadc-provider: In deleteAppfwxmlcontenttypeFunc") client := meta.(*NetScalerNitroClient).client appfwxmlcontenttypeName := d.Id() - err := client.DeleteResource(netscaler.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName) + err := client.DeleteResource(service.Appfwxmlcontenttype.Type(), appfwxmlcontenttypeName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go b/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go index 47bfb91f4..e6f64edb1 100644 --- a/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go +++ b/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccAppfwxmlcontenttype_basic = ` @@ -67,7 +68,7 @@ func testAccCheckAppfwxmlcontenttypeExist(n string, id *string) resource.TestChe } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Appfwxmlcontenttype.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Appfwxmlcontenttype.Type(), rs.Primary.ID) if err != nil { return err @@ -93,7 +94,7 @@ func testAccCheckAppfwxmlcontenttypeDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Appfwxmlcontenttype.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Appfwxmlcontenttype.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_auditmessageaction.go b/citrixadc/resource_citrixadc_auditmessageaction.go index 554d3d1e0..ec5e6d076 100644 --- a/citrixadc/resource_citrixadc_auditmessageaction.go +++ b/citrixadc/resource_citrixadc_auditmessageaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/audit" + "github.com/citrix/adc-nitro-go/resource/config/audit" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -65,7 +65,7 @@ func createAuditmessageactionFunc(d *schema.ResourceData, meta interface{}) erro Stringbuilderexpr: d.Get("stringbuilderexpr").(string), } - _, err := client.AddResource(netscaler.Auditmessageaction.Type(), auditmessageactionName, &auditmessageaction) + _, err := client.AddResource(service.Auditmessageaction.Type(), auditmessageactionName, &auditmessageaction) if err != nil { return err } @@ -85,7 +85,7 @@ func readAuditmessageactionFunc(d *schema.ResourceData, meta interface{}) error client := meta.(*NetScalerNitroClient).client auditmessageactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading auditmessageaction state %s", auditmessageactionName) - data, err := client.FindResource(netscaler.Auditmessageaction.Type(), auditmessageactionName) + data, err := client.FindResource(service.Auditmessageaction.Type(), auditmessageactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing auditmessageaction state %s", auditmessageactionName) d.SetId("") @@ -138,7 +138,7 @@ func updateAuditmessageactionFunc(d *schema.ResourceData, meta interface{}) erro } if hasChange { - _, err := client.UpdateResource(netscaler.Auditmessageaction.Type(), auditmessageactionName, &auditmessageaction) + _, err := client.UpdateResource(service.Auditmessageaction.Type(), auditmessageactionName, &auditmessageaction) if err != nil { return fmt.Errorf("Error updating auditmessageaction %s", auditmessageactionName) } @@ -150,7 +150,7 @@ func deleteAuditmessageactionFunc(d *schema.ResourceData, meta interface{}) erro log.Printf("[DEBUG] citrixadc-provider: In deleteAuditmessageactionFunc") client := meta.(*NetScalerNitroClient).client auditmessageactionName := d.Id() - err := client.DeleteResource(netscaler.Auditmessageaction.Type(), auditmessageactionName) + err := client.DeleteResource(service.Auditmessageaction.Type(), auditmessageactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_auditmessageaction_test.go b/citrixadc/resource_citrixadc_auditmessageaction_test.go index 0107dd5d6..3bcfb6b64 100644 --- a/citrixadc/resource_citrixadc_auditmessageaction_test.go +++ b/citrixadc/resource_citrixadc_auditmessageaction_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccAuditmessageaction_basic(t *testing.T) { @@ -71,7 +72,7 @@ func testAccCheckAuditmessageactionExist(n string, id *string) resource.TestChec } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Auditmessageaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Auditmessageaction.Type(), rs.Primary.ID) if err != nil { return err @@ -97,7 +98,7 @@ func testAccCheckAuditmessageactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Auditmessageaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Auditmessageaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_auditsyslogaction.go b/citrixadc/resource_citrixadc_auditsyslogaction.go index 72c883efe..098eafd2b 100644 --- a/citrixadc/resource_citrixadc_auditsyslogaction.go +++ b/citrixadc/resource_citrixadc_auditsyslogaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/audit" + "github.com/citrix/adc-nitro-go/resource/config/audit" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -172,17 +172,17 @@ func createAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error Dateformat: d.Get("dateformat").(string), Dns: d.Get("dns").(string), Domainresolvenow: d.Get("domainresolvenow").(bool), - Domainresolveretry: d.Get("domainresolveretry").(int), + Domainresolveretry: int32(d.Get("domainresolveretry").(int)), Lbvservername: d.Get("lbvservername").(string), Logfacility: d.Get("logfacility").(string), - Loglevel: loglevelValue(d), + Loglevel: toStringList(loglevelValue(d)), Lsn: d.Get("lsn").(string), - Maxlogdatasizetohold: d.Get("maxlogdatasizetohold").(int), + Maxlogdatasizetohold: uint32(d.Get("maxlogdatasizetohold").(int)), Name: d.Get("name").(string), Netprofile: d.Get("netprofile").(string), Serverdomainname: d.Get("serverdomainname").(string), Serverip: d.Get("serverip").(string), - Serverport: d.Get("serverport").(int), + Serverport: int32(d.Get("serverport").(int)), Sslinterception: d.Get("sslinterception").(string), Subscriberlog: d.Get("subscriberlog").(string), Tcp: d.Get("tcp").(string), @@ -193,7 +193,7 @@ func createAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error Userdefinedauditlog: d.Get("userdefinedauditlog").(string), } - _, err := client.AddResource(netscaler.Auditsyslogaction.Type(), auditsyslogactionName, &auditsyslogaction) + _, err := client.AddResource(service.Auditsyslogaction.Type(), auditsyslogactionName, &auditsyslogaction) if err != nil { return err } @@ -213,7 +213,7 @@ func readAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client auditsyslogactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading auditsyslogaction state %s", auditsyslogactionName) - data, err := client.FindResource(netscaler.Auditsyslogaction.Type(), auditsyslogactionName) + data, err := client.FindResource(service.Auditsyslogaction.Type(), auditsyslogactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing auditsyslogaction state %s", auditsyslogactionName) d.SetId("") @@ -297,7 +297,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("domainresolveretry") { log.Printf("[DEBUG] citrixadc-provider: Domainresolveretry has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Domainresolveretry = d.Get("domainresolveretry").(int) + auditsyslogaction.Domainresolveretry = int32(d.Get("domainresolveretry").(int)) hasChange = true } if d.HasChange("lbvservername") { @@ -312,7 +312,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("loglevel") { log.Printf("[DEBUG] citrixadc-provider: Loglevel has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Loglevel = loglevelValue(d) + auditsyslogaction.Loglevel = toStringList(loglevelValue(d)) hasChange = true } if d.HasChange("lsn") { @@ -322,7 +322,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("maxlogdatasizetohold") { log.Printf("[DEBUG] citrixadc-provider: Maxlogdatasizetohold has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Maxlogdatasizetohold = d.Get("maxlogdatasizetohold").(int) + auditsyslogaction.Maxlogdatasizetohold = uint32(d.Get("maxlogdatasizetohold").(int)) hasChange = true } if d.HasChange("name") { @@ -347,7 +347,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("serverport") { log.Printf("[DEBUG] citrixadc-provider: Serverport has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Serverport = d.Get("serverport").(int) + auditsyslogaction.Serverport = int32(d.Get("serverport").(int)) hasChange = true } if d.HasChange("sslinterception") { @@ -392,7 +392,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if hasChange { - _, err := client.UpdateResource(netscaler.Auditsyslogaction.Type(), auditsyslogactionName, &auditsyslogaction) + _, err := client.UpdateResource(service.Auditsyslogaction.Type(), auditsyslogactionName, &auditsyslogaction) if err != nil { return fmt.Errorf("Error updating auditsyslogaction %s", auditsyslogactionName) } @@ -404,7 +404,7 @@ func deleteAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error log.Printf("[DEBUG] citrixadc-provider: In deleteAuditsyslogactionFunc") client := meta.(*NetScalerNitroClient).client auditsyslogactionName := d.Id() - err := client.DeleteResource(netscaler.Auditsyslogaction.Type(), auditsyslogactionName) + err := client.DeleteResource(service.Auditsyslogaction.Type(), auditsyslogactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_auditsyslogaction_test.go b/citrixadc/resource_citrixadc_auditsyslogaction_test.go index 2c537e622..cc9631873 100644 --- a/citrixadc/resource_citrixadc_auditsyslogaction_test.go +++ b/citrixadc/resource_citrixadc_auditsyslogaction_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccAuditsyslogaction_basic(t *testing.T) { @@ -71,7 +72,7 @@ func testAccCheckAuditsyslogactionExist(n string, id *string) resource.TestCheck } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Auditsyslogaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Auditsyslogaction.Type(), rs.Primary.ID) if err != nil { return err @@ -97,7 +98,7 @@ func testAccCheckAuditsyslogactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Auditsyslogaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Auditsyslogaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("%s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_auditsyslogpolicy.go b/citrixadc/resource_citrixadc_auditsyslogpolicy.go index 07379ba9e..0a356a179 100644 --- a/citrixadc/resource_citrixadc_auditsyslogpolicy.go +++ b/citrixadc/resource_citrixadc_auditsyslogpolicy.go @@ -1,10 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/audit" - "github.com/chiradeep/go-nitro/config/system" + "github.com/citrix/adc-nitro-go/resource/config/audit" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -15,6 +14,16 @@ import ( "strconv" ) +type Systemglobalauditsyslogpolicybinding struct { + Builtin interface{} `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Nextfactor string `json:"nextfactor,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority int `json:"priority,omitempty"` +} + func resourceCitrixAdcAuditsyslogpolicy() *schema.Resource { return &schema.Resource{ SchemaVersion: 1, @@ -97,7 +106,7 @@ func createAuditsyslogpolicyFunc(d *schema.ResourceData, meta interface{}) error Rule: d.Get("rule").(string), } - _, err := client.AddResource(netscaler.Auditsyslogpolicy.Type(), auditsyslogpolicyName, &auditsyslogpolicy) + _, err := client.AddResource(service.Auditsyslogpolicy.Type(), auditsyslogpolicyName, &auditsyslogpolicy) if err != nil { return err } @@ -121,7 +130,7 @@ func readAuditsyslogpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client auditsyslogpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading auditsyslogpolicy state %s", auditsyslogpolicyName) - data, err := client.FindResource(netscaler.Auditsyslogpolicy.Type(), auditsyslogpolicyName) + data, err := client.FindResource(service.Auditsyslogpolicy.Type(), auditsyslogpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing auditsyslogpolicy state %s", auditsyslogpolicyName) d.SetId("") @@ -166,7 +175,7 @@ func updateAuditsyslogpolicyFunc(d *schema.ResourceData, meta interface{}) error } if hasChange { - _, err := client.UpdateResource(netscaler.Auditsyslogpolicy.Type(), auditsyslogpolicyName, &auditsyslogpolicy) + _, err := client.UpdateResource(service.Auditsyslogpolicy.Type(), auditsyslogpolicyName, &auditsyslogpolicy) if err != nil { return fmt.Errorf("Error updating auditsyslogpolicy %s: %s", auditsyslogpolicyName, err.Error()) } @@ -194,7 +203,7 @@ func deleteAuditsyslogpolicyFunc(d *schema.ResourceData, meta interface{}) error } } - err := client.DeleteResource(netscaler.Auditsyslogpolicy.Type(), auditsyslogpolicyName) + err := client.DeleteResource(service.Auditsyslogpolicy.Type(), auditsyslogpolicyName) if err != nil { return err } @@ -210,7 +219,7 @@ func readSystemglobalAuditsyslogpolicyBinding(d *schema.ResourceData, meta inter policyName := d.Get("name").(string) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "systemglobal_auditsyslogpolicy_binding", FilterMap: map[string]string{"policyname": policyName}, } @@ -287,7 +296,7 @@ func addSystemglobalAuditsyslogpolicyBinding(d *schema.ResourceData, meta interf log.Printf("[DEBUG] citrixadc-provider: In addSystemglobalAuditsyslogpolicyBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := system.Systemglobalauditsyslogpolicybinding{} + bindingStruct := Systemglobalauditsyslogpolicybinding{} bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["feature"]; ok { diff --git a/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go b/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go index 7e221ce07..1b0a15333 100644 --- a/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go +++ b/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccAuditsyslogpolicy_basic(t *testing.T) { @@ -74,7 +75,7 @@ func testAccCheckAuditsyslogpolicyExist(n string, id *string) resource.TestCheck } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Auditsyslogpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Auditsyslogpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -100,7 +101,7 @@ func testAccCheckAuditsyslogpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Auditsyslogpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Auditsyslogpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("%s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_cluster.go b/citrixadc/resource_citrixadc_cluster.go index b4d401bd2..47d1d89c5 100644 --- a/citrixadc/resource_citrixadc_cluster.go +++ b/citrixadc/resource_citrixadc_cluster.go @@ -1,10 +1,10 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cluster" + "github.com/citrix/adc-nitro-go/resource/config/cluster" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/config/ns" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -286,7 +286,7 @@ func readClusterFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client clusterId := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading cluster state %s", clusterId) - datalist, err := client.FindAllResources(netscaler.Clusterinstance.Type()) + datalist, err := client.FindAllResources(service.Clusterinstance.Type()) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing cluster state %s", clusterId) d.SetId("") @@ -344,7 +344,7 @@ func updateClusterFunc(d *schema.ResourceData, meta interface{}) error { clid := strconv.Itoa(d.Get("clid").(int)) clusterinstance := cluster.Clusterinstance{ - Clid: d.Get("clid").(int), + Clid: uint32(d.Get("clid").(int)), } hasChange := false clusterNodegroupChanged := false @@ -355,17 +355,17 @@ func updateClusterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clid") { log.Printf("[DEBUG] citrixadc-provider: Clid has changed for clusterinstance %s, starting update", clid) - clusterinstance.Clid = d.Get("clid").(int) + clusterinstance.Clid = uint32(d.Get("clid").(int)) hasChange = true } if d.HasChange("deadinterval") { log.Printf("[DEBUG] citrixadc-provider: Deadinterval has changed for clusterinstance %s, starting update", clid) - clusterinstance.Deadinterval = d.Get("deadinterval").(int) + clusterinstance.Deadinterval = uint64(d.Get("deadinterval").(int)) hasChange = true } if d.HasChange("hellointerval") { log.Printf("[DEBUG] citrixadc-provider: Hellointerval has changed for clusterinstance %s, starting update", clid) - clusterinstance.Hellointerval = d.Get("hellointerval").(int) + clusterinstance.Hellointerval = uint32(d.Get("hellointerval").(int)) hasChange = true } if d.HasChange("inc") { @@ -405,7 +405,7 @@ func updateClusterFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Clusterinstance.Type(), clid, &clusterinstance) + _, err := client.UpdateResource(service.Clusterinstance.Type(), clid, &clusterinstance) if err != nil { return fmt.Errorf("Error updating clusterinstance %s. %s", clid, err.Error()) } @@ -607,9 +607,9 @@ func getClusterNodegroupByName(d *schema.ResourceData, nodegroupName string) map return nil } -func clusternodegroupExistsInCluster(client *netscaler.NitroClient, nodegroupName string) (bool, error) { +func clusternodegroupExistsInCluster(client *service.NitroClient, nodegroupName string) (bool, error) { log.Printf("[DEBUG] citrixadc-provider: In clusternodegroupExistsInCluster") - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "clusternodegroup", ResourceName: nodegroupName, ResourceMissingErrorCode: 258, @@ -631,9 +631,9 @@ func clusternodegroupExistsInCluster(client *netscaler.NitroClient, nodegroupNam } -func getClusternodegroupFromCluster(client *netscaler.NitroClient, nodegroupName string) (map[string]interface{}, error) { +func getClusternodegroupFromCluster(client *service.NitroClient, nodegroupName string) (map[string]interface{}, error) { log.Printf("[DEBUG] citrixadc-provider: In getClusternodegroupFromCluster") - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "clusternodegroup", ResourceName: nodegroupName, ResourceMissingErrorCode: 258, @@ -722,9 +722,9 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusterinstance := cluster.Clusterinstance{ Backplanebasedview: d.Get("backplanebasedview").(string), - Clid: d.Get("clid").(int), - Deadinterval: d.Get("deadinterval").(int), - Hellointerval: d.Get("hellointerval").(int), + Clid: uint32(d.Get("clid").(int)), + Deadinterval: uint64(d.Get("deadinterval").(int)), + Hellointerval: uint32(d.Get("hellointerval").(int)), Inc: d.Get("inc").(string), Nodegroup: d.Get("nodegroup").(string), Preemption: d.Get("preemption").(string), @@ -747,7 +747,7 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: nodegroupData["priority"].(int), + Priority: uint32(nodegroupData["priority"].(int)), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -764,17 +764,17 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusternode := cluster.Clusternode{ Backplane: firstNode["backplane"].(string), Clearnodegroupconfig: firstNode["clearnodegroupconfig"].(string), - Delay: firstNode["delay"].(int), + Delay: uint32(firstNode["delay"].(int)), Ipaddress: firstNode["ipaddress"].(string), Nodegroup: firstNode["nodegroup"].(string), - Nodeid: firstNode["nodeid"].(int), - Priority: firstNode["priority"].(int), + Nodeid: uint32(firstNode["nodeid"].(int)), + Priority: uint32(firstNode["priority"].(int)), State: firstNode["state"].(string), Tunnelmode: firstNode["tunnelmode"].(string), } log.Printf("[DEBUG] citrixadc-provider: Nodeid %v", clusternode.Nodeid) - _, err = nodeClient.AddResource("clusternode", strconv.Itoa(clusternode.Nodeid), &clusternode) + _, err = nodeClient.AddResource("clusternode", strconv.FormatUint(uint64(clusternode.Nodeid), 10), &clusternode) if err != nil { return err } @@ -787,14 +787,14 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { Type: "CLIP", } - _, err = nodeClient.AddResource(netscaler.Nsip.Type(), ipaddress, &nsip) + _, err = nodeClient.AddResource(service.Nsip.Type(), ipaddress, &nsip) if err != nil { return err } // Enable cluster instance on first node clusterinstanceEnabler := cluster.Clusterinstance{ - Clid: d.Get("clid").(int), + Clid: uint32(d.Get("clid").(int)), } err = nodeClient.ActOnResource("clusterinstance", &clusterinstanceEnabler, "enable") if err != nil { @@ -1038,7 +1038,7 @@ func updateSingleClusterNodegroup(d *schema.ResourceData, meta interface{}, node clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: nodegroupData["priority"].(int), + Priority: uint32(nodegroupData["priority"].(int)), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -1071,7 +1071,7 @@ func addSingleClusterNodegroup(d *schema.ResourceData, meta interface{}, nodegro clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: nodegroupData["priority"].(int), + Priority: uint32(nodegroupData["priority"].(int)), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -1337,17 +1337,17 @@ func addSingleClusterNode(d *schema.ResourceData, meta interface{}, nodeData map clusternode := cluster.Clusternode{ Backplane: nodeData["backplane"].(string), Clearnodegroupconfig: nodeData["clearnodegroupconfig"].(string), - Delay: nodeData["delay"].(int), + Delay: uint32(nodeData["delay"].(int)), Ipaddress: nodeData["ipaddress"].(string), Nodegroup: nodeData["nodegroup"].(string), - Nodeid: nodeData["nodeid"].(int), - Priority: nodeData["priority"].(int), + Nodeid: uint32(nodeData["nodeid"].(int)), + Priority: uint32(nodeData["priority"].(int)), State: nodeData["state"].(string), Tunnelmode: nodeData["tunnelmode"].(string), } // Add cluster node on cluster configuration coordinator - _, err := client.AddResource("clusternode", strconv.Itoa(clusternode.Nodeid), &clusternode) + _, err := client.AddResource("clusternode", strconv.FormatUint(uint64(clusternode.Nodeid), 10), &clusternode) if err != nil { return err } @@ -1482,9 +1482,9 @@ func updateSingleClusterNode(d *schema.ResourceData, meta interface{}, nodeData // Only include attributes that can be present in HTTP PUT operation clusternode := cluster.Clusternode{ Backplane: nodeData["backplane"].(string), - Delay: nodeData["delay"].(int), - Nodeid: nodeData["nodeid"].(int), - Priority: nodeData["priority"].(int), + Delay: uint32(nodeData["delay"].(int)), + Nodeid: uint32(nodeData["nodeid"].(int)), + Priority: uint32(nodeData["priority"].(int)), State: nodeData["state"].(string), Tunnelmode: nodeData["tunnelmode"].(string), } @@ -1533,7 +1533,7 @@ func describeNodeMapDiff(left, right map[string]interface{}) { } } -func instantiateNodeClient(d *schema.ResourceData, meta interface{}, nodeMap map[string]interface{}) (*netscaler.NitroClient, error) { +func instantiateNodeClient(d *schema.ResourceData, meta interface{}, nodeMap map[string]interface{}) (*service.NitroClient, error) { log.Printf("[DEBUG] citrixadc-provider: In instantiateNodeClient") var nodeEndpoint string @@ -1559,7 +1559,7 @@ func instantiateNodeClient(d *schema.ResourceData, meta interface{}, nodeMap map // Always exists has default value nodeSslVerrify = !nodeMap["insecure_skip_verify"].(bool) - params := netscaler.NitroParams{ + params := service.NitroParams{ Url: nodeEndpoint, Username: nodeUsername, Password: nodePassword, @@ -1568,7 +1568,7 @@ func instantiateNodeClient(d *schema.ResourceData, meta interface{}, nodeMap map log.Printf("[DEBUG] citrixadc-provider: node client params %v", params) - nodeClient, err := netscaler.NewNitroClientFromParams(params) + nodeClient, err := service.NewNitroClientFromParams(params) return nodeClient, err } diff --git a/citrixadc/resource_citrixadc_cluster_test.go b/citrixadc/resource_citrixadc_cluster_test.go index 731d09537..d40032c1d 100644 --- a/citrixadc/resource_citrixadc_cluster_test.go +++ b/citrixadc/resource_citrixadc_cluster_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccCluster_basic(t *testing.T) { @@ -80,7 +81,7 @@ func testAccCheckClusterExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Clusterinstance.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Clusterinstance.Type(), rs.Primary.ID) if err != nil { return err @@ -106,7 +107,7 @@ func testAccCheckClusterDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Clusterinstance.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Clusterinstance.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_clusterfiles_syncer.go b/citrixadc/resource_citrixadc_clusterfiles_syncer.go index 38cafd09e..a6a7d1afc 100644 --- a/citrixadc/resource_citrixadc_clusterfiles_syncer.go +++ b/citrixadc/resource_citrixadc_clusterfiles_syncer.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cluster" + "github.com/citrix/adc-nitro-go/resource/config/cluster" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" _ "fmt" @@ -38,10 +38,10 @@ func createClusterfilessyncerFunc(d *schema.ResourceData, meta interface{}) erro client := meta.(*NetScalerNitroClient).client timestamp := d.Get("timestamp").(string) clusterfiles := cluster.Clusterfiles{ - Mode: d.Get("mode").(*schema.Set).List(), + Mode: toStringList(d.Get("mode").(*schema.Set).List()), } - err := client.ActOnResource(netscaler.Clusterfiles.Type(), &clusterfiles, "sync") + err := client.ActOnResource(service.Clusterfiles.Type(), &clusterfiles, "sync") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_cmppolicy.go b/citrixadc/resource_citrixadc_cmppolicy.go index ee9bccba1..f2fec8890 100644 --- a/citrixadc/resource_citrixadc_cmppolicy.go +++ b/citrixadc/resource_citrixadc_cmppolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cmp" + "github.com/citrix/adc-nitro-go/resource/config/cmp" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -50,7 +50,7 @@ func createCmppolicyFunc(d *schema.ResourceData, meta interface{}) error { Rule: d.Get("rule").(string), } - _, err := client.AddResource(netscaler.Cmppolicy.Type(), cmppolicyName, &cmppolicy) + _, err := client.AddResource(service.Cmppolicy.Type(), cmppolicyName, &cmppolicy) if err != nil { return err } @@ -70,7 +70,7 @@ func readCmppolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client cmppolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading cmppolicy state %s", cmppolicyName) - data, err := client.FindResource(netscaler.Cmppolicy.Type(), cmppolicyName) + data, err := client.FindResource(service.Cmppolicy.Type(), cmppolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing cmppolicy state %s", cmppolicyName) d.SetId("") @@ -111,7 +111,7 @@ func updateCmppolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Cmppolicy.Type(), cmppolicyName, &cmppolicy) + _, err := client.UpdateResource(service.Cmppolicy.Type(), cmppolicyName, &cmppolicy) if err != nil { return fmt.Errorf("Error updating cmppolicy %s", cmppolicyName) } @@ -123,7 +123,7 @@ func deleteCmppolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteCmppolicyFunc") client := meta.(*NetScalerNitroClient).client cmppolicyName := d.Id() - err := client.DeleteResource(netscaler.Cmppolicy.Type(), cmppolicyName) + err := client.DeleteResource(service.Cmppolicy.Type(), cmppolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_cmppolicy_test.go b/citrixadc/resource_citrixadc_cmppolicy_test.go index 888b9608b..dccd145e0 100644 --- a/citrixadc/resource_citrixadc_cmppolicy_test.go +++ b/citrixadc/resource_citrixadc_cmppolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccCmppolicy_basic_step1 = ` @@ -85,7 +86,7 @@ func testAccCheckCmppolicyExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Cmppolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Cmppolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -111,7 +112,7 @@ func testAccCheckCmppolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Cmppolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Cmppolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("cmppolicy %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csaction.go b/citrixadc/resource_citrixadc_csaction.go index a1ccdf5b3..42ac58662 100644 --- a/citrixadc/resource_citrixadc_csaction.go +++ b/citrixadc/resource_citrixadc_csaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -64,7 +64,7 @@ func createCsactionFunc(d *schema.ResourceData, meta interface{}) error { Targetvserverexpr: d.Get("targetvserverexpr").(string), } - _, err := client.AddResource(netscaler.Csaction.Type(), csactionName, &csaction) + _, err := client.AddResource(service.Csaction.Type(), csactionName, &csaction) if err != nil { return err } @@ -84,7 +84,7 @@ func readCsactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client csactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading csaction state %s", csactionName) - data, err := client.FindResource(netscaler.Csaction.Type(), csactionName) + data, err := client.FindResource(service.Csaction.Type(), csactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing csaction state %s", csactionName) d.SetId("") @@ -136,7 +136,7 @@ func updateCsactionFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Csaction.Type(), csactionName, &csaction) + _, err := client.UpdateResource(service.Csaction.Type(), csactionName, &csaction) if err != nil { return fmt.Errorf("Error updating csaction %s", csactionName) } @@ -148,7 +148,7 @@ func deleteCsactionFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteCsactionFunc") client := meta.(*NetScalerNitroClient).client csactionName := d.Id() - err := client.DeleteResource(netscaler.Csaction.Type(), csactionName) + err := client.DeleteResource(service.Csaction.Type(), csactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csaction_test.go b/citrixadc/resource_citrixadc_csaction_test.go index b3ed4250c..ec2c2fe31 100644 --- a/citrixadc/resource_citrixadc_csaction_test.go +++ b/citrixadc/resource_citrixadc_csaction_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -161,7 +161,7 @@ func testAccCheckCsactionExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Csaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Csaction.Type(), rs.Primary.ID) if err != nil { return err @@ -187,7 +187,7 @@ func testAccCheckCsactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_cspolicy.go b/citrixadc/resource_citrixadc_cspolicy.go index 1a0218a44..037d65b7d 100644 --- a/citrixadc/resource_citrixadc_cspolicy.go +++ b/citrixadc/resource_citrixadc_cspolicy.go @@ -1,8 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -89,7 +90,7 @@ func createCspolicyFunc(d *schema.ResourceData, meta interface{}) error { _, rok := d.GetOk("rule") if aok { - actionExists := client.ResourceExists(netscaler.Csaction.Type(), action.(string)) + actionExists := client.ResourceExists(service.Csaction.Type(), action.(string)) if !actionExists { return fmt.Errorf("[ERROR] netscaler-provider: Specified Action %s does not exist", action.(string)) } @@ -126,29 +127,29 @@ func createCspolicyFunc(d *schema.ResourceData, meta interface{}) error { Url: d.Get("url").(string), } - _, err := client.AddResource(netscaler.Cspolicy.Type(), cspolicyName, &cspolicy) + _, err := client.AddResource(service.Cspolicy.Type(), cspolicyName, &cspolicy) if err != nil { return err } if _, ok := d.GetOk("csvserver"); ok { - binding := cs.Csvservercspolicybinding{ + binding := cs.Csvserverpolicybinding{ Name: csvserver, Policyname: cspolicyName, } if pok { - binding.Priority = priority.(int) + binding.Priority = uint32(priority.(int)) } if lbok { binding.Targetlbvserver = targetlbvserver.(string) } - err = client.BindResource(netscaler.Csvserver.Type(), csvserver, netscaler.Cspolicy.Type(), cspolicyName, &binding) + err = client.BindResource(service.Csvserver.Type(), csvserver, service.Cspolicy.Type(), cspolicyName, &binding) if err != nil { d.SetId("") - err2 := client.DeleteResource(netscaler.Cspolicy.Type(), cspolicyName) + err2 := client.DeleteResource(service.Cspolicy.Type(), cspolicyName) if err2 != nil { return fmt.Errorf("[ERROR] netscaler-provider: Failed to undo add cspolicy after bind cspolicy %s to Csvserver failed err=%v", cspolicyName, err2) } @@ -169,7 +170,7 @@ func readCspolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client cspolicyName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading cspolicy state %s", cspolicyName) - data, err := client.FindResource(netscaler.Cspolicy.Type(), cspolicyName) + data, err := client.FindResource(service.Cspolicy.Type(), cspolicyName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing cspolicy state %s", cspolicyName) d.SetId("") @@ -184,7 +185,7 @@ func readCspolicyFunc(d *schema.ResourceData, meta interface{}) error { //read the csvserver binding and update if _, ok := d.GetOk("csvserver"); ok { - bindings, err := client.FindAllBoundResources(netscaler.Cspolicy.Type(), cspolicyName, netscaler.Csvserver.Type()) + bindings, err := client.FindAllBoundResources(service.Cspolicy.Type(), cspolicyName, service.Csvserver.Type()) if err != nil { log.Printf("[WARN] netscaler-provider: cspolicy binding to csvserver error %s", cspolicyName) return nil @@ -257,7 +258,7 @@ func updateCspolicyFunc(d *schema.ResourceData, meta interface{}) error { if lbvserverChanged || priorityChanged { //Binding has to be updated //First we unbind from cs vserver - err := client.UnbindResource(netscaler.Csvserver.Type(), csvserver, netscaler.Cspolicy.Type(), cspolicyName, "policyname") + err := client.UnbindResource(service.Csvserver.Type(), csvserver, service.Cspolicy.Type(), cspolicyName, "policyname") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding cspolicy from csvserver %s", cspolicyName) } @@ -266,7 +267,7 @@ func updateCspolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Cspolicy.Type(), cspolicyName, &cspolicy) + _, err := client.UpdateResource(service.Cspolicy.Type(), cspolicyName, &cspolicy) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error updating cspolicy %s", cspolicyName) } @@ -284,13 +285,13 @@ func updateCspolicyFunc(d *schema.ResourceData, meta interface{}) error { return fmt.Errorf("[ERROR] netscaler-provider: Need to specify priority if lbvserver is specified") } - binding := cs.Csvservercspolicybinding{ + binding := cs.Csvserverpolicybinding{ Name: csvserver, Policyname: cspolicyName, Targetlbvserver: targetlbvserver.(string), - Priority: priority.(int), + Priority: uint32(priority.(int)), } - err := client.BindResource(netscaler.Csvserver.Type(), csvserver, netscaler.Cspolicy.Type(), cspolicyName, &binding) + err := client.BindResource(service.Csvserver.Type(), csvserver, service.Cspolicy.Type(), cspolicyName, &binding) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind new cspolicy to Csvserver") } @@ -309,12 +310,12 @@ func deleteCspolicyFunc(d *schema.ResourceData, meta interface{}) error { //First we unbind from cs vserver if necessary if _, ok := d.GetOk("csvserver"); ok { - err := client.UnbindResource(netscaler.Csvserver.Type(), csvserver, netscaler.Cspolicy.Type(), cspolicyName, "policyname") + err := client.UnbindResource(service.Csvserver.Type(), csvserver, service.Cspolicy.Type(), cspolicyName, "policyname") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding cspolicy \"%s\" from csvserver \"%v\": %v ", cspolicyName, csvserver, err.Error()) } } - err := client.DeleteResource(netscaler.Cspolicy.Type(), cspolicyName) + err := client.DeleteResource(service.Cspolicy.Type(), cspolicyName) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error deleting cspolicy %s", cspolicyName) } diff --git a/citrixadc/resource_citrixadc_cspolicy_test.go b/citrixadc/resource_citrixadc_cspolicy_test.go index a863d8a20..af01a5cd7 100644 --- a/citrixadc/resource_citrixadc_cspolicy_test.go +++ b/citrixadc/resource_citrixadc_cspolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccCspolicy_basic(t *testing.T) { @@ -68,7 +69,7 @@ func testAccCheckCspolicyExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Cspolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Cspolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -94,7 +95,7 @@ func testAccCheckCspolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Cspolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Cspolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver.go b/citrixadc/resource_citrixadc_csvserver.go index dac694685..00ebaf787 100644 --- a/citrixadc/resource_citrixadc_csvserver.go +++ b/citrixadc/resource_citrixadc_csvserver.go @@ -1,10 +1,10 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -437,7 +437,7 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } sslcertkey, sok := d.GetOk("sslcertkey") if sok { - exists := client.ResourceExists(netscaler.Sslcertkey.Type(), sslcertkey.(string)) + exists := client.ResourceExists(service.Sslcertkey.Type(), sslcertkey.(string)) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified ssl cert key does not exist on netscaler!") } @@ -464,10 +464,10 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Backupvserver: d.Get("backupvserver").(string), Cacheable: d.Get("cacheable").(string), Casesensitive: d.Get("casesensitive").(string), - Clttimeout: d.Get("clttimeout").(int), + Clttimeout: uint64(d.Get("clttimeout").(int)), Comment: d.Get("comment").(string), Cookiedomain: d.Get("cookiedomain").(string), - Cookietimeout: d.Get("cookietimeout").(int), + Cookietimeout: uint32(d.Get("cookietimeout").(int)), Dbprofilename: d.Get("dbprofilename").(string), Disableprimaryondown: d.Get("disableprimaryondown").(string), Dnsprofilename: d.Get("dnsprofilename").(string), @@ -483,57 +483,57 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Ipv46: d.Get("ipv46").(string), L2conn: d.Get("l2conn").(string), Listenpolicy: d.Get("listenpolicy").(string), - Listenpriority: d.Get("listenpriority").(int), + Listenpriority: uint32(d.Get("listenpriority").(int)), Mssqlserverversion: d.Get("mssqlserverversion").(string), - Mysqlcharacterset: d.Get("mysqlcharacterset").(int), - Mysqlprotocolversion: d.Get("mysqlprotocolversion").(int), - Mysqlservercapabilities: d.Get("mysqlservercapabilities").(int), + Mysqlcharacterset: uint32(d.Get("mysqlcharacterset").(int)), + Mysqlprotocolversion: uint32(d.Get("mysqlprotocolversion").(int)), + Mysqlservercapabilities: uint32(d.Get("mysqlservercapabilities").(int)), Mysqlserverversion: d.Get("mysqlserverversion").(string), Netprofile: d.Get("netprofile").(string), Oracleserverversion: d.Get("oracleserverversion").(string), - Persistenceid: d.Get("persistenceid").(int), - Port: d.Get("port").(int), + Persistenceid: uint32(d.Get("persistenceid").(int)), + Port: int32(d.Get("port").(int)), Precedence: d.Get("precedence").(string), Push: d.Get("push").(string), Pushlabel: d.Get("pushlabel").(string), Pushmulticlients: d.Get("pushmulticlients").(string), Pushvserver: d.Get("pushvserver").(string), - Range: d.Get("range").(int), + Range: uint32(d.Get("range").(int)), Redirectportrewrite: d.Get("redirectportrewrite").(string), Redirecturl: d.Get("redirecturl").(string), Rhistate: d.Get("rhistate").(string), Rtspnat: d.Get("rtspnat").(string), Servicetype: d.Get("servicetype").(string), - Sitedomainttl: d.Get("sitedomainttl").(int), + Sitedomainttl: uint64(d.Get("sitedomainttl").(int)), Sobackupaction: d.Get("sobackupaction").(string), Somethod: d.Get("somethod").(string), Sopersistence: d.Get("sopersistence").(string), - Sopersistencetimeout: d.Get("sopersistencetimeout").(int), - Sothreshold: d.Get("sothreshold").(int), + Sopersistencetimeout: uint32(d.Get("sopersistencetimeout").(int)), + Sothreshold: uint32(d.Get("sothreshold").(int)), State: d.Get("state").(string), Stateupdate: d.Get("stateupdate").(string), Targettype: d.Get("targettype").(string), Tcpprofilename: d.Get("tcpprofilename").(string), - Td: d.Get("td").(int), - Ttl: d.Get("ttl").(int), + Td: uint32(d.Get("td").(int)), + Ttl: uint64(d.Get("ttl").(int)), Vipheader: d.Get("vipheader").(string), } - _, err := client.AddResource(netscaler.Csvserver.Type(), csvserverName, &csvserver) + _, err := client.AddResource(service.Csvserver.Type(), csvserverName, &csvserver) if err != nil { - log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", netscaler.Csvserver.Type(), csvserverName) + log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", service.Csvserver.Type(), csvserverName) return err } if sok { //ssl cert is specified - binding := ssl.Sslvserversslcertkeybinding{ + binding := ssl.Sslvservercertkeybinding{ Vservername: csvserverName, Certkeyname: sslcertkey.(string), } log.Printf("[INFO] netscaler-provider: Binding ssl cert %s to csvserver %s", sslcertkey, csvserverName) - err = client.BindResource(netscaler.Sslvserver.Type(), csvserverName, netscaler.Sslcertkey.Type(), sslcertkey.(string), &binding) + err = client.BindResource(service.Sslvserver.Type(), csvserverName, service.Sslcertkey.Type(), sslcertkey.(string), &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to csvserver %s", sslcertkey, csvserverName) - err2 := client.DeleteResource(netscaler.Csvserver.Type(), csvserverName) + err2 := client.DeleteResource(service.Csvserver.Type(), csvserverName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete csvserver %s after bind to ssl cert failed", csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete csvserver %s after bind to ssl cert failed", csvserverName) @@ -567,10 +567,10 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Sslprofile: sslprofile.(string), } log.Printf("[INFO] netscaler-provider: Binding ssl profile %s to csvserver %s", sslprofile, csvserverName) - _, err := client.UpdateResource(netscaler.Sslvserver.Type(), csvserverName, &sslvserver) + _, err := client.UpdateResource(service.Sslvserver.Type(), csvserverName, &sslvserver) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to csvserver %s", sslprofile, csvserverName) - err2 := client.DeleteResource(netscaler.Csvserver.Type(), csvserverName) + err2 := client.DeleteResource(service.Csvserver.Type(), csvserverName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete csvserver %s after bind to ssl profile failed", csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete csvserver %s after bind to ssl profile failed", csvserverName) @@ -584,13 +584,13 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { lbVserverName := lbVserver.(string) log.Printf("Adding binding to lbvserver %s", lbVserverName) - bindingStruct := cs.Csvserverlbvserverbinding{ + bindingStruct := cs.Csvservervserverbinding{ Name: d.Get("name").(string), Lbvserver: lbVserverName, } log.Printf("[INFO] netscaler-provider: Binding lbvserver %s to csvserver %s", lbVserverName, csvserverName) - err := client.BindResource(netscaler.Csvserver.Type(), csvserverName, netscaler.Lbvserver.Type(), lbVserverName, &bindingStruct) + err := client.BindResource(service.Csvserver.Type(), csvserverName, service.Lbvserver.Type(), lbVserverName, &bindingStruct) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind lbvserver %s to csvserver %s", lbVserverName, csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind lbvserver %s to csvserver %s", lbVserverName, csvserverName) @@ -618,7 +618,7 @@ func readCsvserverFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client csvserverName := d.Id() log.Printf("[DEBUG] netscaler-provider: csvserver state %s", csvserverName) - data, err := client.FindResource(netscaler.Csvserver.Type(), csvserverName) + data, err := client.FindResource(service.Csvserver.Type(), csvserverName) if err != nil { log.Printf("[WARN] netscaler-provider: csvserver state %s", csvserverName) d.SetId("") @@ -701,7 +701,7 @@ func readCsvserverFunc(d *schema.ResourceData, meta interface{}) error { return err } - dataSsl, _ := client.FindResource(netscaler.Sslvserver.Type(), csvserverName) + dataSsl, _ := client.FindResource(service.Sslvserver.Type(), csvserverName) d.Set("sslprofile", dataSsl["sslprofile"]) // Avoid duplicate listing of ciphersuites in standalone @@ -789,7 +789,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Clttimeout = d.Get("clttimeout").(int) + csvserver.Clttimeout = uint64(d.Get("clttimeout").(int)) hasChange = true } if d.HasChange("comment") { @@ -804,7 +804,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Cookietimeout = d.Get("cookietimeout").(int) + csvserver.Cookietimeout = uint32(d.Get("cookietimeout").(int)) hasChange = true } if d.HasChange("dbprofilename") { @@ -884,7 +884,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("listenpriority") { log.Printf("[DEBUG] netscaler-provider: Listenpriority has changed for csvserver %s, starting update", csvserverName) - csvserver.Listenpriority = d.Get("listenpriority").(int) + csvserver.Listenpriority = uint32(d.Get("listenpriority").(int)) hasChange = true } if d.HasChange("mssqlserverversion") { @@ -894,17 +894,17 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("mysqlcharacterset") { log.Printf("[DEBUG] netscaler-provider: Mysqlcharacterset has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlcharacterset = d.Get("mysqlcharacterset").(int) + csvserver.Mysqlcharacterset = uint32(d.Get("mysqlcharacterset").(int)) hasChange = true } if d.HasChange("mysqlprotocolversion") { log.Printf("[DEBUG] netscaler-provider: Mysqlprotocolversion has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlprotocolversion = d.Get("mysqlprotocolversion").(int) + csvserver.Mysqlprotocolversion = uint32(d.Get("mysqlprotocolversion").(int)) hasChange = true } if d.HasChange("mysqlservercapabilities") { log.Printf("[DEBUG] netscaler-provider: Mysqlservercapabilities has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlservercapabilities = d.Get("mysqlservercapabilities").(int) + csvserver.Mysqlservercapabilities = uint32(d.Get("mysqlservercapabilities").(int)) hasChange = true } if d.HasChange("mysqlserverversion") { @@ -929,12 +929,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("persistenceid") { log.Printf("[DEBUG] netscaler-provider: Persistenceid has changed for csvserver %s, starting update", csvserverName) - csvserver.Persistenceid = d.Get("persistenceid").(int) + csvserver.Persistenceid = uint32(d.Get("persistenceid").(int)) hasChange = true } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for csvserver %s, starting update", csvserverName) - csvserver.Port = d.Get("port").(int) + csvserver.Port = int32(d.Get("port").(int)) hasChange = true } if d.HasChange("precedence") { @@ -964,7 +964,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("range") { log.Printf("[DEBUG] netscaler-provider: Range has changed for csvserver %s, starting update", csvserverName) - csvserver.Range = d.Get("range").(int) + csvserver.Range = uint32(d.Get("range").(int)) hasChange = true } if d.HasChange("redirectportrewrite") { @@ -994,7 +994,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sitedomainttl") { log.Printf("[DEBUG] netscaler-provider: Sitedomainttl has changed for csvserver %s, starting update", csvserverName) - csvserver.Sitedomainttl = d.Get("sitedomainttl").(int) + csvserver.Sitedomainttl = uint64(d.Get("sitedomainttl").(int)) hasChange = true } if d.HasChange("sobackupaction") { @@ -1014,12 +1014,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sopersistencetimeout") { log.Printf("[DEBUG] netscaler-provider: Sopersistencetimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Sopersistencetimeout = d.Get("sopersistencetimeout").(int) + csvserver.Sopersistencetimeout = uint32(d.Get("sopersistencetimeout").(int)) hasChange = true } if d.HasChange("sothreshold") { log.Printf("[DEBUG] netscaler-provider: Sothreshold has changed for csvserver %s, starting update", csvserverName) - csvserver.Sothreshold = d.Get("sothreshold").(int) + csvserver.Sothreshold = uint32(d.Get("sothreshold").(int)) hasChange = true } if d.HasChange("state") { @@ -1043,12 +1043,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for csvserver %s, starting update", csvserverName) - csvserver.Td = d.Get("td").(int) + csvserver.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for csvserver %s, starting update", csvserverName) - csvserver.Ttl = d.Get("ttl").(int) + csvserver.Ttl = uint64(d.Get("ttl").(int)) hasChange = true } if d.HasChange("vipheader") { @@ -1089,7 +1089,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { oldSslcertkey, _ := d.GetChange("sslcertkey") oldSslcertkeyName := oldSslcertkey.(string) if oldSslcertkeyName != "" { - err := client.UnbindResource(netscaler.Sslvserver.Type(), csvserverName, netscaler.Sslcertkey.Type(), oldSslcertkeyName, "certkeyname") + err := client.UnbindResource(service.Sslvserver.Type(), csvserverName, service.Sslcertkey.Type(), oldSslcertkeyName, "certkeyname") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding sslcertkey from csvserver %s", oldSslcertkeyName) } @@ -1103,7 +1103,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { oldLbVserverName := oldLbVserver.(string) if oldLbVserverName != "" { - err := client.UnbindResource(netscaler.Csvserver.Type(), csvserverName, netscaler.Lbvserver.Type(), oldLbVserverName, "lbvserver") + err := client.UnbindResource(service.Csvserver.Type(), csvserverName, service.Lbvserver.Type(), oldLbVserverName, "lbvserver") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding lbvserver %s from csvserver %s", oldLbVserverName, csvserverName) } @@ -1111,7 +1111,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } } if hasChange { - _, err := client.UpdateResource(netscaler.Csvserver.Type(), csvserverName, &csvserver) + _, err := client.UpdateResource(service.Csvserver.Type(), csvserverName, &csvserver) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error updating csvserver %s", csvserverName) } @@ -1121,12 +1121,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { if sslcertkeyChanged && sslcertkeyName != "" { //Binding has to be updated //rebind - binding := ssl.Sslvserversslcertkeybinding{ + binding := ssl.Sslvservercertkeybinding{ Vservername: csvserverName, Certkeyname: sslcertkeyName, } log.Printf("[INFO] netscaler-provider: Binding ssl cert %s to csvserver %s", sslcertkeyName, csvserverName) - err := client.BindResource(netscaler.Sslvserver.Type(), csvserverName, netscaler.Sslcertkey.Type(), sslcertkeyName, &binding) + err := client.BindResource(service.Sslvserver.Type(), csvserverName, service.Sslcertkey.Type(), sslcertkeyName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to csvserver %s", sslcertkeyName, csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to csvserver %s", sslcertkeyName, csvserverName) @@ -1138,12 +1138,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { if lbvserverbindingChanged && newLbvserverName != "" { //Binding has to be updated //rebind - bindingStruct := cs.Csvserverlbvserverbinding{ + bindingStruct := cs.Csvservervserverbinding{ Name: csvserverName, Lbvserver: newLbvserverName, } log.Printf("[INFO] netscaler-provider: Binding lbvserver %s to csvserver %s", newLbvserverName, csvserverName) - err := client.BindResource(netscaler.Csvserver.Type(), csvserverName, netscaler.Lbvserver.Type(), newLbvserverName, &bindingStruct) + err := client.BindResource(service.Csvserver.Type(), csvserverName, service.Lbvserver.Type(), newLbvserverName, &bindingStruct) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind lbvserver %s to csvserver %s", newLbvserverName, csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind lbvserver %s to csvserver %s", newLbvserverName, csvserverName) @@ -1159,7 +1159,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Vservername: csvserverName, Sslprofile: "true", } - err := client.ActOnResource(netscaler.Sslvserver.Type(), &sslvserver, "unset") + err := client.ActOnResource(service.Sslvserver.Type(), &sslvserver, "unset") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding ssl profile from csvserver %s", csvserverName) } @@ -1169,7 +1169,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Sslprofile: sslprofileName, } log.Printf("[INFO] netscaler-provider: Binding ssl profile %s to csvserver %s", sslprofileName, csvserverName) - _, err := client.UpdateResource(netscaler.Sslvserver.Type(), csvserverName, &sslvserver) + _, err := client.UpdateResource(service.Sslvserver.Type(), csvserverName, &sslvserver) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to csvserver %s", sslprofileName, csvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to csvserver %s", sslprofileName, csvserverName) @@ -1218,7 +1218,7 @@ func deleteCsvserverFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteCsvserverFunc") client := meta.(*NetScalerNitroClient).client csvserverName := d.Id() - err := client.DeleteResource(netscaler.Csvserver.Type(), csvserverName) + err := client.DeleteResource(service.Csvserver.Type(), csvserverName) if err != nil { return err } @@ -1228,7 +1228,7 @@ func deleteCsvserverFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doCsvserverStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doCsvserverStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doLbvserverStateChange") // We need a new instance of the struct since @@ -1241,13 +1241,13 @@ func doCsvserverStateChange(d *schema.ResourceData, client *netscaler.NitroClien // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Csvserver.Type(), csvserver, "enable") + err := client.ActOnResource(service.Csvserver.Type(), csvserver, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - err := client.ActOnResource(netscaler.Csvserver.Type(), csvserver, "disable") + err := client.ActOnResource(service.Csvserver.Type(), csvserver, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding.go index adcd22e84..f0eec5ca0 100644 --- a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding.go @@ -4,14 +4,26 @@ import ( "fmt" "strings" - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" ) +type Csvserverappfwpolicybinding struct { + Bindpoint string `json:"bindpoint,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Invoke bool `json:"invoke,omitempty"` + Labelname string `json:"labelname,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Name string `json:"name,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority int `json:"priority,omitempty"` + Sc string `json:"sc,omitempty"` + Targetlbvserver string `json:"targetlbvserver,omitempty"` +} + func resourceCitrixAdcCsvserver_appfwpolicy_binding() *schema.Resource { return &schema.Resource{ SchemaVersion: 1, @@ -82,7 +94,7 @@ func createCsvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf appfwPolicyName := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", csvserverName, appfwPolicyName) - csvserver_appfwpolicy_binding := cs.Csvserverappfwpolicybinding{ + csvserver_appfwpolicy_binding := Csvserverappfwpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -94,7 +106,7 @@ func createCsvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf Targetlbvserver: d.Get("targetlbvserver").(string), } - _, err := client.AddResource(netscaler.Csvserver_appfwpolicy_binding.Type(), csvserverName, &csvserver_appfwpolicy_binding) + _, err := client.AddResource(service.Csvserver_appfwpolicy_binding.Type(), csvserverName, &csvserver_appfwpolicy_binding) if err != nil { return err } @@ -120,8 +132,8 @@ func readCsvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interfac appfwPolicyName := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_appfwpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Csvserver_appfwpolicy_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Csvserver_appfwpolicy_binding.Type(), ResourceName: csvserverName, ResourceMissingErrorCode: 258, } @@ -186,7 +198,7 @@ func deleteCsvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf args := make(map[string]string) args["policyname"] = appfwPolicyName - err := client.DeleteResourceWithArgsMap(netscaler.Csvserver_appfwpolicy_binding.Type(), csvserverName, args) + err := client.DeleteResourceWithArgsMap(service.Csvserver_appfwpolicy_binding.Type(), csvserverName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go index b7b7518a6..6c6dd1265 100644 --- a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go @@ -20,7 +20,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -123,8 +124,8 @@ func testAccCheckCsvserver_appfwpolicy_bindingExist(n string, id *string) resour csvserverName := idSlice[0] appfwPolicyName := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Csvserver_appfwpolicy_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Csvserver_appfwpolicy_binding.Type(), ResourceName: csvserverName, ResourceMissingErrorCode: 258, } @@ -165,7 +166,7 @@ func testAccCheckCsvserver_appfwpolicy_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_appfwpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_appfwpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_appfwpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding.go index a4d3ff5a6..2504da004 100644 --- a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -85,7 +85,7 @@ func createCsvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_cmppolicy_binding := cs.Csvservercmppolicybinding{ + csvserver_cmppolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -93,11 +93,11 @@ func createCsvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_cmppolicy_binding.Type(), &csvserver_cmppolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_cmppolicy_binding.Type(), &csvserver_cmppolicy_binding) if err != nil { return err } @@ -121,7 +121,7 @@ func readCsvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interface{ policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_cmppolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_cmppolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -196,7 +196,7 @@ func deleteCsvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac if v, ok := d.GetOk("priority"); ok { argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Csvserver_cmppolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Csvserver_cmppolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go index a3879b5fa..e35103d1e 100644 --- a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go @@ -16,10 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + + "fmt" "strings" "testing" ) @@ -119,7 +121,7 @@ func testAccCheckCsvserver_cmppolicy_bindingExist(n string, id *string) resource name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_cmppolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -161,7 +163,7 @@ func testAccCheckCsvserver_cmppolicy_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_cmppolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_cmppolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_cmppolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding.go index c70e840e4..b1dc48eca 100644 --- a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -85,7 +85,7 @@ func createCsvserver_cspolicy_bindingFunc(d *schema.ResourceData, meta interface policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_cspolicy_binding := cs.Csvservercspolicybinding{ + csvserver_cspolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -93,11 +93,11 @@ func createCsvserver_cspolicy_bindingFunc(d *schema.ResourceData, meta interface Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_cspolicy_binding.Type(), &csvserver_cspolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_cspolicy_binding.Type(), &csvserver_cspolicy_binding) if err != nil { return err } @@ -131,7 +131,7 @@ func readCsvserver_cspolicy_bindingFunc(d *schema.ResourceData, meta interface{} policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_cspolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_cspolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go index 9038921fc..d1bc1362b 100644 --- a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go @@ -16,10 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + + "fmt" "strings" "testing" ) @@ -73,7 +75,7 @@ func testAccCheckCsvserver_cspolicy_bindingExist(n string, id *string) resource. name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_cspolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -119,7 +121,7 @@ func testAccCheckCsvserver_cspolicy_bindingDestroy(s *terraform.State) error { name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_cspolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding.go index 8d1f915bd..aacd14c7e 100644 --- a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -85,7 +85,7 @@ func createCsvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_filterpolicy_binding := cs.Csvserverfilterpolicybinding{ + csvserver_filterpolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -93,11 +93,11 @@ func createCsvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_filterpolicy_binding.Type(), &csvserver_filterpolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_filterpolicy_binding.Type(), &csvserver_filterpolicy_binding) if err != nil { return err } @@ -123,7 +123,7 @@ func readCsvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta interfa log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_filterpolicy_binding state %v", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_filterpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -193,7 +193,7 @@ func deleteCsvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter if v, ok := d.GetOk("priority"); ok { argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Csvserver_filterpolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Csvserver_filterpolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go index cd4409f07..2a5d64d51 100644 --- a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go @@ -17,11 +17,14 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" + + "github.com/citrix/adc-nitro-go/service" + "strings" "testing" + + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccCsvserver_filterpolicy_binding_basic_step1 = ` @@ -118,7 +121,7 @@ func testAccCheckCsvserver_filterpolicy_bindingExist(n string, id *string) resou name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_filterpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -160,7 +163,7 @@ func testAccCheckCsvserver_filterpolicy_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_filterpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_filterpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_filterpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding.go index 66b5adf48..055e4c756 100644 --- a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -84,7 +84,7 @@ func createCsvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in name := d.Get("name").(string) policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_responderpolicy_binding := cs.Csvserverresponderpolicybinding{ + csvserver_responderpolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -92,11 +92,11 @@ func createCsvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_responderpolicy_binding.Type(), &csvserver_responderpolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_responderpolicy_binding.Type(), &csvserver_responderpolicy_binding) if err != nil { return err } @@ -120,7 +120,7 @@ func readCsvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta inte policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_responderpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_responderpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -196,7 +196,7 @@ func deleteCsvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in if v, ok := d.GetOk("priority"); ok { argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Csvserver_responderpolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Csvserver_responderpolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go index 2c136407b..ed57cc92c 100644 --- a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go @@ -16,10 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + + "fmt" "strings" "testing" ) @@ -145,7 +147,7 @@ func testAccCheckCsvserver_responderpolicy_bindingExist(n string, id *string) re name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_responderpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -187,7 +189,7 @@ func testAccCheckCsvserver_responderpolicy_bindingDestroy(s *terraform.State) er return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_responderpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_responderpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_responderpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding.go index 2ad17de92..0e72a5ebe 100644 --- a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -84,7 +84,7 @@ func createCsvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte name := d.Get("name").(string) policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_rewritepolicy_binding := cs.Csvserverrewritepolicybinding{ + csvserver_rewritepolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -92,11 +92,11 @@ func createCsvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_rewritepolicy_binding.Type(), &csvserver_rewritepolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_rewritepolicy_binding.Type(), &csvserver_rewritepolicy_binding) if err != nil { return err } @@ -120,7 +120,7 @@ func readCsvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta interf policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_rewritepolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_rewritepolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -197,7 +197,7 @@ func deleteCsvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Csvserver_rewritepolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Csvserver_rewritepolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go index 9b3cca676..6b740b738 100644 --- a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go @@ -16,10 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + + "fmt" "strings" "testing" ) @@ -145,7 +147,7 @@ func testAccCheckCsvserver_rewritepolicy_bindingExist(n string, id *string) reso name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_rewritepolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -187,7 +189,7 @@ func testAccCheckCsvserver_rewritepolicy_bindingDestroy(s *terraform.State) erro return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_rewritepolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_rewritepolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_rewritepolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_csvserver_test.go b/citrixadc/resource_citrixadc_csvserver_test.go index 215bcf479..d3ea48368 100644 --- a/citrixadc/resource_citrixadc_csvserver_test.go +++ b/citrixadc/resource_citrixadc_csvserver_test.go @@ -20,8 +20,8 @@ import ( "os" "testing" - "github.com/chiradeep/go-nitro/config/cs" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -191,7 +191,7 @@ func testAccCheckCsvserverExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Csvserver.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Csvserver.Type(), rs.Primary.ID) if err != nil { return err @@ -217,7 +217,7 @@ func testAccCheckCsvserverDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -253,7 +253,7 @@ func TestAccCsvserver_AssertNonUpdateableAttributes(t *testing.T) { // Create resource vserverName := "tf-acc-cs-vserver-name" - vserverType := netscaler.Csvserver.Type() + vserverType := service.Csvserver.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, vserverType, vserverName, nil) diff --git a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding.go b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding.go index be29085be..4584c5e62 100644 --- a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding.go +++ b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -83,7 +83,7 @@ func createCsvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta in name := d.Get("name").(string) policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - csvserver_transformpolicy_binding := cs.Csvservertransformpolicybinding{ + csvserver_transformpolicy_binding := cs.Csvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -91,11 +91,11 @@ func createCsvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta in Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Targetlbvserver: d.Get("targetlbvserver").(string), } - err := client.UpdateUnnamedResource(netscaler.Csvserver_transformpolicy_binding.Type(), &csvserver_transformpolicy_binding) + err := client.UpdateUnnamedResource(service.Csvserver_transformpolicy_binding.Type(), &csvserver_transformpolicy_binding) if err != nil { return err } @@ -121,7 +121,7 @@ func readCsvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta inte log.Printf("[DEBUG] citrixadc-provider: Reading csvserver_transformpolicy_binding state %v", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_transformpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go index 2ef23633c..3505c5757 100644 --- a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go @@ -16,10 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + + "fmt" "strings" "testing" ) @@ -128,7 +130,7 @@ func testAccCheckCsvserver_transformpolicy_bindingExist(n string, id *string) re name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "csvserver_transformpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -171,7 +173,7 @@ func testAccCheckCsvserver_transformpolicy_bindingDestroy(s *terraform.State) er return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Csvserver_transformpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Csvserver_transformpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("csvserver_transformpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_dnsnsrec.go b/citrixadc/resource_citrixadc_dnsnsrec.go index ca891a4a6..595078cc8 100644 --- a/citrixadc/resource_citrixadc_dnsnsrec.go +++ b/citrixadc/resource_citrixadc_dnsnsrec.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/dns" + "github.com/citrix/adc-nitro-go/resource/config/dns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -52,10 +52,10 @@ func createDnsnsrecFunc(d *schema.ResourceData, meta interface{}) error { dnsnsrec := dns.Dnsnsrec{ Domain: d.Get("domain").(string), Nameserver: d.Get("nameserver").(string), - Ttl: d.Get("ttl").(int), + Ttl: uint64(d.Get("ttl").(int)), } - _, err := client.AddResource(netscaler.Dnsnsrec.Type(), "", &dnsnsrec) + _, err := client.AddResource(service.Dnsnsrec.Type(), "", &dnsnsrec) if err != nil { return err } @@ -78,7 +78,7 @@ func readDnsnsrecFunc(d *schema.ResourceData, meta interface{}) error { idSlice := strings.SplitN(dnsnsrecId, ",", 2) domain := idSlice[0] nameserver := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "dnsnsrec", } dataArr, err := client.FindResourceArrayWithParams(findParams) @@ -120,7 +120,7 @@ func deleteDnsnsrecFunc(d *schema.ResourceData, meta interface{}) error { nameserver := idSlice[1] argsMap := make(map[string]string) argsMap["nameserver"] = url.QueryEscape(nameserver) - err := client.DeleteResourceWithArgsMap(netscaler.Dnsnsrec.Type(), domain, argsMap) + err := client.DeleteResourceWithArgsMap(service.Dnsnsrec.Type(), domain, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_dnsnsrec_test.go b/citrixadc/resource_citrixadc_dnsnsrec_test.go index 9212e2989..93fe4b8f9 100644 --- a/citrixadc/resource_citrixadc_dnsnsrec_test.go +++ b/citrixadc/resource_citrixadc_dnsnsrec_test.go @@ -16,11 +16,12 @@ limitations under the License. package citrixadc import ( - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" + "fmt" "strings" "testing" ) @@ -106,7 +107,7 @@ func testAccCheckDnsnsrecExist(n string, id *string) resource.TestCheckFunc { domain := idSlice[0] nameserver := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "dnsnsrec", } @@ -143,7 +144,7 @@ func testAccCheckDnsnsrecDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Dnsnsrec.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Dnsnsrec.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("dnsnsrec %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_dnssoarec.go b/citrixadc/resource_citrixadc_dnssoarec.go index 4b6dd35da..78c521848 100644 --- a/citrixadc/resource_citrixadc_dnssoarec.go +++ b/citrixadc/resource_citrixadc_dnssoarec.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/dns" + "github.com/citrix/adc-nitro-go/resource/config/dns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -92,18 +92,18 @@ func createDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { Contact: d.Get("contact").(string), Domain: d.Get("domain").(string), Ecssubnet: d.Get("ecssubnet").(string), - Expire: d.Get("expire").(int), - Minimum: d.Get("minimum").(int), - Nodeid: d.Get("nodeid").(int), + Expire: uint64(d.Get("expire").(int)), + Minimum: uint64(d.Get("minimum").(int)), + Nodeid: uint32(d.Get("nodeid").(int)), Originserver: d.Get("originserver").(string), - Refresh: d.Get("refresh").(int), - Retry: d.Get("retry").(int), - Serial: d.Get("serial").(int), - Ttl: d.Get("ttl").(int), + Refresh: uint64(d.Get("refresh").(int)), + Retry: uint64(d.Get("retry").(int)), + Serial: uint32(d.Get("serial").(int)), + Ttl: uint64(d.Get("ttl").(int)), Type: d.Get("type").(string), } - _, err := client.AddResource(netscaler.Dnssoarec.Type(), dnssoarecId, &dnssoarec) + _, err := client.AddResource(service.Dnssoarec.Type(), dnssoarecId, &dnssoarec) if err != nil { return err } @@ -123,7 +123,7 @@ func readDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client dnssoarecName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading dnssoarec state %s", dnssoarecName) - data, err := client.FindResource(netscaler.Dnssoarec.Type(), dnssoarecName) + data, err := client.FindResource(service.Dnssoarec.Type(), dnssoarecName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing dnssoarec state %s", dnssoarecName) d.SetId("") @@ -172,17 +172,17 @@ func updateDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("expire") { log.Printf("[DEBUG] citrixadc-provider: Expire has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Expire = d.Get("expire").(int) + dnssoarec.Expire = uint64(d.Get("expire").(int)) hasChange = true } if d.HasChange("minimum") { log.Printf("[DEBUG] citrixadc-provider: Minimum has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Minimum = d.Get("minimum").(int) + dnssoarec.Minimum = uint64(d.Get("minimum").(int)) hasChange = true } if d.HasChange("nodeid") { log.Printf("[DEBUG] citrixadc-provider: Nodeid has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Nodeid = d.Get("nodeid").(int) + dnssoarec.Nodeid = uint32(d.Get("nodeid").(int)) hasChange = true } if d.HasChange("originserver") { @@ -192,22 +192,22 @@ func updateDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("refresh") { log.Printf("[DEBUG] citrixadc-provider: Refresh has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Refresh = d.Get("refresh").(int) + dnssoarec.Refresh = uint64(d.Get("refresh").(int)) hasChange = true } if d.HasChange("retry") { log.Printf("[DEBUG] citrixadc-provider: Retry has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Retry = d.Get("retry").(int) + dnssoarec.Retry = uint64(d.Get("retry").(int)) hasChange = true } if d.HasChange("serial") { log.Printf("[DEBUG] citrixadc-provider: Serial has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Serial = d.Get("serial").(int) + dnssoarec.Serial = uint32(d.Get("serial").(int)) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] citrixadc-provider: Ttl has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Ttl = d.Get("ttl").(int) + dnssoarec.Ttl = uint64(d.Get("ttl").(int)) hasChange = true } if d.HasChange("type") { @@ -217,7 +217,7 @@ func updateDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Dnssoarec.Type(), dnssoarecId, &dnssoarec) + _, err := client.UpdateResource(service.Dnssoarec.Type(), dnssoarecId, &dnssoarec) if err != nil { return fmt.Errorf("Error updating dnssoarec %s. %s", dnssoarecId, err) } @@ -229,7 +229,7 @@ func deleteDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteDnssoarecFunc") client := meta.(*NetScalerNitroClient).client dnssoarecId := d.Id() - err := client.DeleteResource(netscaler.Dnssoarec.Type(), dnssoarecId) + err := client.DeleteResource(service.Dnssoarec.Type(), dnssoarecId) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_dnssoarec_test.go b/citrixadc/resource_citrixadc_dnssoarec_test.go index 840206333..ef35e154c 100644 --- a/citrixadc/resource_citrixadc_dnssoarec_test.go +++ b/citrixadc/resource_citrixadc_dnssoarec_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccDnssoarec_basic_step1 = ` @@ -85,7 +86,7 @@ func testAccCheckDnssoarecExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Dnssoarec.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Dnssoarec.Type(), rs.Primary.ID) if err != nil { return err @@ -111,7 +112,7 @@ func testAccCheckDnssoarecDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Dnssoarec.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Dnssoarec.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("dnssoarec %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_filterpolicy.go b/citrixadc/resource_citrixadc_filterpolicy.go index ff05bcedb..72b64c38f 100644 --- a/citrixadc/resource_citrixadc_filterpolicy.go +++ b/citrixadc/resource_citrixadc_filterpolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/filter" + "github.com/citrix/adc-nitro-go/resource/config/filter" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -55,7 +55,7 @@ func createFilterpolicyFunc(d *schema.ResourceData, meta interface{}) error { Rule: d.Get("rule").(string), } - _, err := client.AddResource(netscaler.Filterpolicy.Type(), filterpolicyName, &filterpolicy) + _, err := client.AddResource(service.Filterpolicy.Type(), filterpolicyName, &filterpolicy) if err != nil { return err } @@ -75,7 +75,7 @@ func readFilterpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client filterpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading filterpolicy state %s", filterpolicyName) - data, err := client.FindResource(netscaler.Filterpolicy.Type(), filterpolicyName) + data, err := client.FindResource(service.Filterpolicy.Type(), filterpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing filterpolicy state %s", filterpolicyName) d.SetId("") @@ -122,7 +122,7 @@ func updateFilterpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Filterpolicy.Type(), filterpolicyName, &filterpolicy) + _, err := client.UpdateResource(service.Filterpolicy.Type(), filterpolicyName, &filterpolicy) if err != nil { return fmt.Errorf("Error updating filterpolicy %s", filterpolicyName) } @@ -134,7 +134,7 @@ func deleteFilterpolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteFilterpolicyFunc") client := meta.(*NetScalerNitroClient).client filterpolicyName := d.Id() - err := client.DeleteResource(netscaler.Filterpolicy.Type(), filterpolicyName) + err := client.DeleteResource(service.Filterpolicy.Type(), filterpolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_filterpolicy_test.go b/citrixadc/resource_citrixadc_filterpolicy_test.go index 27e7ad8b9..e30ca9423 100644 --- a/citrixadc/resource_citrixadc_filterpolicy_test.go +++ b/citrixadc/resource_citrixadc_filterpolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccFilterpolicy_basic_step1 = ` @@ -85,7 +86,7 @@ func testAccCheckFilterpolicyExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Filterpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Filterpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -111,7 +112,7 @@ func testAccCheckFilterpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Filterpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Filterpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("filterpolicy %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_gslbservice.go b/citrixadc/resource_citrixadc_gslbservice.go index 95511248f..ec1a0e966 100644 --- a/citrixadc/resource_citrixadc_gslbservice.go +++ b/citrixadc/resource_citrixadc_gslbservice.go @@ -1,9 +1,10 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/config/gslb" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -263,28 +264,28 @@ func createGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { Appflowlog: d.Get("appflowlog").(string), Cip: d.Get("cip").(string), Cipheader: d.Get("cipheader").(string), - Clttimeout: d.Get("clttimeout").(int), + Clttimeout: uint64(d.Get("clttimeout").(int)), Cnameentry: d.Get("cnameentry").(string), Comment: d.Get("comment").(string), - Cookietimeout: d.Get("cookietimeout").(int), + Cookietimeout: uint32(d.Get("cookietimeout").(int)), Downstateflush: d.Get("downstateflush").(string), - Hashid: d.Get("hashid").(int), + Hashid: uint32(d.Get("hashid").(int)), Healthmonitor: d.Get("healthmonitor").(string), Ip: d.Get("ip").(string), Ipaddress: d.Get("ipaddress").(string), - Maxaaausers: d.Get("maxaaausers").(int), - Maxbandwidth: d.Get("maxbandwidth").(int), - Maxclient: d.Get("maxclient").(int), + Maxaaausers: uint32(d.Get("maxaaausers").(int)), + Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), + Maxclient: uint32(d.Get("maxclient").(int)), Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: d.Get("monthreshold").(int), - Naptrdomainttl: d.Get("naptrdomainttl").(int), - Naptrorder: d.Get("naptrorder").(int), - Naptrpreference: d.Get("naptrpreference").(int), + Monthreshold: uint32(d.Get("monthreshold").(int)), + Naptrdomainttl: uint64(d.Get("naptrdomainttl").(int)), + Naptrorder: uint32(d.Get("naptrorder").(int)), + Naptrpreference: uint32(d.Get("naptrpreference").(int)), Naptrreplacement: d.Get("naptrreplacement").(string), Naptrservices: d.Get("naptrservices").(string), - Port: d.Get("port").(int), + Port: int32(d.Get("port").(int)), Publicip: d.Get("publicip").(string), - Publicport: d.Get("publicport").(int), + Publicport: int32(d.Get("publicport").(int)), Servername: d.Get("servername").(string), Servicename: d.Get("servicename").(string), Servicetype: d.Get("servicetype").(string), @@ -292,13 +293,13 @@ func createGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { Sitepersistence: d.Get("sitepersistence").(string), Siteprefix: d.Get("siteprefix").(string), State: d.Get("state").(string), - Svrtimeout: d.Get("svrtimeout").(int), + Svrtimeout: uint64(d.Get("svrtimeout").(int)), Viewip: d.Get("viewip").(string), Viewname: d.Get("viewname").(string), - Weight: d.Get("weight").(int), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Gslbservice.Type(), gslbserviceName, &gslbservice) + _, err := client.AddResource(service.Gslbservice.Type(), gslbserviceName, &gslbservice) if err != nil { return err } @@ -322,7 +323,7 @@ func readGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client gslbserviceName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading gslbservice state %s", gslbserviceName) - data, err := client.FindResource(netscaler.Gslbservice.Type(), gslbserviceName) + data, err := client.FindResource(service.Gslbservice.Type(), gslbserviceName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing gslbservice state %s", gslbserviceName) d.SetId("") @@ -401,7 +402,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Clttimeout = d.Get("clttimeout").(int) + gslbservice.Clttimeout = uint64(d.Get("clttimeout").(int)) hasChange = true } if d.HasChange("cnameentry") { @@ -416,7 +417,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Cookietimeout = d.Get("cookietimeout").(int) + gslbservice.Cookietimeout = uint32(d.Get("cookietimeout").(int)) hasChange = true } if d.HasChange("downstateflush") { @@ -426,7 +427,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Hashid = d.Get("hashid").(int) + gslbservice.Hashid = uint32(d.Get("hashid").(int)) hasChange = true } if d.HasChange("healthmonitor") { @@ -446,17 +447,17 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxaaausers") { log.Printf("[DEBUG] netscaler-provider: Maxaaausers has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxaaausers = d.Get("maxaaausers").(int) + gslbservice.Maxaaausers = uint32(d.Get("maxaaausers").(int)) hasChange = true } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxbandwidth = d.Get("maxbandwidth").(int) + gslbservice.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxclient = d.Get("maxclient").(int) + gslbservice.Maxclient = uint32(d.Get("maxclient").(int)) hasChange = true } if d.HasChange("monitornamesvc") { @@ -466,22 +467,22 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Monthreshold = d.Get("monthreshold").(int) + gslbservice.Monthreshold = uint32(d.Get("monthreshold").(int)) hasChange = true } if d.HasChange("naptrdomainttl") { log.Printf("[DEBUG] netscaler-provider: Naptrdomainttl has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrdomainttl = d.Get("naptrdomainttl").(int) + gslbservice.Naptrdomainttl = uint64(d.Get("naptrdomainttl").(int)) hasChange = true } if d.HasChange("naptrorder") { log.Printf("[DEBUG] netscaler-provider: Naptrorder has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrorder = d.Get("naptrorder").(int) + gslbservice.Naptrorder = uint32(d.Get("naptrorder").(int)) hasChange = true } if d.HasChange("naptrpreference") { log.Printf("[DEBUG] netscaler-provider: Naptrpreference has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrpreference = d.Get("naptrpreference").(int) + gslbservice.Naptrpreference = uint32(d.Get("naptrpreference").(int)) hasChange = true } if d.HasChange("naptrreplacement") { @@ -496,7 +497,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Port = d.Get("port").(int) + gslbservice.Port = int32(d.Get("port").(int)) hasChange = true } if d.HasChange("publicip") { @@ -506,7 +507,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("publicport") { log.Printf("[DEBUG] netscaler-provider: Publicport has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Publicport = d.Get("publicport").(int) + gslbservice.Publicport = int32(d.Get("publicport").(int)) hasChange = true } if d.HasChange("servername") { @@ -545,7 +546,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Svrtimeout = d.Get("svrtimeout").(int) + gslbservice.Svrtimeout = uint64(d.Get("svrtimeout").(int)) hasChange = true } if d.HasChange("viewip") { @@ -560,12 +561,12 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Weight = d.Get("weight").(int) + gslbservice.Weight = uint32(d.Get("weight").(int)) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Gslbservice.Type(), gslbserviceName, &gslbservice) + _, err := client.UpdateResource(service.Gslbservice.Type(), gslbserviceName, &gslbservice) if err != nil { return fmt.Errorf("Error updating gslbservice %s", gslbserviceName) } @@ -592,7 +593,7 @@ func deleteGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteGslbserviceFunc") client := meta.(*NetScalerNitroClient).client gslbserviceName := d.Id() - err := client.DeleteResource(netscaler.Gslbservice.Type(), gslbserviceName) + err := client.DeleteResource(service.Gslbservice.Type(), gslbserviceName) if err != nil { return err } @@ -606,7 +607,7 @@ func deleteGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doGslbServiceStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doGslbServiceStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doGslbServiceStateChange") // We need a new instance of the struct since @@ -619,14 +620,14 @@ func doGslbServiceStateChange(d *schema.ResourceData, client *netscaler.NitroCli // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Service.Type(), gslbService, "enable") + err := client.ActOnResource(service.Service.Type(), gslbService, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - gslbService.Delay = d.Get("delay").(int) - err := client.ActOnResource(netscaler.Service.Type(), gslbService, "disable") + gslbService.Delay = uint64(d.Get("delay").(int)) + err := client.ActOnResource(service.Service.Type(), gslbService, "disable") if err != nil { return err } @@ -712,12 +713,12 @@ func addSingleLbmonitorBinding(d *schema.ResourceData, meta interface{}, binding client := meta.(*NetScalerNitroClient).client - bindingStruct := gslb.Gslbservicelbmonitorbinding{} + bindingStruct := gslb.Gslbservicemonitorbinding{} servicename := d.Get("servicename").(string) bindingStruct.Servicename = servicename if d, ok := binding["weight"]; ok { - bindingStruct.Weight = d.(int) + bindingStruct.Weight = uint32(d.(int)) } if d, ok := binding["monitor_name"]; ok { diff --git a/citrixadc/resource_citrixadc_gslbservice_test.go b/citrixadc/resource_citrixadc_gslbservice_test.go index 36f863975..cea1ef792 100644 --- a/citrixadc/resource_citrixadc_gslbservice_test.go +++ b/citrixadc/resource_citrixadc_gslbservice_test.go @@ -20,9 +20,10 @@ import ( "os" "testing" - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/config/gslb" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -74,7 +75,7 @@ func testAccCheckGslbserviceExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Gslbservice.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Gslbservice.Type(), rs.Primary.ID) if err != nil { return err @@ -100,7 +101,7 @@ func testAccCheckGslbserviceDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Gslbservice.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Gslbservice.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -143,7 +144,7 @@ func TestAccGslbservice_AssertNonUpdateableAttributes(t *testing.T) { // Requisite resource serverName := "tf-acc-server-helper" serverAddress := "10.12.32.33" - serverType := netscaler.Server.Type() + serverType := service.Server.Type() // Defer deletion of requisite resource defer testHelperEnsureResourceDeletion(c, t, serverType, serverName, nil) @@ -156,7 +157,7 @@ func TestAccGslbservice_AssertNonUpdateableAttributes(t *testing.T) { // Requisite resource siteName := "tf-acc-gslb-site-name" siteIpaddress := "10.122.22.22" - siteType := netscaler.Gslbsite.Type() + siteType := service.Gslbsite.Type() if _, err := c.client.AddResource(serverType, serverName, serverInstance); err != nil { t.Logf("Error while creating requisite resource") @@ -178,7 +179,7 @@ func TestAccGslbservice_AssertNonUpdateableAttributes(t *testing.T) { // Create resource serviceName := "tf-acc-gslb-service-test" - serviceType := netscaler.Gslbservice.Type() + serviceType := service.Gslbservice.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, serviceType, serviceName, nil) diff --git a/citrixadc/resource_citrixadc_gslbsite.go b/citrixadc/resource_citrixadc_gslbsite.go index deb151d3e..e24220146 100644 --- a/citrixadc/resource_citrixadc_gslbsite.go +++ b/citrixadc/resource_citrixadc_gslbsite.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/gslb" + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -117,7 +117,7 @@ func createGslbsiteFunc(d *schema.ResourceData, meta interface{}) error { Triggermonitor: d.Get("triggermonitor").(string), } - _, err := client.AddResource(netscaler.Gslbsite.Type(), gslbsiteName, &gslbsite) + _, err := client.AddResource(service.Gslbsite.Type(), gslbsiteName, &gslbsite) if err != nil { return err } @@ -137,7 +137,7 @@ func readGslbsiteFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client gslbsiteName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading gslbsite state %s", gslbsiteName) - data, err := client.FindResource(netscaler.Gslbsite.Type(), gslbsiteName) + data, err := client.FindResource(service.Gslbsite.Type(), gslbsiteName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing gslbsite state %s", gslbsiteName) d.SetId("") @@ -232,7 +232,7 @@ func updateGslbsiteFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Gslbsite.Type(), gslbsiteName, &gslbsite) + _, err := client.UpdateResource(service.Gslbsite.Type(), gslbsiteName, &gslbsite) if err != nil { return fmt.Errorf("Error updating gslbsite %s", gslbsiteName) } @@ -244,7 +244,7 @@ func deleteGslbsiteFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteGslbsiteFunc") client := meta.(*NetScalerNitroClient).client gslbsiteName := d.Id() - err := client.DeleteResource(netscaler.Gslbsite.Type(), gslbsiteName) + err := client.DeleteResource(service.Gslbsite.Type(), gslbsiteName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_gslbsite_test.go b/citrixadc/resource_citrixadc_gslbsite_test.go index 5bf54737c..eea0ebc20 100644 --- a/citrixadc/resource_citrixadc_gslbsite_test.go +++ b/citrixadc/resource_citrixadc_gslbsite_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/gslb" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "os" "testing" + + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccGslbsite_basic(t *testing.T) { @@ -66,7 +67,7 @@ func testAccCheckGslbsiteExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Gslbsite.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Gslbsite.Type(), rs.Primary.ID) if err != nil { return err @@ -92,7 +93,7 @@ func testAccCheckGslbsiteDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Gslbsite.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Gslbsite.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -126,7 +127,7 @@ func TestAccGslbsite_AssertNonUpdateableAttributes(t *testing.T) { // Create resource siteName := "tf-acc-glsb-site-test" - siteType := netscaler.Gslbsite.Type() + siteType := service.Gslbsite.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, siteType, siteName, nil) diff --git a/citrixadc/resource_citrixadc_gslbvserver.go b/citrixadc/resource_citrixadc_gslbvserver.go index 28598ebe7..8b86778d8 100644 --- a/citrixadc/resource_citrixadc_gslbvserver.go +++ b/citrixadc/resource_citrixadc_gslbvserver.go @@ -1,10 +1,11 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/gslb" + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" + "github.com/mitchellh/mapstructure" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -314,12 +315,12 @@ func createGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { Appflowlog: d.Get("appflowlog").(string), Backupip: d.Get("backupip").(string), Backuplbmethod: d.Get("backuplbmethod").(string), - Backupsessiontimeout: d.Get("backupsessiontimeout").(int), + Backupsessiontimeout: uint32(d.Get("backupsessiontimeout").(int)), Backupvserver: d.Get("backupvserver").(string), Comment: d.Get("comment").(string), Considereffectivestate: d.Get("considereffectivestate").(string), Cookiedomain: d.Get("cookiedomain").(string), - Cookietimeout: d.Get("cookietimeout").(int), + Cookietimeout: uint32(d.Get("cookietimeout").(int)), Disableprimaryondown: d.Get("disableprimaryondown").(string), Dnsrecordtype: d.Get("dnsrecordtype").(string), Domainname: d.Get("domainname").(string), @@ -332,27 +333,27 @@ func createGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { Mir: d.Get("mir").(string), Name: d.Get("name").(string), Netmask: d.Get("netmask").(string), - Persistenceid: d.Get("persistenceid").(int), + Persistenceid: uint32(d.Get("persistenceid").(int)), Persistencetype: d.Get("persistencetype").(string), Persistmask: d.Get("persistmask").(string), Servicename: d.Get("servicename").(string), Servicetype: d.Get("servicetype").(string), - Sitedomainttl: d.Get("sitedomainttl").(int), + Sitedomainttl: uint64(d.Get("sitedomainttl").(int)), Sobackupaction: d.Get("sobackupaction").(string), Somethod: d.Get("somethod").(string), Sopersistence: d.Get("sopersistence").(string), - Sopersistencetimeout: d.Get("sopersistencetimeout").(int), - Sothreshold: d.Get("sothreshold").(int), + Sopersistencetimeout: uint32(d.Get("sopersistencetimeout").(int)), + Sothreshold: uint32(d.Get("sothreshold").(int)), State: d.Get("state").(string), - Timeout: d.Get("timeout").(int), - Tolerance: d.Get("tolerance").(int), - Ttl: d.Get("ttl").(int), - V6netmasklen: d.Get("v6netmasklen").(int), - V6persistmasklen: d.Get("v6persistmasklen").(int), - Weight: d.Get("weight").(int), + Timeout: uint32(d.Get("timeout").(int)), + Tolerance: uint32(d.Get("tolerance").(int)), + Ttl: uint64(d.Get("ttl").(int)), + V6netmasklen: uint32(d.Get("v6netmasklen").(int)), + V6persistmasklen: uint32(d.Get("v6persistmasklen").(int)), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Gslbvserver.Type(), gslbvserverName, &gslbvserver) + _, err := client.AddResource(service.Gslbvserver.Type(), gslbvserverName, &gslbvserver) if err != nil { return err } @@ -389,7 +390,7 @@ func readGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client gslbvserverName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading gslbvserver state %s", gslbvserverName) - data, err := client.FindResource(netscaler.Gslbvserver.Type(), gslbvserverName) + data, err := client.FindResource(service.Gslbvserver.Type(), gslbvserverName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing gslbvserver state %s", gslbvserverName) d.SetId("") @@ -436,14 +437,14 @@ func readGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { d.Set("v6persistmasklen", data["v6persistmasklen"]) d.Set("weight", data["weight"]) - data2, _ := client.FindResourceArray(netscaler.Gslbvserver_domain_binding.Type(), gslbvserverName) + data2, _ := client.FindResourceArray(service.Gslbvserver_domain_binding.Type(), gslbvserverName) domainBindings := make([]map[string]interface{}, len(data2)) for i, binding := range data2 { domainBindings[i] = binding } d.Set("domain", domainBindings) - data3, _ := client.FindResourceArray(netscaler.Gslbvserver_gslbservice_binding.Type(), gslbvserverName) + data3, _ := client.FindResourceArray(service.Gslbvserver_gslbservice_binding.Type(), gslbvserverName) svcBindings := make([]map[string]interface{}, len(data3)) for i, binding := range data3 { svcBindings[i] = binding @@ -480,7 +481,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("backupsessiontimeout") { log.Printf("[DEBUG] netscaler-provider: Backupsessiontimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Backupsessiontimeout = d.Get("backupsessiontimeout").(int) + gslbvserver.Backupsessiontimeout = uint32(d.Get("backupsessiontimeout").(int)) hasChange = true } if d.HasChange("backupvserver") { @@ -505,7 +506,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Cookietimeout = d.Get("cookietimeout").(int) + gslbvserver.Cookietimeout = uint32(d.Get("cookietimeout").(int)) hasChange = true } if d.HasChange("disableprimaryondown") { @@ -570,7 +571,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("persistenceid") { log.Printf("[DEBUG] netscaler-provider: Persistenceid has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Persistenceid = d.Get("persistenceid").(int) + gslbvserver.Persistenceid = uint32(d.Get("persistenceid").(int)) hasChange = true } if d.HasChange("persistencetype") { @@ -595,7 +596,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sitedomainttl") { log.Printf("[DEBUG] netscaler-provider: Sitedomainttl has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sitedomainttl = d.Get("sitedomainttl").(int) + gslbvserver.Sitedomainttl = uint64(d.Get("sitedomainttl").(int)) hasChange = true } if d.HasChange("sobackupaction") { @@ -615,12 +616,12 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sopersistencetimeout") { log.Printf("[DEBUG] netscaler-provider: Sopersistencetimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sopersistencetimeout = d.Get("sopersistencetimeout").(int) + gslbvserver.Sopersistencetimeout = uint32(d.Get("sopersistencetimeout").(int)) hasChange = true } if d.HasChange("sothreshold") { log.Printf("[DEBUG] netscaler-provider: Sothreshold has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sothreshold = d.Get("sothreshold").(int) + gslbvserver.Sothreshold = uint32(d.Get("sothreshold").(int)) hasChange = true } if d.HasChange("state") { @@ -629,37 +630,37 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] netscaler-provider: Timeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Timeout = d.Get("timeout").(int) + gslbvserver.Timeout = uint32(d.Get("timeout").(int)) hasChange = true } if d.HasChange("tolerance") { log.Printf("[DEBUG] netscaler-provider: Tolerance has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Tolerance = d.Get("tolerance").(int) + gslbvserver.Tolerance = uint32(d.Get("tolerance").(int)) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Ttl = d.Get("ttl").(int) + gslbvserver.Ttl = uint64(d.Get("ttl").(int)) hasChange = true } if d.HasChange("v6netmasklen") { log.Printf("[DEBUG] netscaler-provider: V6netmasklen has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.V6netmasklen = d.Get("v6netmasklen").(int) + gslbvserver.V6netmasklen = uint32(d.Get("v6netmasklen").(int)) hasChange = true } if d.HasChange("v6persistmasklen") { log.Printf("[DEBUG] netscaler-provider: V6persistmasklen has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.V6persistmasklen = d.Get("v6persistmasklen").(int) + gslbvserver.V6persistmasklen = uint32(d.Get("v6persistmasklen").(int)) hasChange = true } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Weight = d.Get("weight").(int) + gslbvserver.Weight = uint32(d.Get("weight").(int)) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Gslbvserver.Type(), gslbvserverName, &gslbvserver) + _, err := client.UpdateResource(service.Gslbvserver.Type(), gslbvserverName, &gslbvserver) if err != nil { return fmt.Errorf("Error updating gslbvserver %s", gslbvserverName) } @@ -759,7 +760,7 @@ func deleteGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { domain := val.(map[string]interface{}) _ = unbindDomain(gslbvserverName, domain, meta) } - err := client.DeleteResource(netscaler.Gslbvserver.Type(), gslbvserverName) + err := client.DeleteResource(service.Gslbvserver.Type(), gslbvserverName) if err != nil { return err } @@ -777,7 +778,7 @@ func bindDomainToVserver(vserver string, domain map[string]interface{}, meta int mapstructure.Decode(domain, &binding) binding.Name = vserver log.Printf("[INFO] netscaler-provider: Binding domain %s to gslb vserver %s", domainname, vserver) - _, err := client.AddResource(netscaler.Gslbvserver_domain_binding.Type(), domainname, &binding) + _, err := client.AddResource(service.Gslbvserver_domain_binding.Type(), domainname, &binding) return err } @@ -787,30 +788,30 @@ func unbindDomain(gslbvserverName string, domain map[string]interface{}, meta in domainname := domain["domainname"].(string) args := map[string]string{"domainname": domainname} log.Printf("[INFO] netscaler-provider: Deleting binding of domain %s to gslb vserver %s", domainname, gslbvserverName) - return client.DeleteResourceWithArgsMap(netscaler.Gslbvserver_domain_binding.Type(), gslbvserverName, args) + return client.DeleteResourceWithArgsMap(service.Gslbvserver_domain_binding.Type(), gslbvserverName, args) } -func bindGslbServiceToVserver(vserver string, service map[string]interface{}, meta interface{}) error { +func bindGslbServiceToVserver(vserver string, svc map[string]interface{}, meta interface{}) error { client := meta.(*NetScalerNitroClient).client - servicename := service["servicename"].(string) - binding := gslb.Gslbvservergslbservicebinding{} - mapstructure.Decode(service, &binding) + servicename := svc["servicename"].(string) + binding := gslb.Gslbvserverservicebinding{} + mapstructure.Decode(svc, &binding) binding.Name = vserver - log.Printf("[INFO] netscaler-provider: Binding service %s to gslb vserver %s", servicename, vserver) - _, err := client.AddResource(netscaler.Gslbvserver_gslbservice_binding.Type(), servicename, &binding) + log.Printf("[INFO] netscaler-provider: Binding svc %s to gslb vserver %s", servicename, vserver) + _, err := client.AddResource(service.Gslbvserver_gslbservice_binding.Type(), servicename, &binding) return err } -func unbindGslbService(gslbvserverName string, service map[string]interface{}, meta interface{}) error { +func unbindGslbService(gslbvserverName string, svc map[string]interface{}, meta interface{}) error { client := meta.(*NetScalerNitroClient).client - servicename := service["servicename"].(string) + servicename := svc["servicename"].(string) args := map[string]string{"servicename": servicename} - log.Printf("[INFO] netscaler-provider: Deleting binding of service %s to gslb vserver %s", servicename, gslbvserverName) - return client.DeleteResourceWithArgsMap(netscaler.Gslbvserver_gslbservice_binding.Type(), gslbvserverName, args) + log.Printf("[INFO] netscaler-provider: Deleting binding of svc %s to gslb vserver %s", servicename, gslbvserverName) + return client.DeleteResourceWithArgsMap(service.Gslbvserver_gslbservice_binding.Type(), gslbvserverName, args) } -func doGslbvserverStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doGslbvserverStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doServerStateChange") // We need a new instance of the struct since @@ -822,12 +823,12 @@ func doGslbvserverStateChange(d *schema.ResourceData, client *netscaler.NitroCli newstate := d.Get("state") if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Gslbvserver.Type(), gslbvserver, "enable") + err := client.ActOnResource(service.Gslbvserver.Type(), gslbvserver, "enable") if err != nil { return err } } else if newstate == "DISABLED" { - err := client.ActOnResource(netscaler.Gslbvserver.Type(), gslbvserver, "disable") + err := client.ActOnResource(service.Gslbvserver.Type(), gslbvserver, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_gslbvserver_test.go b/citrixadc/resource_citrixadc_gslbvserver_test.go index e1062728b..eb770e408 100644 --- a/citrixadc/resource_citrixadc_gslbvserver_test.go +++ b/citrixadc/resource_citrixadc_gslbvserver_test.go @@ -20,8 +20,8 @@ import ( "os" "testing" - "github.com/chiradeep/go-nitro/config/gslb" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/gslb" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -69,7 +69,7 @@ func testAccCheckGslbvserverExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Gslbvserver.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Gslbvserver.Type(), rs.Primary.ID) if err != nil { return err @@ -95,7 +95,7 @@ func testAccCheckGslbvserverDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Gslbvserver.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Gslbvserver.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("GSLB vserver %s still exists", rs.Primary.ID) } @@ -137,7 +137,7 @@ func TestAccGslbvserver_AssertNonUpdateableAttributes(t *testing.T) { // Create resource serverName := "tf-acc-glsb-vserver-test" - serverType := netscaler.Gslbvserver.Type() + serverType := service.Gslbvserver.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, serverType, serverName, nil) diff --git a/citrixadc/resource_citrixadc_inat.go b/citrixadc/resource_citrixadc_inat.go index 2a0aa9f20..5d3296eeb 100644 --- a/citrixadc/resource_citrixadc_inat.go +++ b/citrixadc/resource_citrixadc_inat.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -106,14 +106,14 @@ func createInatFunc(d *schema.ResourceData, meta interface{}) error { Proxyip: d.Get("proxyip").(string), Publicip: d.Get("publicip").(string), Tcpproxy: d.Get("tcpproxy").(string), - Td: d.Get("td").(int), + Td: uint32(d.Get("td").(int)), Tftp: d.Get("tftp").(string), Useproxyport: d.Get("useproxyport").(string), Usip: d.Get("usip").(string), Usnip: d.Get("usnip").(string), } - _, err := client.AddResource(netscaler.Inat.Type(), inatName, &inat) + _, err := client.AddResource(service.Inat.Type(), inatName, &inat) if err != nil { fmt.Printf("[DEBUG] netscaler-provider add inat failed, name=%s", inatName) return err @@ -134,7 +134,7 @@ func readInatFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client inatName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading inat state %s", inatName) - data, err := client.FindResource(netscaler.Inat.Type(), inatName) + data, err := client.FindResource(service.Inat.Type(), inatName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing inat state %s", inatName) d.SetId("") @@ -199,7 +199,7 @@ func updateInatFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for inat %s, starting update", inatName) - inat.Td = d.Get("td").(int) + inat.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("tftp") { @@ -224,7 +224,7 @@ func updateInatFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Inat.Type(), inatName, &inat) + _, err := client.UpdateResource(service.Inat.Type(), inatName, &inat) if err != nil { return fmt.Errorf("Error updating inat %s", inatName) } @@ -236,7 +236,7 @@ func deleteInatFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteInatFunc") client := meta.(*NetScalerNitroClient).client inatName := d.Id() - err := client.DeleteResource(netscaler.Inat.Type(), inatName) + err := client.DeleteResource(service.Inat.Type(), inatName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_inat_test.go b/citrixadc/resource_citrixadc_inat_test.go index 379816d81..e23480528 100644 --- a/citrixadc/resource_citrixadc_inat_test.go +++ b/citrixadc/resource_citrixadc_inat_test.go @@ -21,8 +21,8 @@ import ( "regexp" "testing" - "github.com/chiradeep/go-nitro/config/network" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -74,7 +74,7 @@ func testAccCheckInatExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Inat.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Inat.Type(), rs.Primary.ID) if err != nil { return err @@ -100,7 +100,7 @@ func testAccCheckInatDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Inat.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Inat.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("Inat rule %s still exists", rs.Primary.ID) } @@ -137,7 +137,7 @@ func TestAccInat_AssertNonUpdateableAttributes(t *testing.T) { // Create resource inatName := "tf-acc-inat-test" - inatType := netscaler.Inat.Type() + inatType := service.Inat.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, inatType, inatName, nil) diff --git a/citrixadc/resource_citrixadc_installer.go b/citrixadc/resource_citrixadc_installer.go index 433078703..eca23056a 100644 --- a/citrixadc/resource_citrixadc_installer.go +++ b/citrixadc/resource_citrixadc_installer.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/utility" + "github.com/citrix/adc-nitro-go/resource/config/utility" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" diff --git a/citrixadc/resource_citrixadc_interface.go b/citrixadc/resource_citrixadc_interface.go index 8297cc424..86815d98f 100644 --- a/citrixadc/resource_citrixadc_interface.go +++ b/citrixadc/resource_citrixadc_interface.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -156,33 +156,33 @@ func createInterfaceFunc(d *schema.ResourceData, meta interface{}) error { Interface := network.Interface{ Autoneg: d.Get("autoneg").(string), - Bandwidthhigh: d.Get("bandwidthhigh").(int), - Bandwidthnormal: d.Get("bandwidthnormal").(int), + Bandwidthhigh: uint32(d.Get("bandwidthhigh").(int)), + Bandwidthnormal: uint32(d.Get("bandwidthnormal").(int)), Duplex: d.Get("duplex").(string), Flowctl: d.Get("flowctl").(string), Haheartbeat: d.Get("haheartbeat").(string), Hamonitor: d.Get("hamonitor").(string), Id: d.Get("interface_id").(string), Ifalias: d.Get("ifalias").(string), - Lacpkey: d.Get("lacpkey").(int), + Lacpkey: uint32(d.Get("lacpkey").(int)), Lacpmode: d.Get("lacpmode").(string), - Lacppriority: d.Get("lacppriority").(int), + Lacppriority: uint32(d.Get("lacppriority").(int)), Lacptimeout: d.Get("lacptimeout").(string), Lagtype: d.Get("lagtype").(string), Linkredundancy: d.Get("linkredundancy").(string), Lldpmode: d.Get("lldpmode").(string), - Lrsetpriority: d.Get("lrsetpriority").(int), - Mtu: d.Get("mtu").(int), - Ringsize: d.Get("ringsize").(int), + Lrsetpriority: uint32(d.Get("lrsetpriority").(int)), + Mtu: uint32(d.Get("mtu").(int)), + Ringsize: uint32(d.Get("ringsize").(int)), Ringtype: d.Get("ringtype").(string), Speed: d.Get("speed").(string), Tagall: d.Get("tagall").(string), - Throughput: d.Get("throughput").(int), + Throughput: uint32(d.Get("throughput").(int)), Trunk: d.Get("trunk").(string), Trunkmode: d.Get("trunkmode").(string), } - _, err := client.UpdateResource(netscaler.Interface.Type(), "", &Interface) + _, err := client.UpdateResource(service.Interface.Type(), "", &Interface) if err != nil { return fmt.Errorf("Error creating Interface %s. %s", interfaceId, err.Error()) } @@ -203,7 +203,7 @@ func readInterfaceFunc(d *schema.ResourceData, meta interface{}) error { interfaceId := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading Interface state %s", interfaceId) - array, _ := client.FindAllResources(netscaler.Interface.Type()) + array, _ := client.FindAllResources(service.Interface.Type()) // Iterate over the retrieved addresses to find the particular interface id foundInterface := false @@ -270,12 +270,12 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("bandwidthhigh") { log.Printf("[DEBUG] citrixadc-provider: Bandwidthhigh has changed for Interface %s, starting update", interfaceId) - Interface.Bandwidthhigh = d.Get("bandwidthhigh").(int) + Interface.Bandwidthhigh = uint32(d.Get("bandwidthhigh").(int)) hasChange = true } if d.HasChange("bandwidthnormal") { log.Printf("[DEBUG] citrixadc-provider: Bandwidthnormal has changed for Interface %s, starting update", interfaceId) - Interface.Bandwidthnormal = d.Get("bandwidthnormal").(int) + Interface.Bandwidthnormal = uint32(d.Get("bandwidthnormal").(int)) hasChange = true } if d.HasChange("duplex") { @@ -310,7 +310,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lacpkey") { log.Printf("[DEBUG] citrixadc-provider: Lacpkey has changed for Interface %s, starting update", interfaceId) - Interface.Lacpkey = d.Get("lacpkey").(int) + Interface.Lacpkey = uint32(d.Get("lacpkey").(int)) hasChange = true } if d.HasChange("lacpmode") { @@ -320,7 +320,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lacppriority") { log.Printf("[DEBUG] citrixadc-provider: Lacppriority has changed for Interface %s, starting update", interfaceId) - Interface.Lacppriority = d.Get("lacppriority").(int) + Interface.Lacppriority = uint32(d.Get("lacppriority").(int)) hasChange = true } if d.HasChange("lacptimeout") { @@ -345,17 +345,17 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lrsetpriority") { log.Printf("[DEBUG] citrixadc-provider: Lrsetpriority has changed for Interface %s, starting update", interfaceId) - Interface.Lrsetpriority = d.Get("lrsetpriority").(int) + Interface.Lrsetpriority = uint32(d.Get("lrsetpriority").(int)) hasChange = true } if d.HasChange("mtu") { log.Printf("[DEBUG] citrixadc-provider: Mtu has changed for Interface %s, starting update", interfaceId) - Interface.Mtu = d.Get("mtu").(int) + Interface.Mtu = uint32(d.Get("mtu").(int)) hasChange = true } if d.HasChange("ringsize") { log.Printf("[DEBUG] citrixadc-provider: Ringsize has changed for Interface %s, starting update", interfaceId) - Interface.Ringsize = d.Get("ringsize").(int) + Interface.Ringsize = uint32(d.Get("ringsize").(int)) hasChange = true } if d.HasChange("ringtype") { @@ -375,7 +375,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("throughput") { log.Printf("[DEBUG] citrixadc-provider: Throughput has changed for Interface %s, starting update", interfaceId) - Interface.Throughput = d.Get("throughput").(int) + Interface.Throughput = uint32(d.Get("throughput").(int)) hasChange = true } if d.HasChange("trunk") { @@ -390,7 +390,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Interface.Type(), "", &Interface) + _, err := client.UpdateResource(service.Interface.Type(), "", &Interface) if err != nil { return fmt.Errorf("Error updating Interface %s. %s", interfaceId, err.Error()) } diff --git a/citrixadc/resource_citrixadc_interface_test.go b/citrixadc/resource_citrixadc_interface_test.go index 39bfeff5b..ee494cd8c 100644 --- a/citrixadc/resource_citrixadc_interface_test.go +++ b/citrixadc/resource_citrixadc_interface_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccInterface_basic(t *testing.T) { @@ -68,7 +69,7 @@ func testAccCheckInterfaceExist(n string, id *string, interfaceId string) resour nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - array, _ := nsClient.FindAllResources(netscaler.Interface.Type()) + array, _ := nsClient.FindAllResources(service.Interface.Type()) // Iterate over the retrieved addresses to find the particular interface id foundInterface := false diff --git a/citrixadc/resource_citrixadc_ipset.go b/citrixadc/resource_citrixadc_ipset.go index 80585a6c7..cf7899438 100644 --- a/citrixadc/resource_citrixadc_ipset.go +++ b/citrixadc/resource_citrixadc_ipset.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -54,10 +54,10 @@ func createIpsetFunc(d *schema.ResourceData, meta interface{}) error { ipset := network.Ipset{ Name: d.Get("name").(string), - Td: d.Get("td").(int), + Td: uint32(d.Get("td").(int)), } - _, err := client.AddResource(netscaler.Ipset.Type(), ipsetName, &ipset) + _, err := client.AddResource(service.Ipset.Type(), ipsetName, &ipset) if err != nil { return err } @@ -105,7 +105,7 @@ func readIpsetFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client ipsetName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading ipset state %s", ipsetName) - data, err := client.FindResource(netscaler.Ipset.Type(), ipsetName) + data, err := client.FindResource(service.Ipset.Type(), ipsetName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing ipset state %s", ipsetName) d.SetId("") @@ -133,7 +133,7 @@ func deleteIpsetFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteIpsetFunc") client := meta.(*NetScalerNitroClient).client ipsetName := d.Id() - err := client.DeleteResource(netscaler.Ipset.Type(), ipsetName) + err := client.DeleteResource(service.Ipset.Type(), ipsetName) if err != nil { return err } @@ -167,7 +167,7 @@ func addSingleIpsetNsipBinding(d *schema.ResourceData, meta interface{}, nsip st log.Printf("[DEBUG] citrixadc-provider: In addSingleIpsetNsipBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := network.Ipsetnsipbinding{} + bindingStruct := network.Ipsetipbinding{} bindingStruct.Name = d.Get("name").(string) bindingStruct.Ipaddress = nsip @@ -245,7 +245,7 @@ func addSingleIpsetNsip6Binding(d *schema.ResourceData, meta interface{}, nsip6 log.Printf("[DEBUG] citrixadc-provider: In addSingleIpsetNsip6Binding") client := meta.(*NetScalerNitroClient).client - bindingStruct := network.Ipsetnsip6binding{} + bindingStruct := network.Ipsetip6binding{} bindingStruct.Name = d.Get("name").(string) bindingStruct.Ipaddress = nsip6 //strings.SplitN(nsip6, "/", -1)[0] diff --git a/citrixadc/resource_citrixadc_ipset_test.go b/citrixadc/resource_citrixadc_ipset_test.go index 01670bb4e..48b28d8e4 100644 --- a/citrixadc/resource_citrixadc_ipset_test.go +++ b/citrixadc/resource_citrixadc_ipset_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -137,7 +137,7 @@ func testAccCheckIpsetExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Ipset.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Ipset.Type(), rs.Primary.ID) if err != nil { return err @@ -163,7 +163,7 @@ func testAccCheckIpsetDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Ipset.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Ipset.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_iptunnel.go b/citrixadc/resource_citrixadc_iptunnel.go index ca9a14694..46eb7939b 100644 --- a/citrixadc/resource_citrixadc_iptunnel.go +++ b/citrixadc/resource_citrixadc_iptunnel.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -90,10 +90,10 @@ func createIptunnelFunc(d *schema.ResourceData, meta interface{}) error { Protocol: d.Get("protocol").(string), Remote: d.Get("remote").(string), Remotesubnetmask: d.Get("remotesubnetmask").(string), - Vlan: d.Get("vlan").(int), + Vlan: uint32(d.Get("vlan").(int)), } - _, err := client.AddResource(netscaler.Iptunnel.Type(), iptunnelName, &iptunnel) + _, err := client.AddResource(service.Iptunnel.Type(), iptunnelName, &iptunnel) if err != nil { return err } @@ -113,7 +113,7 @@ func readIptunnelFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client iptunnelName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading iptunnel state %s", iptunnelName) - data, err := client.FindResource(netscaler.Iptunnel.Type(), iptunnelName) + data, err := client.FindResource(service.Iptunnel.Type(), iptunnelName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing iptunnel state %s", iptunnelName) d.SetId("") @@ -136,7 +136,7 @@ func deleteIptunnelFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteIptunnelFunc") client := meta.(*NetScalerNitroClient).client iptunnelName := d.Id() - err := client.DeleteResource(netscaler.Iptunnel.Type(), iptunnelName) + err := client.DeleteResource(service.Iptunnel.Type(), iptunnelName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_iptunnel_test.go b/citrixadc/resource_citrixadc_iptunnel_test.go index f75002f24..1577e55a7 100644 --- a/citrixadc/resource_citrixadc_iptunnel_test.go +++ b/citrixadc/resource_citrixadc_iptunnel_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccIptunnel_basic_step1 = ` @@ -83,7 +84,7 @@ func testAccCheckIptunnelExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Iptunnel.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Iptunnel.Type(), rs.Primary.ID) if err != nil { return err @@ -109,7 +110,7 @@ func testAccCheckIptunnelDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Iptunnel.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Iptunnel.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("iptunnel %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbmonitor.go b/citrixadc/resource_citrixadc_lbmonitor.go index 9ef8cc113..c79649cf6 100644 --- a/citrixadc/resource_citrixadc_lbmonitor.go +++ b/citrixadc/resource_citrixadc_lbmonitor.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -536,7 +536,7 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } lbmonitor := lb.Lbmonitor{ Action: d.Get("action").(string), - Alertretries: d.Get("alertretries").(int), + Alertretries: int32(d.Get("alertretries").(int)), Application: d.Get("application").(string), Attribute: d.Get("attribute").(string), Basedn: d.Get("basedn").(string), @@ -544,33 +544,33 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Customheaders: d.Get("customheaders").(string), Database: d.Get("database").(string), Destip: d.Get("destip").(string), - Destport: d.Get("destport").(int), - Deviation: d.Get("deviation").(int), + Destport: int32(d.Get("destport").(int)), + Deviation: uint32(d.Get("deviation").(int)), Dispatcherip: d.Get("dispatcherip").(string), - Dispatcherport: d.Get("dispatcherport").(int), + Dispatcherport: int32(d.Get("dispatcherport").(int)), Domain: d.Get("domain").(string), - Downtime: d.Get("downtime").(int), + Downtime: int32(d.Get("downtime").(int)), Evalrule: d.Get("evalrule").(string), - Failureretries: d.Get("failureretries").(int), + Failureretries: int32(d.Get("failureretries").(int)), Filename: d.Get("filename").(string), Filter: d.Get("filter").(string), - Firmwarerevision: d.Get("firmwarerevision").(int), + Firmwarerevision: uint32(d.Get("firmwarerevision").(int)), Group: d.Get("group").(string), Hostipaddress: d.Get("hostipaddress").(string), Hostname: d.Get("hostname").(string), Httprequest: d.Get("httprequest").(string), Inbandsecurityid: d.Get("inbandsecurityid").(string), - Interval: d.Get("interval").(int), + Interval: int32(d.Get("interval").(int)), Iptunnel: d.Get("iptunnel").(string), Kcdaccount: d.Get("kcdaccount").(string), Lasversion: d.Get("lasversion").(string), Logonpointname: d.Get("logonpointname").(string), Lrtm: d.Get("lrtm").(string), - Maxforwards: d.Get("maxforwards").(int), + Maxforwards: uint32(d.Get("maxforwards").(int)), Metric: d.Get("metric").(string), Metrictable: d.Get("metrictable").(string), - Metricthreshold: d.Get("metricthreshold").(int), - Metricweight: d.Get("metricweight").(int), + Metricthreshold: uint64(d.Get("metricthreshold").(int)), + Metricweight: uint32(d.Get("metricweight").(int)), Monitorname: d.Get("monitorname").(string), Mssqlprotocolversion: d.Get("mssqlprotocolversion").(string), Netprofile: d.Get("netprofile").(string), @@ -582,7 +582,7 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Query: d.Get("query").(string), Querytype: d.Get("querytype").(string), Radaccountsession: d.Get("radaccountsession").(string), - Radaccounttype: d.Get("radaccounttype").(int), + Radaccounttype: uint32(d.Get("radaccounttype").(int)), Radapn: d.Get("radapn").(string), Radframedip: d.Get("radframedip").(string), Radkey: d.Get("radkey").(string), @@ -590,9 +590,9 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Radnasid: d.Get("radnasid").(string), Radnasip: d.Get("radnasip").(string), Recv: d.Get("recv").(string), - Resptimeout: d.Get("resptimeout").(int), - Resptimeoutthresh: d.Get("resptimeoutthresh").(int), - Retries: d.Get("retries").(int), + Resptimeout: int32(d.Get("resptimeout").(int)), + Resptimeoutthresh: uint32(d.Get("resptimeoutthresh").(int)), + Retries: int32(d.Get("retries").(int)), Reverse: d.Get("reverse").(string), Rtsprequest: d.Get("rtsprequest").(string), Scriptargs: d.Get("scriptargs").(string), @@ -617,11 +617,11 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Storefrontacctservice: d.Get("storefrontacctservice").(string), Storefrontcheckbackendservices: d.Get("storefrontcheckbackendservices").(string), Storename: d.Get("storename").(string), - Successretries: d.Get("successretries").(int), + Successretries: int32(d.Get("successretries").(int)), Tos: d.Get("tos").(string), - Tosid: d.Get("tosid").(int), + Tosid: uint32(d.Get("tosid").(int)), Transparent: d.Get("transparent").(string), - Trofscode: d.Get("trofscode").(int), + Trofscode: uint32(d.Get("trofscode").(int)), Trofsstring: d.Get("trofsstring").(string), Type: d.Get("type").(string), Units1: d.Get("units1").(string), @@ -630,12 +630,12 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Units4: d.Get("units4").(string), Username: d.Get("username").(string), Validatecred: d.Get("validatecred").(string), - Vendorid: d.Get("vendorid").(int), - Vendorspecificvendorid: d.Get("vendorspecificvendorid").(int), - Respcode: d.Get("respcode").([]interface{}), + Vendorid: uint32(d.Get("vendorid").(int)), + Vendorspecificvendorid: uint32(d.Get("vendorspecificvendorid").(int)), + Respcode: toStringList(d.Get("respcode").([]interface{})), } - _, err := client.AddResource(netscaler.Lbmonitor.Type(), lbmonitorName, &lbmonitor) + _, err := client.AddResource(service.Lbmonitor.Type(), lbmonitorName, &lbmonitor) if err != nil { return err } @@ -656,7 +656,7 @@ func readLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { lbmonitorName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading lbmonitor state %s", lbmonitorName) - data, err := client.FindResource(netscaler.Lbmonitor.Type(), lbmonitorName) + data, err := client.FindResource(service.Lbmonitor.Type(), lbmonitorName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing lbmonitor state %s", lbmonitorName) d.SetId("") @@ -786,7 +786,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("alertretries") { log.Printf("[DEBUG] netscaler-provider: Alertretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Alertretries = d.Get("alertretries").(int) + lbmonitor.Alertretries = int32(d.Get("alertretries").(int)) hasChange = true } if d.HasChange("application") { @@ -826,12 +826,12 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("destport") { log.Printf("[DEBUG] netscaler-provider: Destport has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Destport = d.Get("destport").(int) + lbmonitor.Destport = int32(d.Get("destport").(int)) hasChange = true } if d.HasChange("deviation") { log.Printf("[DEBUG] netscaler-provider: Deviation has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Deviation = d.Get("deviation").(int) + lbmonitor.Deviation = uint32(d.Get("deviation").(int)) hasChange = true } if d.HasChange("dispatcherip") { @@ -841,7 +841,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dispatcherport") { log.Printf("[DEBUG] netscaler-provider: Dispatcherport has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Dispatcherport = d.Get("dispatcherport").(int) + lbmonitor.Dispatcherport = int32(d.Get("dispatcherport").(int)) hasChange = true } if d.HasChange("domain") { @@ -851,7 +851,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("downtime") { log.Printf("[DEBUG] netscaler-provider: Downtime has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Downtime = d.Get("downtime").(int) + lbmonitor.Downtime = int32(d.Get("downtime").(int)) hasChange = true } if d.HasChange("evalrule") { @@ -861,7 +861,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("failureretries") { log.Printf("[DEBUG] netscaler-provider: Failureretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Failureretries = d.Get("failureretries").(int) + lbmonitor.Failureretries = int32(d.Get("failureretries").(int)) hasChange = true } if d.HasChange("filename") { @@ -876,7 +876,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("firmwarerevision") { log.Printf("[DEBUG] netscaler-provider: Firmwarerevision has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Firmwarerevision = d.Get("firmwarerevision").(int) + lbmonitor.Firmwarerevision = uint32(d.Get("firmwarerevision").(int)) hasChange = true } if d.HasChange("group") { @@ -906,7 +906,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("interval") { log.Printf("[DEBUG] netscaler-provider: Interval has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Interval = d.Get("interval").(int) + lbmonitor.Interval = int32(d.Get("interval").(int)) hasChange = true } if d.HasChange("iptunnel") { @@ -936,7 +936,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxforwards") { log.Printf("[DEBUG] netscaler-provider: Maxforwards has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Maxforwards = d.Get("maxforwards").(int) + lbmonitor.Maxforwards = uint32(d.Get("maxforwards").(int)) hasChange = true } if d.HasChange("metric") { @@ -951,12 +951,12 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("metricthreshold") { log.Printf("[DEBUG] netscaler-provider: Metricthreshold has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Metricthreshold = d.Get("metricthreshold").(int) + lbmonitor.Metricthreshold = uint64(d.Get("metricthreshold").(int)) hasChange = true } if d.HasChange("metricweight") { log.Printf("[DEBUG] netscaler-provider: Metricweight has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Metricweight = d.Get("metricweight").(int) + lbmonitor.Metricweight = uint32(d.Get("metricweight").(int)) hasChange = true } if d.HasChange("monitorname") { @@ -1016,7 +1016,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("radaccounttype") { log.Printf("[DEBUG] netscaler-provider: Radaccounttype has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Radaccounttype = d.Get("radaccounttype").(int) + lbmonitor.Radaccounttype = uint32(d.Get("radaccounttype").(int)) hasChange = true } if d.HasChange("radapn") { @@ -1056,17 +1056,17 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("resptimeout") { log.Printf("[DEBUG] netscaler-provider: Resptimeout has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Resptimeout = d.Get("resptimeout").(int) + lbmonitor.Resptimeout = int32(d.Get("resptimeout").(int)) hasChange = true } if d.HasChange("resptimeoutthresh") { log.Printf("[DEBUG] netscaler-provider: Resptimeoutthresh has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Resptimeoutthresh = d.Get("resptimeoutthresh").(int) + lbmonitor.Resptimeoutthresh = uint32(d.Get("resptimeoutthresh").(int)) hasChange = true } if d.HasChange("retries") { log.Printf("[DEBUG] netscaler-provider: Retries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Retries = d.Get("retries").(int) + lbmonitor.Retries = int32(d.Get("retries").(int)) hasChange = true } if d.HasChange("reverse") { @@ -1191,7 +1191,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("successretries") { log.Printf("[DEBUG] netscaler-provider: Successretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Successretries = d.Get("successretries").(int) + lbmonitor.Successretries = int32(d.Get("successretries").(int)) hasChange = true } if d.HasChange("tos") { @@ -1201,7 +1201,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("tosid") { log.Printf("[DEBUG] netscaler-provider: Tosid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Tosid = d.Get("tosid").(int) + lbmonitor.Tosid = uint32(d.Get("tosid").(int)) hasChange = true } if d.HasChange("transparent") { @@ -1211,7 +1211,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("trofscode") { log.Printf("[DEBUG] netscaler-provider: Trofscode has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Trofscode = d.Get("trofscode").(int) + lbmonitor.Trofscode = uint32(d.Get("trofscode").(int)) hasChange = true } if d.HasChange("trofsstring") { @@ -1256,19 +1256,19 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("vendorid") { log.Printf("[DEBUG] netscaler-provider: Vendorid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Vendorid = d.Get("vendorid").(int) + lbmonitor.Vendorid = uint32(d.Get("vendorid").(int)) hasChange = true } if d.HasChange("vendorspecificvendorid") { log.Printf("[DEBUG] netscaler-provider: Vendorspecificvendorid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Vendorspecificvendorid = d.Get("vendorspecificvendorid").(int) + lbmonitor.Vendorspecificvendorid = uint32(d.Get("vendorspecificvendorid").(int)) hasChange = true } if d.HasChange("respcode") { log.Printf("[DEBUG] netscaler-provider: Respcode has changed for lbmonitor %s, starting update", lbmonitorName) _, ok := d.GetOk("respcode") - respcode_val := d.Get("respcode").([]interface{}) + respcode_val := toStringList(d.Get("respcode").([]interface{})) if ok { lbmonitor.Respcode = respcode_val @@ -1277,7 +1277,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Lbmonitor.Type(), lbmonitorName, &lbmonitor) + _, err := client.UpdateResource(service.Lbmonitor.Type(), lbmonitorName, &lbmonitor) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error updating lbmonitor %s", lbmonitorName) } @@ -1295,7 +1295,7 @@ func deleteLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { lbmonitorName := d.Id() args := make([]string, 1, 1) args[0] = "type:" + d.Get("type").(string) - err := client.DeleteResourceWithArgs(netscaler.Lbmonitor.Type(), lbmonitorName, args) + err := client.DeleteResourceWithArgs(service.Lbmonitor.Type(), lbmonitorName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbmonitor_test.go b/citrixadc/resource_citrixadc_lbmonitor_test.go index c8977883a..89f88814d 100644 --- a/citrixadc/resource_citrixadc_lbmonitor_test.go +++ b/citrixadc/resource_citrixadc_lbmonitor_test.go @@ -20,8 +20,8 @@ import ( "os" "testing" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -67,7 +67,7 @@ func testAccCheckLbmonitorExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Lbmonitor.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Lbmonitor.Type(), rs.Primary.ID) if err != nil { return err @@ -93,7 +93,7 @@ func testAccCheckLbmonitorDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbmonitor.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbmonitor.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -125,7 +125,7 @@ func TestAccLbmonitor_AssertNonUpdateableAttributes(t *testing.T) { // Create resource monitorName := "tf-acc-lbmonitor-test" - monitorType := netscaler.Lbmonitor.Type() + monitorType := service.Lbmonitor.Type() // Defer deletion of actual resource deleteArgsMap := make(map[string]string) diff --git a/citrixadc/resource_citrixadc_lbparameter.go b/citrixadc/resource_citrixadc_lbparameter.go index c4cc4b554..b9d7eaf13 100644 --- a/citrixadc/resource_citrixadc_lbparameter.go +++ b/citrixadc/resource_citrixadc_lbparameter.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -182,7 +182,7 @@ func createLbparameterFunc(d *schema.ResourceData, meta interface{}) error { Lbhashfingers: d.Get("lbhashfingers").(int), } - err := client.UpdateUnnamedResource(netscaler.Lbparameter.Type(), &lbparameter) + err := client.UpdateUnnamedResource(service.Lbparameter.Type(), &lbparameter) if err != nil { return err } @@ -202,7 +202,7 @@ func readLbparameterFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client lbparameterName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading lbparameter state %s", lbparameterName) - data, err := client.FindResource(netscaler.Lbparameter.Type(), "") + data, err := client.FindResource(service.Lbparameter.Type(), "") if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing lbparameter state %s", lbparameterName) d.SetId("") @@ -350,7 +350,7 @@ func updateLbparameterFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - err := client.UpdateUnnamedResource(netscaler.Lbparameter.Type(), &lbparameter) + err := client.UpdateUnnamedResource(service.Lbparameter.Type(), &lbparameter) if err != nil { return fmt.Errorf("Error updating lbparameter %s. %s", lbparameterName, err.Error()) } diff --git a/citrixadc/resource_citrixadc_lbparameter_test.go b/citrixadc/resource_citrixadc_lbparameter_test.go index a8adeca53..e78af7d73 100644 --- a/citrixadc/resource_citrixadc_lbparameter_test.go +++ b/citrixadc/resource_citrixadc_lbparameter_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccLbparameter_basic_step1 = ` @@ -114,7 +115,7 @@ func testAccCheckLbparameterExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Lbparameter.Type(), "") + data, err := nsClient.FindResource(service.Lbparameter.Type(), "") if err != nil { return err @@ -140,7 +141,7 @@ func testAccCheckLbparameterDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbparameter.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbparameter.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbparameter %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver.go b/citrixadc/resource_citrixadc_lbvserver.go index aaca1fdbd..d3c02a0e1 100644 --- a/citrixadc/resource_citrixadc_lbvserver.go +++ b/citrixadc/resource_citrixadc_lbvserver.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -734,7 +734,7 @@ func createLbvserverFunc(d *schema.ResourceData, meta interface{}) error { } sslcertkey, sok := d.GetOk("sslcertkey") if sok { - exists := client.ResourceExists(netscaler.Sslcertkey.Type(), sslcertkey.(string)) + exists := client.ResourceExists(service.Sslcertkey.Type(), sslcertkey.(string)) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified ssl cert key does not exist on netscaler!") } @@ -849,21 +849,21 @@ func createLbvserverFunc(d *schema.ResourceData, meta interface{}) error { Quicbridgeprofilename: d.Get("quicbridgeprofilename").(string), } - _, err := client.AddResource(netscaler.Lbvserver.Type(), lbvserverName, &lbvserver) + _, err := client.AddResource(service.Lbvserver.Type(), lbvserverName, &lbvserver) if err != nil { - log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", netscaler.Lbvserver.Type(), lbvserverName) + log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", service.Lbvserver.Type(), lbvserverName) return err } if sok { //ssl cert is specified - binding := ssl.Sslvserversslcertkeybinding{ + binding := ssl.Sslvservercertkeybinding{ Vservername: lbvserverName, Certkeyname: sslcertkey.(string), } log.Printf("[INFO] netscaler-provider: Binding ssl cert %s to lbvserver %s", sslcertkey, lbvserverName) - err = client.BindResource(netscaler.Sslvserver.Type(), lbvserverName, netscaler.Sslcertkey.Type(), sslcertkey.(string), &binding) + err = client.BindResource(service.Sslvserver.Type(), lbvserverName, service.Sslcertkey.Type(), sslcertkey.(string), &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to lbvserver %s", sslcertkey, lbvserverName) - err2 := client.DeleteResource(netscaler.Lbvserver.Type(), lbvserverName) + err2 := client.DeleteResource(service.Lbvserver.Type(), lbvserverName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete lbvserver %s after bind to ssl cert failed", lbvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete lbvserver %s after bind to ssl cert failed", lbvserverName) @@ -897,10 +897,10 @@ func createLbvserverFunc(d *schema.ResourceData, meta interface{}) error { Sslprofile: sslprofile.(string), } log.Printf("[INFO] netscaler-provider: Binding ssl profile %s to lbvserver %s", sslprofile, lbvserverName) - _, err := client.UpdateResource(netscaler.Sslvserver.Type(), lbvserverName, &sslvserver) + _, err := client.UpdateResource(service.Sslvserver.Type(), lbvserverName, &sslvserver) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to lbvserver %s", sslprofile, lbvserverName) - err2 := client.DeleteResource(netscaler.Lbvserver.Type(), lbvserverName) + err2 := client.DeleteResource(service.Lbvserver.Type(), lbvserverName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete lbvserver %s after bind to ssl profile failed", lbvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete lbvserver %s after bind to ssl profile failed", lbvserverName) @@ -929,7 +929,7 @@ func readLbvserverFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client lbvserverName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading lbvserver state %s", lbvserverName) - data, err := client.FindResource(netscaler.Lbvserver.Type(), lbvserverName) + data, err := client.FindResource(service.Lbvserver.Type(), lbvserverName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing lbvserver state %s", lbvserverName) d.SetId("") @@ -1045,7 +1045,7 @@ func readLbvserverFunc(d *schema.ResourceData, meta interface{}) error { return err } - dataSsl, _ := client.FindResource(netscaler.Sslvserver.Type(), lbvserverName) + dataSsl, _ := client.FindResource(service.Sslvserver.Type(), lbvserverName) d.Set("sslprofile", dataSsl["sslprofile"]) // Avoid duplicate listing of ciphersuites in standalone @@ -1587,7 +1587,7 @@ func updateLbvserverFunc(d *schema.ResourceData, meta interface{}) error { oldSslcertkey, _ := d.GetChange("sslcertkey") oldSslcertkeyName := oldSslcertkey.(string) if oldSslcertkeyName != "" { - err := client.UnbindResource(netscaler.Sslvserver.Type(), lbvserverName, netscaler.Sslcertkey.Type(), oldSslcertkeyName, "certkeyname") + err := client.UnbindResource(service.Sslvserver.Type(), lbvserverName, service.Sslcertkey.Type(), oldSslcertkeyName, "certkeyname") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding sslcertkey from lbvserver %s", oldSslcertkeyName) } @@ -1596,7 +1596,7 @@ func updateLbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Lbvserver.Type(), lbvserverName, &lbvserver) + _, err := client.UpdateResource(service.Lbvserver.Type(), lbvserverName, &lbvserver) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error updating lbvserver %s", lbvserverName) } @@ -1606,12 +1606,12 @@ func updateLbvserverFunc(d *schema.ResourceData, meta interface{}) error { if sslcertkeyChanged && sslcertkeyName != "" { //Binding has to be updated //rebind - binding := ssl.Sslvserversslcertkeybinding{ + binding := ssl.Sslvservercertkeybinding{ Vservername: lbvserverName, Certkeyname: sslcertkeyName, } log.Printf("[INFO] netscaler-provider: Binding ssl cert %s to lbvserver %s", sslcertkeyName, lbvserverName) - err := client.BindResource(netscaler.Sslvserver.Type(), lbvserverName, netscaler.Sslcertkey.Type(), sslcertkeyName, &binding) + err := client.BindResource(service.Sslvserver.Type(), lbvserverName, service.Sslcertkey.Type(), sslcertkeyName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to lbvserver %s", sslcertkeyName, lbvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind ssl cert %s to lbvserver %s", sslcertkeyName, lbvserverName) @@ -1648,7 +1648,7 @@ func updateLbvserverFunc(d *schema.ResourceData, meta interface{}) error { Vservername: lbvserverName, Sslprofile: "true", } - err := client.ActOnResource(netscaler.Sslvserver.Type(), &sslvserver, "unset") + err := client.ActOnResource(service.Sslvserver.Type(), &sslvserver, "unset") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding ssl profile from lbvserver %s", lbvserverName) } @@ -1658,7 +1658,7 @@ func updateLbvserverFunc(d *schema.ResourceData, meta interface{}) error { Sslprofile: sslprofileName, } log.Printf("[INFO] netscaler-provider: Binding ssl profile %s to lbvserver %s", sslprofileName, lbvserverName) - _, err := client.UpdateResource(netscaler.Sslvserver.Type(), lbvserverName, &sslvserver) + _, err := client.UpdateResource(service.Sslvserver.Type(), lbvserverName, &sslvserver) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to lbvserver %s", sslprofileName, lbvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind ssl profile %s to lbvserver %s", sslprofileName, lbvserverName) @@ -1686,7 +1686,7 @@ func deleteLbvserverFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteLbvserverFunc") client := meta.(*NetScalerNitroClient).client lbvserverName := d.Id() - err := client.DeleteResource(netscaler.Lbvserver.Type(), lbvserverName) + err := client.DeleteResource(service.Lbvserver.Type(), lbvserverName) if err != nil { return err } @@ -1696,7 +1696,7 @@ func deleteLbvserverFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doLbvserverStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doLbvserverStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doLbvserverStateChange") // We need a new instance of the struct since @@ -1709,13 +1709,13 @@ func doLbvserverStateChange(d *schema.ResourceData, client *netscaler.NitroClien // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Lbvserver.Type(), lbvserver, "enable") + err := client.ActOnResource(service.Lbvserver.Type(), lbvserver, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - err := client.ActOnResource(netscaler.Lbvserver.Type(), lbvserver, "disable") + err := client.ActOnResource(service.Lbvserver.Type(), lbvserver, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding.go index dc997d44a..6fc1e0267 100644 --- a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding.go @@ -3,9 +3,9 @@ package citrixadc import ( "strings" - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -76,7 +76,7 @@ func createLbvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf appfwPolicyName := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", lbvserverName, appfwPolicyName) - lbvserver_appfwpolicy_binding := lb.Lbvserverappfwpolicybinding{ + lbvserver_appfwpolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -84,10 +84,10 @@ func createLbvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf Labeltype: d.Get("labeltype").(string), Name: lbvserverName, Policyname: appfwPolicyName, - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - _, err := client.AddResource(netscaler.Lbvserver_appfwpolicy_binding.Type(), lbvserverName, &lbvserver_appfwpolicy_binding) + _, err := client.AddResource(service.Lbvserver_appfwpolicy_binding.Type(), lbvserverName, &lbvserver_appfwpolicy_binding) if err != nil { return err } @@ -113,8 +113,8 @@ func readLbvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interfac appfwPolicyName := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_appfwpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Lbvserver_appfwpolicy_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Lbvserver_appfwpolicy_binding.Type(), ResourceName: lbvserverName, ResourceMissingErrorCode: 258, } @@ -178,7 +178,7 @@ func deleteLbvserver_appfwpolicy_bindingFunc(d *schema.ResourceData, meta interf args := make(map[string]string) args["policyname"] = appfwPolicyName - err := client.DeleteResourceWithArgsMap(netscaler.Lbvserver_appfwpolicy_binding.Type(), lbvserverName, args) + err := client.DeleteResourceWithArgsMap(service.Lbvserver_appfwpolicy_binding.Type(), lbvserverName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go index 13b70c073..f6f0c5eff 100644 --- a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go @@ -20,7 +20,8 @@ import ( "strings" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -132,8 +133,8 @@ func testAccCheckLbvserver_appfwpolicy_bindingExist(n string, id *string) resour lbvserverName := idSlice[0] appfwPolicyName := idSlice[1] - findParams := netscaler.FindParams{ - ResourceType: netscaler.Lbvserver_appfwpolicy_binding.Type(), + findParams := service.FindParams{ + ResourceType: service.Lbvserver_appfwpolicy_binding.Type(), ResourceName: lbvserverName, ResourceMissingErrorCode: 258, } @@ -174,7 +175,7 @@ func testAccCheckLbvserver_appfwpolicy_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_appfwpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_appfwpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_appfwpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding.go index 2a303ac04..8b50ece6b 100644 --- a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -81,7 +81,7 @@ func createLbvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac bindingId := fmt.Sprintf("%s,%s", name, policyname) - lbvserver_cmppolicy_binding := lb.Lbvservercmppolicybinding{ + lbvserver_cmppolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -89,10 +89,10 @@ func createLbvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - err := client.UpdateUnnamedResource(netscaler.Lbvserver_cmppolicy_binding.Type(), &lbvserver_cmppolicy_binding) + err := client.UpdateUnnamedResource(service.Lbvserver_cmppolicy_binding.Type(), &lbvserver_cmppolicy_binding) if err != nil { return err } @@ -118,7 +118,7 @@ func readLbvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interface{ policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_cmppolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_cmppolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -194,7 +194,7 @@ func deleteLbvserver_cmppolicy_bindingFunc(d *schema.ResourceData, meta interfac argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Lbvserver_cmppolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Lbvserver_cmppolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go index 8702ec41c..89c6549e4 100644 --- a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_cmppolicy_binding_basic_step1 = ` @@ -123,7 +124,7 @@ func testAccCheckLbvserver_cmppolicy_bindingExist(n string, id *string) resource name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_cmppolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -165,7 +166,7 @@ func testAccCheckLbvserver_cmppolicy_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_cmppolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_cmppolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_cmppolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding.go index c0f6a8de4..c867441a4 100644 --- a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -79,7 +79,7 @@ func createLbvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - lbvserver_filterpolicy_binding := lb.Lbvserverfilterpolicybinding{ + lbvserver_filterpolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -87,10 +87,10 @@ func createLbvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - err := client.UpdateUnnamedResource(netscaler.Lbvserver_filterpolicy_binding.Type(), &lbvserver_filterpolicy_binding) + err := client.UpdateUnnamedResource(service.Lbvserver_filterpolicy_binding.Type(), &lbvserver_filterpolicy_binding) if err != nil { return err } @@ -114,7 +114,7 @@ func readLbvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta interfa policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_filterpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_filterpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -189,7 +189,7 @@ func deleteLbvserver_filterpolicy_bindingFunc(d *schema.ResourceData, meta inter argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Lbvserver_filterpolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Lbvserver_filterpolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go index f623a55a4..bbd913058 100644 --- a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_filterpolicy_binding_basic_step1 = ` @@ -118,7 +119,7 @@ func testAccCheckLbvserver_filterpolicy_bindingExist(n string, id *string) resou name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_filterpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -160,7 +161,7 @@ func testAccCheckLbvserver_filterpolicy_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_filterpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_filterpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_filterpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding.go index 0d540f20d..b8fa347f7 100644 --- a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -79,7 +79,7 @@ func createLbvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - lbvserver_responderpolicy_binding := lb.Lbvserverresponderpolicybinding{ + lbvserver_responderpolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -87,10 +87,10 @@ func createLbvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - err := client.UpdateUnnamedResource(netscaler.Lbvserver_responderpolicy_binding.Type(), &lbvserver_responderpolicy_binding) + err := client.UpdateUnnamedResource(service.Lbvserver_responderpolicy_binding.Type(), &lbvserver_responderpolicy_binding) if err != nil { return err } @@ -114,7 +114,7 @@ func readLbvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta inte policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_responderpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_responderpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -190,7 +190,7 @@ func deleteLbvserver_responderpolicy_bindingFunc(d *schema.ResourceData, meta in if v, ok := d.GetOk("priority"); ok { argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Lbvserver_responderpolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Lbvserver_responderpolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go index a9b881b6e..d808e847f 100644 --- a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_responderpolicy_binding_basic_step1 = ` @@ -145,7 +146,7 @@ func testAccCheckLbvserver_responderpolicy_bindingExist(n string, id *string) re name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_responderpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -187,7 +188,7 @@ func testAccCheckLbvserver_responderpolicy_bindingDestroy(s *terraform.State) er return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_responderpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_responderpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_responderpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding.go index 6e14ad36d..39fe0b9b0 100644 --- a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -78,7 +78,7 @@ func createLbvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte name := d.Get("name").(string) policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - lbvserver_rewritepolicy_binding := lb.Lbvserverrewritepolicybinding{ + lbvserver_rewritepolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -86,10 +86,10 @@ func createLbvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - err := client.UpdateUnnamedResource(netscaler.Lbvserver_rewritepolicy_binding.Type(), &lbvserver_rewritepolicy_binding) + err := client.UpdateUnnamedResource(service.Lbvserver_rewritepolicy_binding.Type(), &lbvserver_rewritepolicy_binding) if err != nil { return err } @@ -113,7 +113,7 @@ func readLbvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta interf policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_rewritepolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_rewritepolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -189,7 +189,7 @@ func deleteLbvserver_rewritepolicy_bindingFunc(d *schema.ResourceData, meta inte if v, ok := d.GetOk("priority"); ok { argsMap["priority"] = url.QueryEscape(fmt.Sprintf("%v", v)) } - err := client.DeleteResourceWithArgsMap(netscaler.Lbvserver_rewritepolicy_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Lbvserver_rewritepolicy_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go index 4ed148dba..6b3edffb5 100644 --- a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_rewritepolicy_binding_basic_step1 = ` @@ -146,7 +147,7 @@ func testAccCheckLbvserver_rewritepolicy_bindingExist(n string, id *string) reso name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_rewritepolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -188,7 +189,7 @@ func testAccCheckLbvserver_rewritepolicy_bindingDestroy(s *terraform.State) erro return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_rewritepolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_rewritepolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_rewritepolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_service_binding.go b/citrixadc/resource_citrixadc_lbvserver_service_binding.go index e4a9fd743..85fa452b0 100644 --- a/citrixadc/resource_citrixadc_lbvserver_service_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_service_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -53,10 +53,10 @@ func createLbvserver_service_bindingFunc(d *schema.ResourceData, meta interface{ lbvserver_service_binding := lb.Lbvserverservicebinding{ Name: d.Get("name").(string), Servicename: d.Get("servicename").(string), - Weight: d.Get("weight").(int), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Lbvserver_service_binding.Type(), name, &lbvserver_service_binding) + _, err := client.AddResource(service.Lbvserver_service_binding.Type(), name, &lbvserver_service_binding) if err != nil { return err } @@ -81,7 +81,7 @@ func readLbvserver_service_bindingFunc(d *schema.ResourceData, meta interface{}) log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_service_binding state %v", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_service_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go index ee8e4dc2d..b30fd7465 100644 --- a/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_service_binding_basic_step1 = ` @@ -118,7 +119,7 @@ func testAccCheckLbvserver_service_bindingExist(n string, id *string) resource.T name := idSlice[0] servicename := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_service_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -159,7 +160,7 @@ func testAccCheckLbvserver_service_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_service_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_service_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_service_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding.go b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding.go index b588f70a6..a7b783301 100644 --- a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -49,7 +49,7 @@ func createLbvserver_servicegroup_bindingFunc(d *schema.ResourceData, meta inter Servicegroupname: d.Get("servicegroupname").(string), } - _, err := client.AddResource(netscaler.Lbvserver_servicegroup_binding.Type(), name, &lbvserver_servicegroup_binding) + _, err := client.AddResource(service.Lbvserver_servicegroup_binding.Type(), name, &lbvserver_servicegroup_binding) if err != nil { return err } @@ -73,7 +73,7 @@ func readLbvserver_servicegroup_bindingFunc(d *schema.ResourceData, meta interfa name := idSlice[0] servicegroupname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_servicegroup_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go index 211c97985..d5a22c220 100644 --- a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_servicegroup_binding_basic = ` @@ -117,7 +118,7 @@ func testAccCheckLbvserver_servicegroup_bindingExist(n string, id *string) resou name := idSlice[0] servicegroupname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_servicegroup_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -158,7 +159,7 @@ func testAccCheckLbvserver_servicegroup_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_servicegroup_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_servicegroup_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_servicegroup_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_lbvserver_test.go b/citrixadc/resource_citrixadc_lbvserver_test.go index 3868c1eab..15f1e64e3 100644 --- a/citrixadc/resource_citrixadc_lbvserver_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_test.go @@ -17,15 +17,16 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "log" "os" "strings" "testing" "time" + + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccLbvserver_basic(t *testing.T) { @@ -265,7 +266,7 @@ func testAccCheckLbvserverExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Lbvserver.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Lbvserver.Type(), rs.Primary.ID) if err != nil { return err @@ -291,7 +292,7 @@ func testAccCheckLbvserverDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -413,7 +414,7 @@ func TestAccLbvserver_AssertNonUpdateableAttributes(t *testing.T) { // Create resource vserverName := "tf-acc-lb-vserver-name" - vserverType := netscaler.Lbvserver.Type() + vserverType := service.Lbvserver.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, vserverType, vserverName, nil) diff --git a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding.go b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding.go index 67a64e262..f99009fff 100644 --- a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -77,7 +77,7 @@ func createLbvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta in name := d.Get("name").(string) policyname := d.Get("policyname").(string) bindingId := fmt.Sprintf("%s,%s", name, policyname) - lbvserver_transformpolicy_binding := lb.Lbvservertransformpolicybinding{ + lbvserver_transformpolicy_binding := lb.Lbvserverpolicybinding{ Bindpoint: d.Get("bindpoint").(string), Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), @@ -85,10 +85,10 @@ func createLbvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta in Labeltype: d.Get("labeltype").(string), Name: d.Get("name").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), } - err := client.UpdateUnnamedResource(netscaler.Lbvserver_transformpolicy_binding.Type(), &lbvserver_transformpolicy_binding) + err := client.UpdateUnnamedResource(service.Lbvserver_transformpolicy_binding.Type(), &lbvserver_transformpolicy_binding) if err != nil { return err } @@ -113,7 +113,7 @@ func readLbvserver_transformpolicy_bindingFunc(d *schema.ResourceData, meta inte log.Printf("[DEBUG] citrixadc-provider: Reading lbvserver_transformpolicy_binding state %v", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_transformpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go index 5e697e506..326cadedb 100644 --- a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccLbvserver_transformpolicy_binding_basic_step1 = ` @@ -127,7 +128,7 @@ func testAccCheckLbvserver_transformpolicy_bindingExist(n string, id *string) re name := idSlice[0] policyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "lbvserver_transformpolicy_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -169,7 +170,7 @@ func testAccCheckLbvserver_transformpolicy_bindingDestroy(s *terraform.State) er return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Lbvserver_transformpolicy_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Lbvserver_transformpolicy_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("lbvserver_transformpolicy_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_linkset.go b/citrixadc/resource_citrixadc_linkset.go index 67de7734a..e92946a32 100644 --- a/citrixadc/resource_citrixadc_linkset.go +++ b/citrixadc/resource_citrixadc_linkset.go @@ -2,14 +2,13 @@ package citrixadc import ( "fmt" + "log" "net/url" - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" - - "log" ) func resourceCitrixAdcLinkset() *schema.Resource { @@ -45,7 +44,7 @@ func createLinksetFunc(d *schema.ResourceData, meta interface{}) error { Id: linksetName, } - _, err := client.AddResource(netscaler.Linkset.Type(), "", &linkset) + _, err := client.AddResource(service.Linkset.Type(), "", &linkset) if err != nil { return err } @@ -72,7 +71,7 @@ func readLinksetFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: Reading linkset state %s", linksetName) // double encode value part as it contains `/` linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) - data, err := client.FindResource(netscaler.Linkset.Type(), linksetNameEscaped) + data, err := client.FindResource(service.Linkset.Type(), linksetNameEscaped) err = readLinksetInterfaceBindings(d, meta) if err != nil { @@ -91,7 +90,7 @@ func deleteLinksetFunc(d *schema.ResourceData, meta interface{}) error { linksetName := d.Id() // double encode value part as it contains `/` linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) - err := client.DeleteResource(netscaler.Linkset.Type(), linksetNameEscaped) + err := client.DeleteResource(service.Linkset.Type(), linksetNameEscaped) if err != nil { return err } @@ -116,7 +115,7 @@ func deleteSingleLinksetInterfaceBinding(d *schema.ResourceData, meta interface{ log.Printf("args is %v", args) linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) - if err := client.DeleteResourceWithArgs(netscaler.Linkset_interface_binding.Type(), linksetNameEscaped, args); err != nil { + if err := client.DeleteResourceWithArgs(service.Linkset_interface_binding.Type(), linksetNameEscaped, args); err != nil { log.Printf("[DEBUG] citrixadc-provider: Error deleting interface binding %v\n", ifnum) return err } @@ -133,7 +132,7 @@ func addSingleLinksetInterfaceBinding(d *schema.ResourceData, meta interface{}, bindingStruct.Ifnum = ifnum // We need to do a HTTP PUT hence the UpdateResource - if err := client.UpdateUnnamedResource(netscaler.Linkset_interface_binding.Type(), bindingStruct); err != nil { + if err := client.UpdateUnnamedResource(service.Linkset_interface_binding.Type(), bindingStruct); err != nil { return err } return nil @@ -167,7 +166,7 @@ func readLinksetInterfaceBindings(d *schema.ResourceData, meta interface{}) erro // double encode value part as it contains `/` linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) - bindings, _ := client.FindResourceArray(netscaler.Linkset_interface_binding.Type(), linksetNameEscaped) + bindings, _ := client.FindResourceArray(service.Linkset_interface_binding.Type(), linksetNameEscaped) log.Printf("bindings %v\n", bindings) processedBindings := make([]interface{}, len(bindings)) diff --git a/citrixadc/resource_citrixadc_linkset_test.go b/citrixadc/resource_citrixadc_linkset_test.go index 18a34273f..8d7e15b43 100644 --- a/citrixadc/resource_citrixadc_linkset_test.go +++ b/citrixadc/resource_citrixadc_linkset_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -85,7 +85,7 @@ func testAccCheckLinksetExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Linkset.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Linkset.Type(), rs.Primary.ID) if err != nil { return err @@ -111,7 +111,7 @@ func testAccCheckLinksetDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Linkset.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Linkset.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("Linset ID %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_netprofile.go b/citrixadc/resource_citrixadc_netprofile.go index 7713929a2..6c580cf7f 100644 --- a/citrixadc/resource_citrixadc_netprofile.go +++ b/citrixadc/resource_citrixadc_netprofile.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -106,7 +106,7 @@ func createNetprofileFunc(d *schema.ResourceData, meta interface{}) error { Proxyprotocolaftertlshandshake: d.Get("proxyprotocolaftertlshandshake").(string), } - _, err := client.AddResource(netscaler.Netprofile.Type(), netprofileName, &netprofile) + _, err := client.AddResource(service.Netprofile.Type(), netprofileName, &netprofile) if err != nil { return err } @@ -126,7 +126,7 @@ func readNetprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client netprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading netprofile state %s", netprofileName) - data, err := client.FindResource(netscaler.Netprofile.Type(), netprofileName) + data, err := client.FindResource(service.Netprofile.Type(), netprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing netprofile state %s", netprofileName) d.SetId("") @@ -203,7 +203,7 @@ func updateNetprofileFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Netprofile.Type(), netprofileName, &netprofile) + _, err := client.UpdateResource(service.Netprofile.Type(), netprofileName, &netprofile) if err != nil { return fmt.Errorf("Error updating netprofile %s", netprofileName) } @@ -215,7 +215,7 @@ func deleteNetprofileFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteNetprofileFunc") client := meta.(*NetScalerNitroClient).client netprofileName := d.Id() - err := client.DeleteResource(netscaler.Netprofile.Type(), netprofileName) + err := client.DeleteResource(service.Netprofile.Type(), netprofileName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_netprofile_test.go b/citrixadc/resource_citrixadc_netprofile_test.go index fba4005d3..b617bad7a 100644 --- a/citrixadc/resource_citrixadc_netprofile_test.go +++ b/citrixadc/resource_citrixadc_netprofile_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNetprofile_basic(t *testing.T) { @@ -102,7 +103,7 @@ func testAccCheckNetprofileExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Netprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Netprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -128,7 +129,7 @@ func testAccCheckNetprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Netprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Netprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nsacl.go b/citrixadc/resource_citrixadc_nsacl.go index ec0c24c3c..f66291df4 100644 --- a/citrixadc/resource_citrixadc_nsacl.go +++ b/citrixadc/resource_citrixadc_nsacl.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -217,14 +217,14 @@ func createNsaclFunc(d *schema.ResourceData, meta interface{}) error { Destportval: d.Get("destportval").(string), Dfdhash: d.Get("dfdhash").(string), Established: d.Get("established").(bool), - Icmpcode: d.Get("icmpcode").(int), - Icmptype: d.Get("icmptype").(int), + Icmpcode: uint32(d.Get("icmpcode").(int)), + Icmptype: uint32(d.Get("icmptype").(int)), Interface: d.Get("interface").(string), Logstate: d.Get("logstate").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Protocol: d.Get("protocol").(string), - Protocolnumber: d.Get("protocolnumber").(int), - Ratelimit: d.Get("ratelimit").(int), + Protocolnumber: uint32(d.Get("protocolnumber").(int)), + Ratelimit: uint32(d.Get("ratelimit").(int)), Srcip: srcip, Srcipop: d.Get("srcipop").(string), Srcipval: d.Get("srcipval").(string), @@ -235,13 +235,13 @@ func createNsaclFunc(d *schema.ResourceData, meta interface{}) error { Srcportval: d.Get("srcportval").(string), State: d.Get("state").(string), Stateful: d.Get("stateful").(string), - Td: d.Get("td").(int), - Ttl: d.Get("ttl").(int), - Vlan: d.Get("vlan").(int), - Vxlan: d.Get("vxlan").(int), + Td: uint32(d.Get("td").(int)), + Ttl: uint32(d.Get("ttl").(int)), + Vlan: uint32(d.Get("vlan").(int)), + Vxlan: uint32(d.Get("vxlan").(int)), } - _, err := client.AddResource(netscaler.Nsacl.Type(), nsaclName, &nsacl) + _, err := client.AddResource(service.Nsacl.Type(), nsaclName, &nsacl) if err != nil { return err } @@ -261,7 +261,7 @@ func readNsaclFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsaclName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading nsacl state %s", nsaclName) - data, err := client.FindResource(netscaler.Nsacl.Type(), nsaclName) + data, err := client.FindResource(service.Nsacl.Type(), nsaclName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing nsacl state %s", nsaclName) d.SetId("") @@ -361,12 +361,12 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("icmpcode") { log.Printf("[DEBUG] netscaler-provider: Icmpcode has changed for nsacl %s, starting update", nsaclName) - nsacl.Icmpcode = d.Get("icmpcode").(int) + nsacl.Icmpcode = uint32(d.Get("icmpcode").(int)) hasChange = true } if d.HasChange("icmptype") { log.Printf("[DEBUG] netscaler-provider: Icmptype has changed for nsacl %s, starting update", nsaclName) - nsacl.Icmptype = d.Get("icmptype").(int) + nsacl.Icmptype = uint32(d.Get("icmptype").(int)) hasChange = true } if d.HasChange("interface") { @@ -381,7 +381,7 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] netscaler-provider: Priority has changed for nsacl %s, starting update", nsaclName) - nsacl.Priority = d.Get("priority").(int) + nsacl.Priority = uint32(d.Get("priority").(int)) hasChange = true } if d.HasChange("protocol") { @@ -391,12 +391,12 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("protocolnumber") { log.Printf("[DEBUG] netscaler-provider: Protocolnumber has changed for nsacl %s, starting update", nsaclName) - nsacl.Protocolnumber = d.Get("protocolnumber").(int) + nsacl.Protocolnumber = uint32(d.Get("protocolnumber").(int)) hasChange = true } if d.HasChange("ratelimit") { log.Printf("[DEBUG] netscaler-provider: Ratelimit has changed for nsacl %s, starting update", nsaclName) - nsacl.Ratelimit = d.Get("ratelimit").(int) + nsacl.Ratelimit = uint32(d.Get("ratelimit").(int)) hasChange = true } if d.HasChange("srcipop") { @@ -444,27 +444,27 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for nsacl %s, starting update", nsaclName) - nsacl.Td = d.Get("td").(int) + nsacl.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for nsacl %s, starting update", nsaclName) - nsacl.Ttl = d.Get("ttl").(int) + nsacl.Ttl = uint32(d.Get("ttl").(int)) hasChange = true } if d.HasChange("vlan") { log.Printf("[DEBUG] netscaler-provider: Vlan has changed for nsacl %s, starting update", nsaclName) - nsacl.Vlan = d.Get("vlan").(int) + nsacl.Vlan = uint32(d.Get("vlan").(int)) hasChange = true } if d.HasChange("vxlan") { log.Printf("[DEBUG] netscaler-provider: Vxlan has changed for nsacl %s, starting update", nsaclName) - nsacl.Vxlan = d.Get("vxlan").(int) + nsacl.Vxlan = uint32(d.Get("vxlan").(int)) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Nsacl.Type(), nsaclName, &nsacl) + _, err := client.UpdateResource(service.Nsacl.Type(), nsaclName, &nsacl) if err != nil { return fmt.Errorf("Error updating nsacl %s", nsaclName) } @@ -483,7 +483,7 @@ func deleteNsaclFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteNsaclFunc") client := meta.(*NetScalerNitroClient).client nsaclName := d.Id() - err := client.DeleteResource(netscaler.Nsacl.Type(), nsaclName) + err := client.DeleteResource(service.Nsacl.Type(), nsaclName) if err != nil { return err } @@ -493,7 +493,7 @@ func deleteNsaclFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doNsaclStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doNsaclStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doServerStateChange") // We need a new instance of the struct since @@ -505,12 +505,12 @@ func doNsaclStateChange(d *schema.ResourceData, client *netscaler.NitroClient) e newstate := d.Get("state") if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Nsacl.Type(), nsacl, "enable") + err := client.ActOnResource(service.Nsacl.Type(), nsacl, "enable") if err != nil { return err } } else if newstate == "DISABLED" { - err := client.ActOnResource(netscaler.Nsacl.Type(), nsacl, "disable") + err := client.ActOnResource(service.Nsacl.Type(), nsacl, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nsacl_test.go b/citrixadc/resource_citrixadc_nsacl_test.go index bd708e401..97156817f 100644 --- a/citrixadc/resource_citrixadc_nsacl_test.go +++ b/citrixadc/resource_citrixadc_nsacl_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNsacl_basic(t *testing.T) { @@ -70,7 +71,7 @@ func testAccCheckNsaclExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nsacl.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Nsacl.Type(), rs.Primary.ID) if err != nil { return err @@ -96,7 +97,7 @@ func testAccCheckNsaclDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nsacl.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nsacl.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nsacls.go b/citrixadc/resource_citrixadc_nsacls.go index 6853e728a..5752a6f18 100644 --- a/citrixadc/resource_citrixadc_nsacls.go +++ b/citrixadc/resource_citrixadc_nsacls.go @@ -1,15 +1,15 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" - "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "log" + + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" "github.com/mitchellh/mapstructure" - - "log" ) func resourceCitrixAdcNsacls() *schema.Resource { @@ -175,7 +175,7 @@ func createNsaclsFunc(d *schema.ResourceData, meta interface{}) error { } nsacls := ns.Nsacls{} - err := client.ApplyResource(netscaler.Nsacls.Type(), &nsacls) + err := client.ApplyResource(service.Nsacls.Type(), &nsacls) if err != nil { return err } @@ -188,7 +188,7 @@ func createNsaclsFunc(d *schema.ResourceData, meta interface{}) error { func readNsaclsFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In readNsaclsFunc") client := meta.(*NetScalerNitroClient).client - data, _ := client.FindAllResources(netscaler.Nsacl.Type()) + data, _ := client.FindAllResources(service.Nsacl.Type()) acls := make([]map[string]interface{}, len(data)) for i, a := range data { //acls[i] = a.(map[string]interface{}) @@ -256,7 +256,7 @@ func updateNsaclsFunc(d *schema.ResourceData, meta interface{}) error { for _, val := range update { acl := val log.Printf("[DEBUG] netscaler-provider: going to update acl %s", acl.Aclname) - //_, err := client.UpdateResource(netscaler.Nsacl.Type(), acl["aclname"].(string), &acl) + //_, err := client.UpdateResource(service.Nsacl.Type(), acl["aclname"].(string), &acl) err := updateSingleAcl(acl, meta) if err != nil { log.Printf("[DEBUG] netscaler-provider: error updating acl %s", acl.Aclname) @@ -282,7 +282,7 @@ func updateNsaclsFunc(d *schema.ResourceData, meta interface{}) error { } } nsacls := ns.Nsacls{} - err := client.ApplyResource(netscaler.Nsacls.Type(), &nsacls) + err := client.ApplyResource(service.Nsacls.Type(), &nsacls) return err } @@ -297,7 +297,7 @@ func deleteNsaclsFunc(d *schema.ResourceData, meta interface{}) error { } client := meta.(*NetScalerNitroClient).client nsacls := ns.Nsacls{} - err := client.ApplyResource(netscaler.Nsacls.Type(), &nsacls) + err := client.ApplyResource(service.Nsacls.Type(), &nsacls) d.SetId("") return err } @@ -352,14 +352,14 @@ func createSingleAcl(acl map[string]interface{}, meta interface{}) error { Destportop: acl["destportop"].(string), Destportval: acl["destportval"].(string), Established: acl["established"].(bool), - Icmpcode: acl["icmpcode"].(int), - Icmptype: acl["icmptype"].(int), + Icmpcode: uint32(acl["icmpcode"].(int)), + Icmptype: uint32(acl["icmptype"].(int)), Interface: acl["interface"].(string), Logstate: acl["logstate"].(string), - Priority: acl["priority"].(int), + Priority: uint32(acl["priority"].(int)), Protocol: acl["protocol"].(string), - Protocolnumber: acl["protocolnumber"].(int), - Ratelimit: acl["ratelimit"].(int), + Protocolnumber: uint32(acl["protocolnumber"].(int)), + Ratelimit: uint32(acl["ratelimit"].(int)), Srcip: srcip, Srcipop: acl["srcipop"].(string), Srcipval: acl["srcipval"].(string), @@ -368,12 +368,12 @@ func createSingleAcl(acl map[string]interface{}, meta interface{}) error { Srcportop: acl["srcportop"].(string), Srcportval: acl["srcportval"].(string), State: acl["state"].(string), - Td: acl["td"].(int), - Ttl: acl["ttl"].(int), - Vlan: acl["vlan"].(int), + Td: uint32(acl["td"].(int)), + Ttl: uint32(acl["ttl"].(int)), + Vlan: uint32(acl["vlan"].(int)), } - _, err := client.AddResource(netscaler.Nsacl.Type(), nsaclName, &nsacl) + _, err := client.AddResource(service.Nsacl.Type(), nsaclName, &nsacl) if err != nil { return err } @@ -385,7 +385,7 @@ func deleteSingleAcl(acl map[string]interface{}, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteSingleAcl") client := meta.(*NetScalerNitroClient).client nsaclName := acl["aclname"].(string) - err := client.DeleteResource(netscaler.Nsacl.Type(), nsaclName) + err := client.DeleteResource(service.Nsacl.Type(), nsaclName) if err != nil { return err } @@ -417,7 +417,7 @@ func updateSingleAcl(acl ns.Nsacl, meta interface{}) error { return fmt.Errorf("Error in nsacl spec %s cannot have srcportop without srcportval", nsaclName) } - _, err := client.UpdateResource(netscaler.Nsacl.Type(), nsaclName, &acl) + _, err := client.UpdateResource(service.Nsacl.Type(), nsaclName, &acl) return err } diff --git a/citrixadc/resource_citrixadc_nsacls_test.go b/citrixadc/resource_citrixadc_nsacls_test.go index 607faea54..2f3987929 100644 --- a/citrixadc/resource_citrixadc_nsacls_test.go +++ b/citrixadc/resource_citrixadc_nsacls_test.go @@ -23,7 +23,7 @@ import ( "reflect" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -70,7 +70,7 @@ func testAccCheckNsaclsExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - deviceAcls, err := nsClient.FindAllResources(netscaler.Nsacl.Type()) + deviceAcls, err := nsClient.FindAllResources(service.Nsacl.Type()) if err != nil { return err @@ -147,7 +147,7 @@ func TestAccNsacls_update(t *testing.T) { func testAccCheckNsaclsDestroy(s *terraform.State) error { nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - deviceAcls, err := nsClient.FindAllResources(netscaler.Nsacl.Type()) + deviceAcls, err := nsClient.FindAllResources(service.Nsacl.Type()) if err != nil { return err } @@ -194,7 +194,7 @@ func testAccCheckNsaclsUpdateExist(n string, id *string) resource.TestCheckFunc nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - deviceAcls, err := nsClient.FindAllResources(netscaler.Nsacl.Type()) + deviceAcls, err := nsClient.FindAllResources(service.Nsacl.Type()) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nscapacity.go b/citrixadc/resource_citrixadc_nscapacity.go index dbe0bc535..7b4d1f6cb 100644 --- a/citrixadc/resource_citrixadc_nscapacity.go +++ b/citrixadc/resource_citrixadc_nscapacity.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -85,9 +85,9 @@ func createNscapacityFunc(d *schema.ResourceData, meta interface{}) error { nscapacityId := resource.PrefixedUniqueId("tf-nscapacity-") nscapacity := ns.Nscapacity{ - Bandwidth: d.Get("bandwidth").(int), + Bandwidth: uint32(d.Get("bandwidth").(int)), Edition: d.Get("edition").(string), - Nodeid: d.Get("nodeid").(int), + Nodeid: uint32(d.Get("nodeid").(int)), Platform: d.Get("platform").(string), Unit: d.Get("unit").(string), Vcpu: d.Get("vcpu").(bool), diff --git a/citrixadc/resource_citrixadc_nsconfig_clear.go b/citrixadc/resource_citrixadc_nsconfig_clear.go index 16439ae83..43d4b1b77 100644 --- a/citrixadc/resource_citrixadc_nsconfig_clear.go +++ b/citrixadc/resource_citrixadc_nsconfig_clear.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -52,7 +52,7 @@ func createNsconfigClearFunc(d *schema.ResourceData, meta interface{}) error { Rbaconfig: d.Get("rbaconfig").(string), } - err := client.ActOnResource(netscaler.Nsconfig.Type(), &nsconfig, "clear") + err := client.ActOnResource(service.Nsconfig.Type(), &nsconfig, "clear") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nsconfig_save.go b/citrixadc/resource_citrixadc_nsconfig_save.go index fe71b26d5..c0c23d6c5 100644 --- a/citrixadc/resource_citrixadc_nsconfig_save.go +++ b/citrixadc/resource_citrixadc_nsconfig_save.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -122,7 +122,7 @@ func doSaveConfig(d *schema.ResourceData, meta interface{}) error { All: d.Get("all").(bool), } - err := client.ActOnResource(netscaler.Nsconfig.Type(), &nsconfig, "save") + err := client.ActOnResource(service.Nsconfig.Type(), &nsconfig, "save") return err } diff --git a/citrixadc/resource_citrixadc_nsconfig_save_test.go b/citrixadc/resource_citrixadc_nsconfig_save_test.go index 295e893ce..6458d122b 100644 --- a/citrixadc/resource_citrixadc_nsconfig_save_test.go +++ b/citrixadc/resource_citrixadc_nsconfig_save_test.go @@ -21,9 +21,10 @@ import ( "testing" "time" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/config/ns" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -126,13 +127,13 @@ func testAccSaveRaceSetup(t *testing.T) { // Run Save config concurrently url := os.Getenv("NS_URL") password := os.Getenv("NS_PASSWORD") - params := netscaler.NitroParams{ + params := service.NitroParams{ Url: url, Username: "nsroot", Password: password, SslVerify: false, } - client, err := netscaler.NewNitroClientFromParams(params) + client, err := service.NewNitroClientFromParams(params) if err != nil { t.Fatalf("extra client instantiation error: %s", err.Error()) } diff --git a/citrixadc/resource_citrixadc_nsconfig_update.go b/citrixadc/resource_citrixadc_nsconfig_update.go index fffc4f8e0..4c3261c98 100644 --- a/citrixadc/resource_citrixadc_nsconfig_update.go +++ b/citrixadc/resource_citrixadc_nsconfig_update.go @@ -2,13 +2,12 @@ package citrixadc import ( "fmt" + "log" - "github.com/chiradeep/go-nitro/config/ns" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" - - "log" ) func resourceCitrixAdcNsconfigUpdate() *schema.Resource { @@ -56,11 +55,11 @@ func createNsconfigUpdateFunc(d *schema.ResourceData, meta interface{}) error { nsconfig := ns.Nsconfig{} nsconfig.Ipaddress = d.Get("ipaddress").(string) nsconfig.Netmask = d.Get("netmask").(string) - nsconfig.Nsvlan = d.Get("nsvlan").(int) - nsconfig.Ifnum = getIfnumValue(d) + nsconfig.Nsvlan = uint32(d.Get("nsvlan").(int)) + nsconfig.Ifnum = toStringList(getIfnumValue(d)) nsconfig.Tagged = d.Get("tagged").(string) - err := client.UpdateUnnamedResource(netscaler.Nsconfig.Type(), &nsconfig) + err := client.UpdateUnnamedResource(service.Nsconfig.Type(), &nsconfig) if err != nil { return err } @@ -80,7 +79,7 @@ func readNsconfigUpdateFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsconfigName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsconfig state %s", nsconfigName) - data, err := client.FindResource(netscaler.Nsconfig.Type(), "") + data, err := client.FindResource(service.Nsconfig.Type(), "") if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing nsconfig state %s", nsconfigName) d.SetId("") @@ -135,13 +134,13 @@ func updateNsconfigUpdateFunc(d *schema.ResourceData, meta interface{}) error { nsconfig.Netmask = d.Get("netmask").(string) } if hasNsvlanChanged || hasIfnumChanged || hasTaggedChanged { - nsconfig.Nsvlan = d.Get("nsvlan").(int) - nsconfig.Ifnum = getIfnumValue(d) + nsconfig.Nsvlan = uint32(d.Get("nsvlan").(int)) + nsconfig.Ifnum = toStringList(getIfnumValue(d)) nsconfig.Tagged = d.Get("tagged").(string) } if hasIPChanged || hasNetmaskChanged || hasNsvlanChanged || hasIfnumChanged || hasTaggedChanged { - err := client.UpdateUnnamedResource(netscaler.Nsconfig.Type(), &nsconfig) + err := client.UpdateUnnamedResource(service.Nsconfig.Type(), &nsconfig) if err != nil { return fmt.Errorf("Error updating nsconfig %s", nsconfigName) } diff --git a/citrixadc/resource_citrixadc_nshttpprofile.go b/citrixadc/resource_citrixadc_nshttpprofile.go index 519304ebe..f03690e22 100644 --- a/citrixadc/resource_citrixadc_nshttpprofile.go +++ b/citrixadc/resource_citrixadc_nshttpprofile.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -209,7 +209,7 @@ func createNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { Name: nshttpprofileName, Adpttimeout: d.Get("adpttimeout").(string), Altsvc: d.Get("altsvc").(string), - Apdexcltresptimethreshold: d.Get("apdexcltresptimethreshold").(int), + Apdexcltresptimethreshold: uint32(d.Get("apdexcltresptimethreshold").(int)), Clientiphdrexpr: d.Get("clientiphdrexpr").(string), Cmponpush: d.Get("cmponpush").(string), Conmultiplex: d.Get("conmultiplex").(string), @@ -218,32 +218,32 @@ func createNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { Dropinvalreqs: d.Get("dropinvalreqs").(string), Http2: d.Get("http2").(string), Http2direct: d.Get("http2direct").(string), - Http2headertablesize: d.Get("http2headertablesize").(int), - Http2initialwindowsize: d.Get("http2initialwindowsize").(int), - Http2maxconcurrentstreams: d.Get("http2maxconcurrentstreams").(int), - Http2maxframesize: d.Get("http2maxframesize").(int), - Http2maxheaderlistsize: d.Get("http2maxheaderlistsize").(int), - Http2minseverconn: d.Get("http2minseverconn").(int), + Http2headertablesize: uint32(d.Get("http2headertablesize").(int)), + Http2initialwindowsize: uint32(d.Get("http2initialwindowsize").(int)), + Http2maxconcurrentstreams: uint32(d.Get("http2maxconcurrentstreams").(int)), + Http2maxframesize: uint32(d.Get("http2maxframesize").(int)), + Http2maxheaderlistsize: uint32(d.Get("http2maxheaderlistsize").(int)), + Http2minseverconn: uint32(d.Get("http2minseverconn").(int)), Http2strictcipher: d.Get("http2strictcipher").(string), - Incomphdrdelay: d.Get("incomphdrdelay").(int), + Incomphdrdelay: uint32(d.Get("incomphdrdelay").(int)), Markconnreqinval: d.Get("markconnreqinval").(string), Markhttp09inval: d.Get("markhttp09inval").(string), Marktracereqinval: d.Get("marktracereqinval").(string), - Maxheaderlen: d.Get("maxheaderlen").(int), - Maxreq: d.Get("maxreq").(int), - Maxreusepool: d.Get("maxreusepool").(int), - Minreusepool: d.Get("minreusepool").(int), + Maxheaderlen: uint32(d.Get("maxheaderlen").(int)), + Maxreq: uint32(d.Get("maxreq").(int)), + Maxreusepool: uint32(d.Get("maxreusepool").(int)), + Minreusepool: uint32(d.Get("minreusepool").(int)), Persistentetag: d.Get("persistentetag").(string), - Reqtimeout: d.Get("reqtimeout").(int), + Reqtimeout: uint32(d.Get("reqtimeout").(int)), Reqtimeoutaction: d.Get("reqtimeoutaction").(string), - Reusepooltimeout: d.Get("reusepooltimeout").(int), + Reusepooltimeout: uint32(d.Get("reusepooltimeout").(int)), Rtsptunnel: d.Get("rtsptunnel").(string), Spdy: d.Get("spdy").(string), Weblog: d.Get("weblog").(string), Websocket: d.Get("websocket").(string), } - _, err := client.AddResource(netscaler.Nshttpprofile.Type(), nshttpprofileName, &nshttpprofile) + _, err := client.AddResource(service.Nshttpprofile.Type(), nshttpprofileName, &nshttpprofile) if err != nil { return err } @@ -263,7 +263,7 @@ func readNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nshttpprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nshttpprofile state %s", nshttpprofileName) - data, err := client.FindResource(netscaler.Nshttpprofile.Type(), nshttpprofileName) + data, err := client.FindResource(service.Nshttpprofile.Type(), nshttpprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing nshttpprofile state %s", nshttpprofileName) d.SetId("") @@ -331,7 +331,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("apdexcltresptimethreshold") { log.Printf("[DEBUG] citrixadc-provider: Apdexcltresptimethreshold has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Apdexcltresptimethreshold = d.Get("apdexcltresptimethreshold").(int) + nshttpprofile.Apdexcltresptimethreshold = uint32(d.Get("apdexcltresptimethreshold").(int)) hasChange = true } if d.HasChange("clientiphdrexpr") { @@ -376,32 +376,32 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("http2headertablesize") { log.Printf("[DEBUG] citrixadc-provider: Http2headertablesize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2headertablesize = d.Get("http2headertablesize").(int) + nshttpprofile.Http2headertablesize = uint32(d.Get("http2headertablesize").(int)) hasChange = true } if d.HasChange("http2initialwindowsize") { log.Printf("[DEBUG] citrixadc-provider: Http2initialwindowsize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2initialwindowsize = d.Get("http2initialwindowsize").(int) + nshttpprofile.Http2initialwindowsize = uint32(d.Get("http2initialwindowsize").(int)) hasChange = true } if d.HasChange("http2maxconcurrentstreams") { log.Printf("[DEBUG] citrixadc-provider: Http2maxconcurrentstreams has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxconcurrentstreams = d.Get("http2maxconcurrentstreams").(int) + nshttpprofile.Http2maxconcurrentstreams = uint32(d.Get("http2maxconcurrentstreams").(int)) hasChange = true } if d.HasChange("http2maxframesize") { log.Printf("[DEBUG] citrixadc-provider: Http2maxframesize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxframesize = d.Get("http2maxframesize").(int) + nshttpprofile.Http2maxframesize = uint32(d.Get("http2maxframesize").(int)) hasChange = true } if d.HasChange("http2maxheaderlistsize") { log.Printf("[DEBUG] citrixadc-provider: Http2maxheaderlistsize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxheaderlistsize = d.Get("http2maxheaderlistsize").(int) + nshttpprofile.Http2maxheaderlistsize = uint32(d.Get("http2maxheaderlistsize").(int)) hasChange = true } if d.HasChange("http2minseverconn") { log.Printf("[DEBUG] citrixadc-provider: Http2minseverconn has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2minseverconn = d.Get("http2minseverconn").(int) + nshttpprofile.Http2minseverconn = uint32(d.Get("http2minseverconn").(int)) hasChange = true } if d.HasChange("http2strictcipher") { @@ -411,7 +411,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("incomphdrdelay") { log.Printf("[DEBUG] citrixadc-provider: Incomphdrdelay has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Incomphdrdelay = d.Get("incomphdrdelay").(int) + nshttpprofile.Incomphdrdelay = uint32(d.Get("incomphdrdelay").(int)) hasChange = true } if d.HasChange("markconnreqinval") { @@ -431,22 +431,22 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxheaderlen") { log.Printf("[DEBUG] citrixadc-provider: Maxheaderlen has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxheaderlen = d.Get("maxheaderlen").(int) + nshttpprofile.Maxheaderlen = uint32(d.Get("maxheaderlen").(int)) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] citrixadc-provider: Maxreq has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxreq = d.Get("maxreq").(int) + nshttpprofile.Maxreq = uint32(d.Get("maxreq").(int)) hasChange = true } if d.HasChange("maxreusepool") { log.Printf("[DEBUG] citrixadc-provider: Maxreusepool has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxreusepool = d.Get("maxreusepool").(int) + nshttpprofile.Maxreusepool = uint32(d.Get("maxreusepool").(int)) hasChange = true } if d.HasChange("minreusepool") { log.Printf("[DEBUG] citrixadc-provider: Minreusepool has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Minreusepool = d.Get("minreusepool").(int) + nshttpprofile.Minreusepool = uint32(d.Get("minreusepool").(int)) hasChange = true } if d.HasChange("name") { @@ -461,7 +461,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("reqtimeout") { log.Printf("[DEBUG] citrixadc-provider: Reqtimeout has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Reqtimeout = d.Get("reqtimeout").(int) + nshttpprofile.Reqtimeout = uint32(d.Get("reqtimeout").(int)) hasChange = true } if d.HasChange("reqtimeoutaction") { @@ -471,7 +471,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("reusepooltimeout") { log.Printf("[DEBUG] citrixadc-provider: Reusepooltimeout has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Reusepooltimeout = d.Get("reusepooltimeout").(int) + nshttpprofile.Reusepooltimeout = uint32(d.Get("reusepooltimeout").(int)) hasChange = true } if d.HasChange("rtsptunnel") { @@ -496,7 +496,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Nshttpprofile.Type(), nshttpprofileName, &nshttpprofile) + _, err := client.UpdateResource(service.Nshttpprofile.Type(), nshttpprofileName, &nshttpprofile) if err != nil { return fmt.Errorf("Error updating nshttpprofile %s", nshttpprofileName) } @@ -508,7 +508,7 @@ func deleteNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteNshttpprofileFunc") client := meta.(*NetScalerNitroClient).client nshttpprofileName := d.Id() - err := client.DeleteResource(netscaler.Nshttpprofile.Type(), nshttpprofileName) + err := client.DeleteResource(service.Nshttpprofile.Type(), nshttpprofileName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nshttpprofile_test.go b/citrixadc/resource_citrixadc_nshttpprofile_test.go index 4dc6affa6..1d0a298bf 100644 --- a/citrixadc/resource_citrixadc_nshttpprofile_test.go +++ b/citrixadc/resource_citrixadc_nshttpprofile_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -83,7 +83,7 @@ func testAccCheckNshttpprofileExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nshttpprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Nshttpprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -109,7 +109,7 @@ func testAccCheckNshttpprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nshttpprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nshttpprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("NS HTTP Profile %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nsip.go b/citrixadc/resource_citrixadc_nsip.go index f24796d27..763a5e082 100644 --- a/citrixadc/resource_citrixadc_nsip.go +++ b/citrixadc/resource_citrixadc_nsip.go @@ -1,7 +1,8 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -311,7 +312,7 @@ func createNsipFunc(d *schema.ResourceData, meta interface{}) error { Mptcpadvertise: d.Get("mptcpadvertise").(string), } - _, err := client.AddResource(netscaler.Nsip.Type(), ipaddress, &nsip) + _, err := client.AddResource(service.Nsip.Type(), ipaddress, &nsip) if err != nil { return err } @@ -331,7 +332,7 @@ func readNsipFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsipName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsip state %s", nsipName) - data, err := client.FindResource(netscaler.Nsip.Type(), nsipName) + data, err := client.FindResource(service.Nsip.Type(), nsipName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing nsip state %s", nsipName) d.SetId("") @@ -571,7 +572,7 @@ func updateNsipFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Nsip.Type(), ipaddress, &nsip) + _, err := client.UpdateResource(service.Nsip.Type(), ipaddress, &nsip) if err != nil { return fmt.Errorf("Error updating nsip %s: %s", ipaddress, err.Error()) } @@ -590,7 +591,7 @@ func deleteNsipFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteNsipFunc") client := meta.(*NetScalerNitroClient).client ipaddress := d.Id() - err := client.DeleteResource(netscaler.Nsip.Type(), ipaddress) + err := client.DeleteResource(service.Nsip.Type(), ipaddress) if err != nil { return err } @@ -600,7 +601,7 @@ func deleteNsipFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doNsipStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doNsipStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doNsipStateChange") // We need a new instance of the struct since @@ -614,13 +615,13 @@ func doNsipStateChange(d *schema.ResourceData, client *netscaler.NitroClient) er // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Nsip.Type(), nsip, "enable") + err := client.ActOnResource(service.Nsip.Type(), nsip, "enable") if err != nil { return err } // Disable action } else if newstate == "DISABLED" { - err := client.ActOnResource(netscaler.Nsip.Type(), nsip, "disable") + err := client.ActOnResource(service.Nsip.Type(), nsip, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nsip6.go b/citrixadc/resource_citrixadc_nsip6.go index 07a0aeba0..3f77ec2ff 100644 --- a/citrixadc/resource_citrixadc_nsip6.go +++ b/citrixadc/resource_citrixadc_nsip6.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/schema" "errors" @@ -271,7 +271,7 @@ func createNsip6Func(d *schema.ResourceData, meta interface{}) error { Mptcpadvertise: d.Get("mptcpadvertise").(string), } - _, err := client.AddResource(netscaler.Nsip6.Type(), ipv6address, &nsip6) + _, err := client.AddResource(service.Nsip6.Type(), ipv6address, &nsip6) if err != nil { return err } @@ -291,7 +291,7 @@ func readNsip6Func(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client ipv6address := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsip6 state %s", ipv6address) - array, _ := client.FindAllResources(netscaler.Nsip6.Type()) + array, _ := client.FindAllResources(service.Nsip6.Type()) // Iterate over the retrieved addresses to find the particular ipv6address foundAddress := false @@ -523,7 +523,7 @@ func updateNsip6Func(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Nsip6.Type(), "", &nsip6) + _, err := client.UpdateResource(service.Nsip6.Type(), "", &nsip6) if err != nil { return fmt.Errorf("Error updating nsip6 %s", ipv6address) } @@ -540,7 +540,7 @@ func deleteNsip6Func(d *schema.ResourceData, meta interface{}) error { if val, ok := d.GetOk("td"); ok { argsMap["td"] = val.(string) } - err := client.DeleteResourceWithArgsMap(netscaler.Nsip6.Type(), "", argsMap) + err := client.DeleteResourceWithArgsMap(service.Nsip6.Type(), "", argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nsip6_test.go b/citrixadc/resource_citrixadc_nsip6_test.go index 2174342d4..a37ea5651 100644 --- a/citrixadc/resource_citrixadc_nsip6_test.go +++ b/citrixadc/resource_citrixadc_nsip6_test.go @@ -18,10 +18,11 @@ package citrixadc import ( "errors" "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNsip6_basic(t *testing.T) { @@ -102,7 +103,7 @@ func testAccCheckNsip6Exist(n string, id *string, ipv6address string) resource.T nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - array, _ := nsClient.FindAllResources(netscaler.Nsip6.Type()) + array, _ := nsClient.FindAllResources(service.Nsip6.Type()) foundAddress := false for _, item := range array { @@ -131,7 +132,7 @@ func testAccCheckNsip6Destroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nsip6.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nsip6.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nsip_test.go b/citrixadc/resource_citrixadc_nsip_test.go index 00a06d044..0319ac7dc 100644 --- a/citrixadc/resource_citrixadc_nsip_test.go +++ b/citrixadc/resource_citrixadc_nsip_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNsip_basic(t *testing.T) { @@ -107,7 +108,7 @@ func testAccCheckNsipExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nsip.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Nsip.Type(), rs.Primary.ID) if err != nil { return err @@ -133,7 +134,7 @@ func testAccCheckNsipDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nsip.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nsip.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nslicense.go b/citrixadc/resource_citrixadc_nslicense.go index 33e5cef69..f0a0cee60 100644 --- a/citrixadc/resource_citrixadc_nslicense.go +++ b/citrixadc/resource_citrixadc_nslicense.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" diff --git a/citrixadc/resource_citrixadc_nslicenseserver.go b/citrixadc/resource_citrixadc_nslicenseserver.go index f43b1b580..bd04bab89 100644 --- a/citrixadc/resource_citrixadc_nslicenseserver.go +++ b/citrixadc/resource_citrixadc_nslicenseserver.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -51,8 +51,8 @@ func createNslicenseserverFunc(d *schema.ResourceData, meta interface{}) error { nslicenseserver := ns.Nslicenseserver{ Forceupdateip: d.Get("forceupdateip").(bool), - Nodeid: d.Get("nodeid").(int), - Port: d.Get("port").(int), + Nodeid: uint32(d.Get("nodeid").(int)), + Port: uint32(d.Get("port").(int)), Servername: d.Get("servername").(string), } @@ -77,7 +77,7 @@ func readNslicenseserverFunc(d *schema.ResourceData, meta interface{}) error { nslicenseserverId := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nslicenseserver state %s", nslicenseserverId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nslicenseserver", } diff --git a/citrixadc/resource_citrixadc_nslicenseserver_test.go b/citrixadc/resource_citrixadc_nslicenseserver_test.go index f835a9221..c894f18cb 100644 --- a/citrixadc/resource_citrixadc_nslicenseserver_test.go +++ b/citrixadc/resource_citrixadc_nslicenseserver_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNslicenseserver_basic(t *testing.T) { @@ -61,7 +62,7 @@ func testAccCheckNslicenseserverExist(n string, id *string) resource.TestCheckFu *id = rs.Primary.ID } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nslicenseserver", } diff --git a/citrixadc/resource_citrixadc_nsparam.go b/citrixadc/resource_citrixadc_nsparam.go index 6dfbb02b3..075c62f73 100644 --- a/citrixadc/resource_citrixadc_nsparam.go +++ b/citrixadc/resource_citrixadc_nsparam.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -176,27 +176,27 @@ func createNsparamFunc(d *schema.ResourceData, meta interface{}) error { Cipheader: d.Get("cipheader").(string), Cookieversion: d.Get("cookieversion").(string), Crportrange: d.Get("crportrange").(string), - Exclusivequotamaxclient: d.Get("exclusivequotamaxclient").(int), - Exclusivequotaspillover: d.Get("exclusivequotaspillover").(int), + Exclusivequotamaxclient: uint32(d.Get("exclusivequotamaxclient").(int)), + Exclusivequotaspillover: uint32(d.Get("exclusivequotaspillover").(int)), Ftpportrange: d.Get("ftpportrange").(string), - Grantquotamaxclient: d.Get("grantquotamaxclient").(int), - Grantquotaspillover: d.Get("grantquotaspillover").(int), + Grantquotamaxclient: uint32(d.Get("grantquotamaxclient").(int)), + Grantquotaspillover: uint32(d.Get("grantquotaspillover").(int)), Internaluserlogin: d.Get("internaluserlogin").(string), - Maxconn: d.Get("maxconn").(int), - Maxreq: d.Get("maxreq").(int), - Mgmthttpport: d.Get("mgmthttpport").(int), - Mgmthttpsport: d.Get("mgmthttpsport").(int), - Pmtumin: d.Get("pmtumin").(int), - Pmtutimeout: d.Get("pmtutimeout").(int), + Maxconn: uint32(d.Get("maxconn").(int)), + Maxreq: uint32(d.Get("maxreq").(int)), + Mgmthttpport: int32(d.Get("mgmthttpport").(int)), + Mgmthttpsport: int32(d.Get("mgmthttpsport").(int)), + Pmtumin: uint32(d.Get("pmtumin").(int)), + Pmtutimeout: uint32(d.Get("pmtutimeout").(int)), Proxyprotocol: d.Get("proxyprotocol").(string), Securecookie: d.Get("securecookie").(string), - Servicepathingressvlan: d.Get("servicepathingressvlan").(int), + Servicepathingressvlan: uint32(d.Get("servicepathingressvlan").(int)), Tcpcip: d.Get("tcpcip").(string), Timezone: d.Get("timezone").(string), Useproxyport: d.Get("useproxyport").(string), } - err := client.UpdateUnnamedResource(netscaler.Nsparam.Type(), &nsparam) + err := client.UpdateUnnamedResource(service.Nsparam.Type(), &nsparam) if err != nil { return err } @@ -216,7 +216,7 @@ func readNsparamFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsparamName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsparam state %s", nsparamName) - data, err := client.FindResource(netscaler.Nsparam.Type(), "") + data, err := client.FindResource(service.Nsparam.Type(), "") if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing nsparam state %s", nsparamName) d.SetId("") diff --git a/citrixadc/resource_citrixadc_nsparam_test.go b/citrixadc/resource_citrixadc_nsparam_test.go index 6e2671e09..5249950cc 100644 --- a/citrixadc/resource_citrixadc_nsparam_test.go +++ b/citrixadc/resource_citrixadc_nsparam_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNsparam_basic(t *testing.T) { @@ -64,7 +65,7 @@ func testAccCheckNsparamExist(n string, id *string, expectedValues map[string]in } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nsparam.Type(), "") + data, err := nsClient.FindResource(service.Nsparam.Type(), "") if err != nil { return err diff --git a/citrixadc/resource_citrixadc_nsrpcnode.go b/citrixadc/resource_citrixadc_nsrpcnode.go index 41109aad6..95a46a792 100644 --- a/citrixadc/resource_citrixadc_nsrpcnode.go +++ b/citrixadc/resource_citrixadc_nsrpcnode.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -58,7 +58,7 @@ func createNsrpcnodeFunc(d *schema.ResourceData, meta interface{}) error { Srcip: d.Get("srcip").(string), } - err := client.UpdateUnnamedResource(netscaler.Nsrpcnode.Type(), &nsrpcnode) + err := client.UpdateUnnamedResource(service.Nsrpcnode.Type(), &nsrpcnode) if err != nil { return err } @@ -78,7 +78,7 @@ func readNsrpcnodeFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsrpcnodeIpaddress := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsrpcnode state %s", nsrpcnodeIpaddress) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nsrpcnode", ResourceName: nsrpcnodeIpaddress, } @@ -131,7 +131,7 @@ func updateNsrpcnodeFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - err := client.UpdateUnnamedResource(netscaler.Nsrpcnode.Type(), &nsrpcnode) + err := client.UpdateUnnamedResource(service.Nsrpcnode.Type(), &nsrpcnode) if err != nil { return fmt.Errorf("Error updating nsrpcnode %s. %s", nsrpcnodeIpaddress, err.Error()) } diff --git a/citrixadc/resource_citrixadc_nsrpcnode_test.go b/citrixadc/resource_citrixadc_nsrpcnode_test.go index 9865bc4a5..2473564e2 100644 --- a/citrixadc/resource_citrixadc_nsrpcnode_test.go +++ b/citrixadc/resource_citrixadc_nsrpcnode_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNsrpcnode_basic(t *testing.T) { @@ -67,7 +68,7 @@ func testAccCheckNsrpcnodeExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nsrpcnode.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Nsrpcnode.Type(), rs.Primary.ID) if err != nil { return err diff --git a/citrixadc/resource_citrixadc_nstcpparam.go b/citrixadc/resource_citrixadc_nstcpparam.go index 699fbae3a..900568592 100644 --- a/citrixadc/resource_citrixadc_nstcpparam.go +++ b/citrixadc/resource_citrixadc_nstcpparam.go @@ -1,7 +1,8 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -384,7 +385,7 @@ func createNstcpparamFunc(d *schema.ResourceData, meta interface{}) error { Wsval: d.Get("wsval").(string), } - err := client.UpdateUnnamedResource(netscaler.Nstcpparam.Type(), &nstcpparam) + err := client.UpdateUnnamedResource(service.Nstcpparam.Type(), &nstcpparam) if err != nil { return err } @@ -404,7 +405,7 @@ func readNstcpparamFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nstcpparamName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nstcpparam state %s", nstcpparamName) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nstcpparam", } dataArr, err := client.FindResourceArrayWithParams(findParams) diff --git a/citrixadc/resource_citrixadc_nstcpparam_test.go b/citrixadc/resource_citrixadc_nstcpparam_test.go index 168a941c4..042e2c44a 100644 --- a/citrixadc/resource_citrixadc_nstcpparam_test.go +++ b/citrixadc/resource_citrixadc_nstcpparam_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccNstcpparam_basic = ` @@ -289,7 +290,7 @@ func testAccCheckNstcpparamExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nstcpparam.Type(), "") + data, err := nsClient.FindResource(service.Nstcpparam.Type(), "") if err != nil { return err @@ -308,7 +309,7 @@ func testAccCheckTcpparamMapvalues(mapData map[string]string) resource.TestCheck client := testAccProvider.Meta().(*NetScalerNitroClient).client - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nstcpparam", } dataArr, err := client.FindResourceArrayWithParams(findParams) @@ -345,7 +346,7 @@ func testAccCheckNstcpparamDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nstcpparam.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nstcpparam.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("nstcpparam %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nstcpprofile.go b/citrixadc/resource_citrixadc_nstcpprofile.go index ee5e0f1f1..ce4e297bf 100644 --- a/citrixadc/resource_citrixadc_nstcpprofile.go +++ b/citrixadc/resource_citrixadc_nstcpprofile.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -437,7 +437,7 @@ func createNstcpprofileFunc(d *schema.ResourceData, meta interface{}) error { Mpcapablecbit: d.Get("mpcapablecbit").(string), } - _, err := client.AddResource(netscaler.Nstcpprofile.Type(), nstcpprofileName, &nstcpprofile) + _, err := client.AddResource(service.Nstcpprofile.Type(), nstcpprofileName, &nstcpprofile) if err != nil { return err } @@ -457,7 +457,7 @@ func readNstcpprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nstcpprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nstcpprofile state %s", nstcpprofileName) - data, err := client.FindResource(netscaler.Nstcpprofile.Type(), nstcpprofileName) + data, err := client.FindResource(service.Nstcpprofile.Type(), nstcpprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing nstcpprofile state %s", nstcpprofileName) d.SetId("") @@ -816,7 +816,7 @@ func updateNstcpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Nstcpprofile.Type(), nstcpprofileName, &nstcpprofile) + _, err := client.UpdateResource(service.Nstcpprofile.Type(), nstcpprofileName, &nstcpprofile) if err != nil { return fmt.Errorf("Error updating nstcpprofile %s", nstcpprofileName) } @@ -828,7 +828,7 @@ func deleteNstcpprofileFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteNstcpprofileFunc") client := meta.(*NetScalerNitroClient).client nstcpprofileName := d.Id() - err := client.DeleteResource(netscaler.Nstcpprofile.Type(), nstcpprofileName) + err := client.DeleteResource(service.Nstcpprofile.Type(), nstcpprofileName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_nstcpprofile_test.go b/citrixadc/resource_citrixadc_nstcpprofile_test.go index 7f8cb1ff6..1fb580f9d 100644 --- a/citrixadc/resource_citrixadc_nstcpprofile_test.go +++ b/citrixadc/resource_citrixadc_nstcpprofile_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNstcpprofile_basic(t *testing.T) { @@ -95,7 +96,7 @@ func testAccCheckNstcpprofileExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Nstcpprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Nstcpprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -121,7 +122,7 @@ func testAccCheckNstcpprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Nstcpprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Nstcpprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_nsvpxparam.go b/citrixadc/resource_citrixadc_nsvpxparam.go index a9070ff37..353c8f915 100644 --- a/citrixadc/resource_citrixadc_nsvpxparam.go +++ b/citrixadc/resource_citrixadc_nsvpxparam.go @@ -1,7 +1,8 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -78,7 +79,7 @@ func readNsvpxparamFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client nsvpxparamName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading nsvpxparam state %s", nsvpxparamName) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "nsvpxparam", } dataArr, err := client.FindResourceArrayWithParams(findParams) diff --git a/citrixadc/resource_citrixadc_pinger.go b/citrixadc/resource_citrixadc_pinger.go index 94f0a6463..3a714fd1a 100644 --- a/citrixadc/resource_citrixadc_pinger.go +++ b/citrixadc/resource_citrixadc_pinger.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/utility" + "github.com/citrix/adc-nitro-go/resource/config/utility" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -80,14 +80,14 @@ func createPingerFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client pingerId := resource.PrefixedUniqueId("tf-pinger-") ping := utility.Ping{ - C: d.Get("c").(int), + C: uint32(d.Get("c").(int)), HostName: d.Get("hostname").(string), - I: d.Get("i").(int), + I: uint32(d.Get("i").(int)), N: d.Get("n").(bool), P: d.Get("p").(string), Q: d.Get("q").(bool), - S: d.Get("s").(int), - T: d.Get("t").(int), + S: uint32(d.Get("s").(int)), + T: uint32(d.Get("t").(int)), } if err := client.ActOnResource("ping", &ping, ""); err != nil { diff --git a/citrixadc/resource_citrixadc_policydataset.go b/citrixadc/resource_citrixadc_policydataset.go index 1f2e034d6..d72e9ee80 100644 --- a/citrixadc/resource_citrixadc_policydataset.go +++ b/citrixadc/resource_citrixadc_policydataset.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -63,7 +63,7 @@ func createPolicydatasetFunc(d *schema.ResourceData, meta interface{}) error { Type: d.Get("type").(string), } - _, err := client.AddResource(netscaler.Policydataset.Type(), policydatasetName, &policydataset) + _, err := client.AddResource(service.Policydataset.Type(), policydatasetName, &policydataset) if err != nil { return err } @@ -83,7 +83,7 @@ func readPolicydatasetFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client policydatasetName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading policydataset state %s", policydatasetName) - data, err := client.FindResource(netscaler.Policydataset.Type(), policydatasetName) + data, err := client.FindResource(service.Policydataset.Type(), policydatasetName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing policydataset state %s", policydatasetName) d.SetId("") @@ -103,7 +103,7 @@ func deletePolicydatasetFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deletePolicydatasetFunc") client := meta.(*NetScalerNitroClient).client policydatasetName := d.Id() - err := client.DeleteResource(netscaler.Policydataset.Type(), policydatasetName) + err := client.DeleteResource(service.Policydataset.Type(), policydatasetName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policydataset_test.go b/citrixadc/resource_citrixadc_policydataset_test.go index 080360649..5c7fdb6f1 100644 --- a/citrixadc/resource_citrixadc_policydataset_test.go +++ b/citrixadc/resource_citrixadc_policydataset_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccPolicydataset_basic(t *testing.T) { @@ -59,7 +60,7 @@ func testAccCheckPolicydatasetExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Policydataset.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Policydataset.Type(), rs.Primary.ID) if err != nil { return err @@ -85,7 +86,7 @@ func testAccCheckPolicydatasetDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policydataset.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policydataset.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("dataset %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policydataset_value_binding.go b/citrixadc/resource_citrixadc_policydataset_value_binding.go index 93b5370f4..da730ddcf 100644 --- a/citrixadc/resource_citrixadc_policydataset_value_binding.go +++ b/citrixadc/resource_citrixadc_policydataset_value_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -55,12 +55,12 @@ func createPolicydataset_value_bindingFunc(d *schema.ResourceData, meta interfac policydataset_value_binding := policy.Policydatasetvaluebinding{ Comment: d.Get("comment").(string), - Index: d.Get("index").(int), + Index: uint32(d.Get("index").(int)), Name: d.Get("name").(string), Value: d.Get("value").(string), } - err := client.UpdateUnnamedResource(netscaler.Policydataset_value_binding.Type(), &policydataset_value_binding) + err := client.UpdateUnnamedResource(service.Policydataset_value_binding.Type(), &policydataset_value_binding) if err != nil { return err } @@ -95,7 +95,7 @@ func readPolicydataset_value_bindingFunc(d *schema.ResourceData, meta interface{ value := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading servicegroup_lbmonitor_binding state %s", valueBindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policydataset_value_binding", ResourceName: name, ResourceMissingErrorCode: 2823, @@ -151,7 +151,7 @@ func deletePolicydataset_value_bindingFunc(d *schema.ResourceData, meta interfac client := meta.(*NetScalerNitroClient).client args := make(map[string]string) args["value"] = d.Get("value").(string) - err := client.DeleteResourceWithArgsMap(netscaler.Policydataset_value_binding.Type(), d.Get("name").(string), args) + err := client.DeleteResourceWithArgsMap(service.Policydataset_value_binding.Type(), d.Get("name").(string), args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policydataset_value_binding_test.go b/citrixadc/resource_citrixadc_policydataset_value_binding_test.go index 7691d9197..c0932878e 100644 --- a/citrixadc/resource_citrixadc_policydataset_value_binding_test.go +++ b/citrixadc/resource_citrixadc_policydataset_value_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccPolicydataset_value_binding_basic(t *testing.T) { @@ -74,7 +75,7 @@ func testAccCheckPolicydatasetValue(n string) resource.TestCheckFunc { name := idSlice[0] value := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policydataset_value_binding", ResourceName: name, ResourceMissingErrorCode: 2823, @@ -121,7 +122,7 @@ func testAccCheckPolicydataset_value_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policydataset_value_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policydataset_value_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policyexpression.go b/citrixadc/resource_citrixadc_policyexpression.go index ed5387a85..f2ca93ad3 100644 --- a/citrixadc/resource_citrixadc_policyexpression.go +++ b/citrixadc/resource_citrixadc_policyexpression.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -62,7 +62,7 @@ func createPolicyexpressionFunc(d *schema.ResourceData, meta interface{}) error Value: d.Get("value").(string), } - _, err := client.AddResource(netscaler.Policyexpression.Type(), policyexpressionName, &policyexpression) + _, err := client.AddResource(service.Policyexpression.Type(), policyexpressionName, &policyexpression) if err != nil { return err } @@ -82,7 +82,7 @@ func readPolicyexpressionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client policyexpressionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading policyexpression state %s", policyexpressionName) - data, err := client.FindResource(netscaler.Policyexpression.Type(), policyexpressionName) + data, err := client.FindResource(service.Policyexpression.Type(), policyexpressionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing policyexpression state %s", policyexpressionName) d.SetId("") @@ -135,7 +135,7 @@ func updatePolicyexpressionFunc(d *schema.ResourceData, meta interface{}) error } if hasChange { - _, err := client.UpdateResource(netscaler.Policyexpression.Type(), policyexpressionName, &policyexpression) + _, err := client.UpdateResource(service.Policyexpression.Type(), policyexpressionName, &policyexpression) if err != nil { return fmt.Errorf("Error updating policyexpression %s: %s", policyexpressionName, err.Error()) } @@ -147,7 +147,7 @@ func deletePolicyexpressionFunc(d *schema.ResourceData, meta interface{}) error log.Printf("[DEBUG] citrixadc-provider: In deletePolicyexpressionFunc") client := meta.(*NetScalerNitroClient).client policyexpressionName := d.Id() - err := client.DeleteResource(netscaler.Policyexpression.Type(), policyexpressionName) + err := client.DeleteResource(service.Policyexpression.Type(), policyexpressionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policyexpression_test.go b/citrixadc/resource_citrixadc_policyexpression_test.go index b98a44b07..6fe45aa46 100644 --- a/citrixadc/resource_citrixadc_policyexpression_test.go +++ b/citrixadc/resource_citrixadc_policyexpression_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccPolicyexpression_advanced(t *testing.T) { @@ -99,7 +100,7 @@ func testAccCheckPolicyexpressionExist(n string, id *string) resource.TestCheckF } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Policyexpression.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Policyexpression.Type(), rs.Primary.ID) if err != nil { return err @@ -125,7 +126,7 @@ func testAccCheckPolicyexpressionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policyexpression.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policyexpression.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policypatset.go b/citrixadc/resource_citrixadc_policypatset.go index dcf66746d..164dd263e 100644 --- a/citrixadc/resource_citrixadc_policypatset.go +++ b/citrixadc/resource_citrixadc_policypatset.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -47,7 +47,7 @@ func createPolicypatsetFunc(d *schema.ResourceData, meta interface{}) error { Name: d.Get("name").(string), } - _, err := client.AddResource(netscaler.Policypatset.Type(), policypatsetName, &policypatset) + _, err := client.AddResource(service.Policypatset.Type(), policypatsetName, &policypatset) if err != nil { return err } @@ -67,7 +67,7 @@ func readPolicypatsetFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client policypatsetName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading policypatset state %s", policypatsetName) - data, err := client.FindResource(netscaler.Policypatset.Type(), policypatsetName) + data, err := client.FindResource(service.Policypatset.Type(), policypatsetName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing policypatset state %s", policypatsetName) d.SetId("") @@ -86,7 +86,7 @@ func deletePolicypatsetFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deletePolicypatsetFunc") client := meta.(*NetScalerNitroClient).client policypatsetName := d.Id() - err := client.DeleteResource(netscaler.Policypatset.Type(), policypatsetName) + err := client.DeleteResource(service.Policypatset.Type(), policypatsetName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policypatset_pattern_binding.go b/citrixadc/resource_citrixadc_policypatset_pattern_binding.go index 84b14ac9c..53b56bd53 100644 --- a/citrixadc/resource_citrixadc_policypatset_pattern_binding.go +++ b/citrixadc/resource_citrixadc_policypatset_pattern_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -68,12 +68,12 @@ func createPolicypatset_pattern_bindingFunc(d *schema.ResourceData, meta interfa Charset: d.Get("charset").(string), Comment: d.Get("comment").(string), Feature: d.Get("feature").(string), - Index: d.Get("index").(int), + Index: uint32(d.Get("index").(int)), Name: d.Get("name").(string), String: d.Get("string").(string), } - err := client.UpdateUnnamedResource(netscaler.Policypatset_pattern_binding.Type(), &policypatset_pattern_binding) + err := client.UpdateUnnamedResource(service.Policypatset_pattern_binding.Type(), &policypatset_pattern_binding) if err != nil { return err } @@ -100,7 +100,7 @@ func readPolicypatset_pattern_bindingFunc(d *schema.ResourceData, meta interface stringText := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading policypatset_pattern_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policypatset_pattern_binding", ResourceName: name, ResourceMissingErrorCode: 2823, @@ -164,7 +164,7 @@ func deletePolicypatset_pattern_bindingFunc(d *schema.ResourceData, meta interfa argsMap := make(map[string]string) argsMap["String"] = url.QueryEscape(stringText) - err := client.DeleteResourceWithArgsMap(netscaler.Policypatset_pattern_binding.Type(), name, argsMap) + err := client.DeleteResourceWithArgsMap(service.Policypatset_pattern_binding.Type(), name, argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go b/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go index b877a7c0c..e3bbd8913 100644 --- a/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go +++ b/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccPolicypatset_pattern_binding_basic_step1 = ` @@ -102,7 +103,7 @@ func testAccCheckPolicypatset_pattern_bindingExist(n string, id *string) resourc name := idSlice[0] stringText := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policypatset_pattern_binding", ResourceName: name, ResourceMissingErrorCode: 2823, @@ -144,7 +145,7 @@ func testAccCheckPolicypatset_pattern_bindingDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policypatset_pattern_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policypatset_pattern_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("policypatset_pattern_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policypatset_test.go b/citrixadc/resource_citrixadc_policypatset_test.go index 086fd40ab..7e2579a39 100644 --- a/citrixadc/resource_citrixadc_policypatset_test.go +++ b/citrixadc/resource_citrixadc_policypatset_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccPolicypatset_basic_step1 = ` @@ -83,7 +84,7 @@ func testAccCheckPolicypatsetExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Policypatset.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Policypatset.Type(), rs.Primary.ID) if err != nil { return err @@ -109,7 +110,7 @@ func testAccCheckPolicypatsetDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policypatset.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policypatset.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("policypatset %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policystringmap.go b/citrixadc/resource_citrixadc_policystringmap.go index 25289c2ad..95e4c270d 100644 --- a/citrixadc/resource_citrixadc_policystringmap.go +++ b/citrixadc/resource_citrixadc_policystringmap.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -42,7 +42,7 @@ func createPolicystringmapFunc(d *schema.ResourceData, meta interface{}) error { Name: d.Get("name").(string), } - _, err := client.AddResource(netscaler.Policystringmap.Type(), policystringmapName, &policystringmap) + _, err := client.AddResource(service.Policystringmap.Type(), policystringmapName, &policystringmap) if err != nil { return err } @@ -62,7 +62,7 @@ func readPolicystringmapFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client policystringmapName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading policystringmap state %s", policystringmapName) - data, err := client.FindResource(netscaler.Policystringmap.Type(), policystringmapName) + data, err := client.FindResource(service.Policystringmap.Type(), policystringmapName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing policystringmap state %s", policystringmapName) d.SetId("") @@ -96,7 +96,7 @@ func updatePolicystringmapFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Policystringmap.Type(), policystringmapName, &policystringmap) + _, err := client.UpdateResource(service.Policystringmap.Type(), policystringmapName, &policystringmap) if err != nil { return fmt.Errorf("Error updating policystringmap %s", policystringmapName) } @@ -108,7 +108,7 @@ func deletePolicystringmapFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deletePolicystringmapFunc") client := meta.(*NetScalerNitroClient).client policystringmapName := d.Id() - err := client.DeleteResource(netscaler.Policystringmap.Type(), policystringmapName) + err := client.DeleteResource(service.Policystringmap.Type(), policystringmapName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_policystringmap_pattern_binding.go b/citrixadc/resource_citrixadc_policystringmap_pattern_binding.go index d7a08f6dd..2404d024f 100644 --- a/citrixadc/resource_citrixadc_policystringmap_pattern_binding.go +++ b/citrixadc/resource_citrixadc_policystringmap_pattern_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/policy" + "github.com/citrix/adc-nitro-go/resource/config/policy" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -52,7 +52,7 @@ func createPolicystringmap_pattern_bindingFunc(d *schema.ResourceData, meta inte Value: d.Get("value").(string), } - _, err := client.AddResource(netscaler.Policystringmap_pattern_binding.Type(), name, &policystringmap_pattern_binding) + _, err := client.AddResource(service.Policystringmap_pattern_binding.Type(), name, &policystringmap_pattern_binding) if err != nil { return err } @@ -76,7 +76,7 @@ func readPolicystringmap_pattern_bindingFunc(d *schema.ResourceData, meta interf key := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading policystringmap_pattern_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policystringmap_pattern_binding", ResourceName: name, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go b/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go index 822e76d34..26ea2bcaf 100644 --- a/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go +++ b/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccPolicystringmap_pattern_binding_basic_step1 = ` @@ -114,7 +115,7 @@ func testAccCheckPolicystringmap_pattern_bindingExist(n string, id *string) reso name := idSlice[0] key := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "policystringmap_pattern_binding", ResourceName: name, ResourceMissingErrorCode: 258, @@ -153,7 +154,7 @@ func testAccCheckPolicystringmap_pattern_bindingDestroy(s *terraform.State) erro return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policystringmap_pattern_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policystringmap_pattern_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("policystringmap_pattern_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_policystringmap_test.go b/citrixadc/resource_citrixadc_policystringmap_test.go index 0f72ff50e..0b40c2b5a 100644 --- a/citrixadc/resource_citrixadc_policystringmap_test.go +++ b/citrixadc/resource_citrixadc_policystringmap_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccPolicystringmap_basic_step1 = ` @@ -81,7 +82,7 @@ func testAccCheckPolicystringmapExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Policystringmap.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Policystringmap.Type(), rs.Primary.ID) if err != nil { return err @@ -107,7 +108,7 @@ func testAccCheckPolicystringmapDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Policystringmap.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Policystringmap.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("policystringmap %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_rebooter.go b/citrixadc/resource_citrixadc_rebooter.go index 513baad3e..f9d53eff1 100644 --- a/citrixadc/resource_citrixadc_rebooter.go +++ b/citrixadc/resource_citrixadc_rebooter.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/ns" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" diff --git a/citrixadc/resource_citrixadc_rebooter_test.go b/citrixadc/resource_citrixadc_rebooter_test.go index f7c9027d5..3cc8b98e2 100644 --- a/citrixadc/resource_citrixadc_rebooter_test.go +++ b/citrixadc/resource_citrixadc_rebooter_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccReboot_basic(t *testing.T) { @@ -80,7 +81,7 @@ func testAccCheckRebootDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Reboot.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Reboot.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_responderaction.go b/citrixadc/resource_citrixadc_responderaction.go index 41d6195d3..bdcee6bf7 100644 --- a/citrixadc/resource_citrixadc_responderaction.go +++ b/citrixadc/resource_citrixadc_responderaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/responder" + "github.com/citrix/adc-nitro-go/resource/config/responder" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -85,12 +85,12 @@ func createResponderactionFunc(d *schema.ResourceData, meta interface{}) error { Htmlpage: d.Get("htmlpage").(string), Name: d.Get("name").(string), Reasonphrase: d.Get("reasonphrase").(string), - Responsestatuscode: d.Get("responsestatuscode").(int), + Responsestatuscode: uint32(d.Get("responsestatuscode").(int)), Target: d.Get("target").(string), Type: d.Get("type").(string), } - _, err := client.AddResource(netscaler.Responderaction.Type(), responderactionName, &responderaction) + _, err := client.AddResource(service.Responderaction.Type(), responderactionName, &responderaction) if err != nil { return err } @@ -110,7 +110,7 @@ func readResponderactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client responderactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading responderaction state %s", responderactionName) - data, err := client.FindResource(netscaler.Responderaction.Type(), responderactionName) + data, err := client.FindResource(service.Responderaction.Type(), responderactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing responderaction state %s", responderactionName) d.SetId("") @@ -166,7 +166,7 @@ func updateResponderactionFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("responsestatuscode") { log.Printf("[DEBUG] citrixadc-provider: Responsestatuscode has changed for responderaction %s, starting update", responderactionName) - responderaction.Responsestatuscode = d.Get("responsestatuscode").(int) + responderaction.Responsestatuscode = uint32(d.Get("responsestatuscode").(int)) hasChange = true } if d.HasChange("target") { @@ -181,7 +181,7 @@ func updateResponderactionFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Responderaction.Type(), responderactionName, &responderaction) + _, err := client.UpdateResource(service.Responderaction.Type(), responderactionName, &responderaction) if err != nil { return fmt.Errorf("Error updating responderaction %s", responderactionName) } @@ -193,7 +193,7 @@ func deleteResponderactionFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteResponderactionFunc") client := meta.(*NetScalerNitroClient).client responderactionName := d.Id() - err := client.DeleteResource(netscaler.Responderaction.Type(), responderactionName) + err := client.DeleteResource(service.Responderaction.Type(), responderactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_responderaction_test.go b/citrixadc/resource_citrixadc_responderaction_test.go index 7f268d8df..7f80a8b8e 100644 --- a/citrixadc/resource_citrixadc_responderaction_test.go +++ b/citrixadc/resource_citrixadc_responderaction_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/responder" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/resource/config/responder" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccResponderaction_basic(t *testing.T) { @@ -99,7 +100,7 @@ func testAccCheckResponderactionExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Responderaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Responderaction.Type(), rs.Primary.ID) if err != nil { return err @@ -125,7 +126,7 @@ func testAccCheckResponderactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Responderaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Responderaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -168,7 +169,7 @@ func doResponderactionPreChecks(t *testing.T) { pages = append(pages, otherErrorPage) for _, page := range pages { - if err := c.client.ActOnResource(netscaler.Responderhtmlpage.Type(), page, "Import"); err != nil { + if err := c.client.ActOnResource(service.Responderhtmlpage.Type(), page, "Import"); err != nil { if !strings.Contains(err.Error(), "Object already exists") { t.Errorf(err.Error()) } diff --git a/citrixadc/resource_citrixadc_responderpolicy.go b/citrixadc/resource_citrixadc_responderpolicy.go index 811d70357..4559dfb7b 100644 --- a/citrixadc/resource_citrixadc_responderpolicy.go +++ b/citrixadc/resource_citrixadc_responderpolicy.go @@ -1,11 +1,11 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/config/responder" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/responder" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -75,11 +75,6 @@ func resourceCitrixAdcResponderpolicy() *schema.Resource { Optional: true, Computed: true, }, - "invoke": &schema.Schema{ - Type: schema.TypeBool, - Optional: true, - Computed: true, - }, "labelname": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -100,11 +95,6 @@ func resourceCitrixAdcResponderpolicy() *schema.Resource { Optional: true, Computed: true, }, - "type": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - }, }, }, }, @@ -231,7 +221,7 @@ func createResponderpolicyFunc(d *schema.ResourceData, meta interface{}) error { Undefaction: d.Get("undefaction").(string), } - _, err := client.AddResource(netscaler.Responderpolicy.Type(), responderpolicyName, &responderpolicy) + _, err := client.AddResource(service.Responderpolicy.Type(), responderpolicyName, &responderpolicy) if err != nil { return err } @@ -263,7 +253,7 @@ func readResponderpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client responderpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading responderpolicy state %s", responderpolicyName) - data, err := client.FindResource(netscaler.Responderpolicy.Type(), responderpolicyName) + data, err := client.FindResource(service.Responderpolicy.Type(), responderpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing responderpolicy state %s", responderpolicyName) d.SetId("") @@ -343,7 +333,7 @@ func updateResponderpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Responderpolicy.Type(), responderpolicyName, &responderpolicy) + _, err := client.UpdateResource(service.Responderpolicy.Type(), responderpolicyName, &responderpolicy) if err != nil { return fmt.Errorf("Error updating responderpolicy %s", responderpolicyName) } @@ -384,7 +374,7 @@ func deleteResponderpolicyFunc(d *schema.ResourceData, meta interface{}) error { // Delete policy responderpolicyName := d.Id() - err := client.DeleteResource(netscaler.Responderpolicy.Type(), responderpolicyName) + err := client.DeleteResource(service.Responderpolicy.Type(), responderpolicyName) if err != nil { return err } @@ -423,14 +413,11 @@ func addSingleGlobalBinding(d *schema.ResourceData, meta interface{}, binding ma client := meta.(*NetScalerNitroClient).client - bindingStruct := responder.Responderglobalresponderpolicybinding{} - bindingStruct.Policyname = d.Get("name").(string) + bindingStruct := responder.Responderpolicyglobalbinding{} + bindingStruct.Name = d.Get("name").(string) if d, ok := binding["gotopriorityexpression"]; ok { bindingStruct.Gotopriorityexpression = d.(string) } - if d, ok := binding["invoke"]; ok { - bindingStruct.Invoke = d.(bool) - } if d, ok := binding["labelname"]; ok { log.Printf("Labelname %v\n", d) bindingStruct.Labelname = d.(string) @@ -440,11 +427,7 @@ func addSingleGlobalBinding(d *schema.ResourceData, meta interface{}, binding ma bindingStruct.Labeltype = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) - } - if d, ok := binding["type"]; ok { - log.Printf("Type %v\n", d) - bindingStruct.Type = d.(string) + bindingStruct.Priority = uint32(d.(int)) } if err := client.UpdateUnnamedResource("responderglobal_responderpolicy_binding", bindingStruct); err != nil { @@ -755,7 +738,7 @@ func addSingleLbvserverBinding(d *schema.ResourceData, meta interface{}, binding log.Printf("[DEBUG] citrixadc-provider: In addSingleLbvserverBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := lb.Lbvserverresponderpolicybinding{} + bindingStruct := lb.Lbvserverpolicybinding{} bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["bindpoint"]; ok { @@ -778,7 +761,7 @@ func addSingleLbvserverBinding(d *schema.ResourceData, meta interface{}, binding bindingStruct.Name = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource @@ -911,7 +894,7 @@ func addSingleCsvserverBinding(d *schema.ResourceData, meta interface{}, binding log.Printf("[DEBUG] citrixadc-provider: In addSingleCsvserverBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := cs.Csvserverresponderpolicybinding{} + bindingStruct := cs.Csvserverpolicybinding{} bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["bindpoint"]; ok { @@ -934,7 +917,7 @@ func addSingleCsvserverBinding(d *schema.ResourceData, meta interface{}, binding bindingStruct.Name = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource diff --git a/citrixadc/resource_citrixadc_responderpolicy_test.go b/citrixadc/resource_citrixadc_responderpolicy_test.go index 5f89bfae1..f7cdc4718 100644 --- a/citrixadc/resource_citrixadc_responderpolicy_test.go +++ b/citrixadc/resource_citrixadc_responderpolicy_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccResponderpolicy_globalbinding(t *testing.T) { @@ -75,7 +76,7 @@ func testAccCheckResponderpolicyExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Responderpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Responderpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -159,7 +160,7 @@ func testAccCheckResponderpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Responderpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Responderpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_responderpolicylabel.go b/citrixadc/resource_citrixadc_responderpolicylabel.go index 5e944f6c3..9beb76530 100644 --- a/citrixadc/resource_citrixadc_responderpolicylabel.go +++ b/citrixadc/resource_citrixadc_responderpolicylabel.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/responder" + "github.com/citrix/adc-nitro-go/resource/config/responder" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -51,7 +51,7 @@ func createResponderpolicylabelFunc(d *schema.ResourceData, meta interface{}) er Policylabeltype: d.Get("policylabeltype").(string), } - _, err := client.AddResource(netscaler.Responderpolicylabel.Type(), responderpolicylabelName, &responderpolicylabel) + _, err := client.AddResource(service.Responderpolicylabel.Type(), responderpolicylabelName, &responderpolicylabel) if err != nil { return err } @@ -71,7 +71,7 @@ func readResponderpolicylabelFunc(d *schema.ResourceData, meta interface{}) erro client := meta.(*NetScalerNitroClient).client responderpolicylabelName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading responderpolicylabel state %s", responderpolicylabelName) - data, err := client.FindResource(netscaler.Responderpolicylabel.Type(), responderpolicylabelName) + data, err := client.FindResource(service.Responderpolicylabel.Type(), responderpolicylabelName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing responderpolicylabel state %s", responderpolicylabelName) d.SetId("") @@ -89,7 +89,7 @@ func deleteResponderpolicylabelFunc(d *schema.ResourceData, meta interface{}) er log.Printf("[DEBUG] citrixadc-provider: In deleteResponderpolicylabelFunc") client := meta.(*NetScalerNitroClient).client responderpolicylabelName := d.Id() - err := client.DeleteResource(netscaler.Responderpolicylabel.Type(), responderpolicylabelName) + err := client.DeleteResource(service.Responderpolicylabel.Type(), responderpolicylabelName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_responderpolicylabel_test.go b/citrixadc/resource_citrixadc_responderpolicylabel_test.go index f218ba395..4f367df34 100644 --- a/citrixadc/resource_citrixadc_responderpolicylabel_test.go +++ b/citrixadc/resource_citrixadc_responderpolicylabel_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccResponderpolicylabel_basic(t *testing.T) { @@ -59,7 +60,7 @@ func testAccCheckResponderpolicylabelExist(n string, id *string) resource.TestCh } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Responderpolicylabel.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Responderpolicylabel.Type(), rs.Primary.ID) if err != nil { return err @@ -85,7 +86,7 @@ func testAccCheckResponderpolicylabelDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Responderpolicylabel.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Responderpolicylabel.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_rewriteaction.go b/citrixadc/resource_citrixadc_rewriteaction.go index c1d2e4b0d..4c62b162c 100644 --- a/citrixadc/resource_citrixadc_rewriteaction.go +++ b/citrixadc/resource_citrixadc_rewriteaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/rewrite" + "github.com/citrix/adc-nitro-go/resource/config/rewrite" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -95,7 +95,7 @@ func createRewriteactionFunc(d *schema.ResourceData, meta interface{}) error { Type: d.Get("type").(string), } - _, err := client.AddResource(netscaler.Rewriteaction.Type(), rewriteactionName, &rewriteaction) + _, err := client.AddResource(service.Rewriteaction.Type(), rewriteactionName, &rewriteaction) if err != nil { return err } @@ -115,7 +115,7 @@ func readRewriteactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client rewriteactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading rewriteaction state %s", rewriteactionName) - data, err := client.FindResource(netscaler.Rewriteaction.Type(), rewriteactionName) + data, err := client.FindResource(service.Rewriteaction.Type(), rewriteactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing rewriteaction state %s", rewriteactionName) d.SetId("") @@ -192,7 +192,7 @@ func updateRewriteactionFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Rewriteaction.Type(), rewriteactionName, &rewriteaction) + _, err := client.UpdateResource(service.Rewriteaction.Type(), rewriteactionName, &rewriteaction) if err != nil { return fmt.Errorf("Error updating rewriteaction %s.\n%s", rewriteactionName, err) } @@ -204,7 +204,7 @@ func deleteRewriteactionFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteRewriteactionFunc") client := meta.(*NetScalerNitroClient).client rewriteactionName := d.Id() - err := client.DeleteResource(netscaler.Rewriteaction.Type(), rewriteactionName) + err := client.DeleteResource(service.Rewriteaction.Type(), rewriteactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_rewriteaction_test.go b/citrixadc/resource_citrixadc_rewriteaction_test.go index a5d88b3eb..70db83320 100644 --- a/citrixadc/resource_citrixadc_rewriteaction_test.go +++ b/citrixadc/resource_citrixadc_rewriteaction_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccRewriteaction_basic(t *testing.T) { @@ -65,7 +66,7 @@ func testAccCheckRewriteactionExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Rewriteaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Rewriteaction.Type(), rs.Primary.ID) if err != nil { return err @@ -91,7 +92,7 @@ func testAccCheckRewriteactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Rewriteaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Rewriteaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_rewritepolicy.go b/citrixadc/resource_citrixadc_rewritepolicy.go index 3100559e5..6ea039b16 100644 --- a/citrixadc/resource_citrixadc_rewritepolicy.go +++ b/citrixadc/resource_citrixadc_rewritepolicy.go @@ -1,11 +1,11 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/cs" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/config/rewrite" + "github.com/citrix/adc-nitro-go/resource/config/cs" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/rewrite" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -75,11 +75,6 @@ func resourceCitrixAdcRewritepolicy() *schema.Resource { Optional: true, Computed: true, }, - "invoke": &schema.Schema{ - Type: schema.TypeBool, - Optional: true, - Computed: true, - }, "labelname": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -100,11 +95,6 @@ func resourceCitrixAdcRewritepolicy() *schema.Resource { Optional: true, Computed: true, }, - "type": &schema.Schema{ - Type: schema.TypeString, - Optional: true, - Computed: true, - }, }, }, }, @@ -226,7 +216,7 @@ func createRewritepolicyFunc(d *schema.ResourceData, meta interface{}) error { Undefaction: d.Get("undefaction").(string), } - _, err := client.AddResource(netscaler.Rewritepolicy.Type(), rewritepolicyName, &rewritepolicy) + _, err := client.AddResource(service.Rewritepolicy.Type(), rewritepolicyName, &rewritepolicy) if err != nil { return err } @@ -259,7 +249,7 @@ func readRewritepolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client rewritepolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading rewritepolicy state %s", rewritepolicyName) - data, err := client.FindResource(netscaler.Rewritepolicy.Type(), rewritepolicyName) + data, err := client.FindResource(service.Rewritepolicy.Type(), rewritepolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing rewritepolicy state %s", rewritepolicyName) d.SetId("") @@ -335,7 +325,7 @@ func updateRewritepolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Rewritepolicy.Type(), rewritepolicyName, &rewritepolicy) + _, err := client.UpdateResource(service.Rewritepolicy.Type(), rewritepolicyName, &rewritepolicy) if err != nil { return fmt.Errorf("Error updating rewritepolicy %s", rewritepolicyName) } @@ -375,7 +365,7 @@ func deleteRewritepolicyFunc(d *schema.ResourceData, meta interface{}) error { return err } - err := client.DeleteResource(netscaler.Rewritepolicy.Type(), rewritepolicyName) + err := client.DeleteResource(service.Rewritepolicy.Type(), rewritepolicyName) if err != nil { return err } @@ -414,14 +404,11 @@ func addSingleRewriteGlobalBinding(d *schema.ResourceData, meta interface{}, bin client := meta.(*NetScalerNitroClient).client - bindingStruct := rewrite.Rewriteglobalrewritepolicybinding{} - bindingStruct.Policyname = d.Get("name").(string) + bindingStruct := rewrite.Rewritepolicyglobalbinding{} + bindingStruct.Name = d.Get("name").(string) if d, ok := binding["gotopriorityexpression"]; ok { bindingStruct.Gotopriorityexpression = d.(string) } - if d, ok := binding["invoke"]; ok { - bindingStruct.Invoke = d.(bool) - } if d, ok := binding["labelname"]; ok { log.Printf("Labelname %v\n", d) bindingStruct.Labelname = d.(string) @@ -431,11 +418,7 @@ func addSingleRewriteGlobalBinding(d *schema.ResourceData, meta interface{}, bin bindingStruct.Labeltype = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) - } - if d, ok := binding["type"]; ok { - log.Printf("Type %v\n", d) - bindingStruct.Type = d.(string) + bindingStruct.Priority = uint32(d.(int)) } if err := client.UpdateUnnamedResource("rewriteglobal_rewritepolicy_binding", bindingStruct); err != nil { @@ -736,7 +719,7 @@ func addSingleRewriteLbvserverBinding(d *schema.ResourceData, meta interface{}, log.Printf("[DEBUG] citrixadc-provider: In addSingleRewriteLbvserverBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := lb.Lbvserverrewritepolicybinding{} + bindingStruct := lb.Lbvserverpolicybinding{} bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["bindpoint"]; ok { @@ -759,7 +742,7 @@ func addSingleRewriteLbvserverBinding(d *schema.ResourceData, meta interface{}, bindingStruct.Name = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource @@ -892,7 +875,7 @@ func addSingleRewriteCsvserverBinding(d *schema.ResourceData, meta interface{}, log.Printf("[DEBUG] citrixadc-provider: In addSingleRewriteCsvserverBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := cs.Csvserverrewritepolicybinding{} + bindingStruct := cs.Csvserverpolicybinding{} bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["bindpoint"]; ok { @@ -915,7 +898,7 @@ func addSingleRewriteCsvserverBinding(d *schema.ResourceData, meta interface{}, bindingStruct.Name = d.(string) } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource diff --git a/citrixadc/resource_citrixadc_rewritepolicy_test.go b/citrixadc/resource_citrixadc_rewritepolicy_test.go index 76574eb48..7bb3d34fc 100644 --- a/citrixadc/resource_citrixadc_rewritepolicy_test.go +++ b/citrixadc/resource_citrixadc_rewritepolicy_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccRewritepolicy_globalbinding(t *testing.T) { @@ -146,7 +147,7 @@ func testAccCheckRewritepolicyExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Rewritepolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Rewritepolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -172,7 +173,7 @@ func testAccCheckRewritepolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Rewritepolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Rewritepolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_rewritepolicylabel.go b/citrixadc/resource_citrixadc_rewritepolicylabel.go index 061ee2527..f2e57f0ce 100644 --- a/citrixadc/resource_citrixadc_rewritepolicylabel.go +++ b/citrixadc/resource_citrixadc_rewritepolicylabel.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/rewrite" + "github.com/citrix/adc-nitro-go/resource/config/rewrite" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -52,7 +52,7 @@ func createRewritepolicylabelFunc(d *schema.ResourceData, meta interface{}) erro Transform: d.Get("transform").(string), } - _, err := client.AddResource(netscaler.Rewritepolicylabel.Type(), rewritepolicylabelName, &rewritepolicylabel) + _, err := client.AddResource(service.Rewritepolicylabel.Type(), rewritepolicylabelName, &rewritepolicylabel) if err != nil { return err } @@ -72,7 +72,7 @@ func readRewritepolicylabelFunc(d *schema.ResourceData, meta interface{}) error client := meta.(*NetScalerNitroClient).client rewritepolicylabelName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading rewritepolicylabel state %s", rewritepolicylabelName) - data, err := client.FindResource(netscaler.Rewritepolicylabel.Type(), rewritepolicylabelName) + data, err := client.FindResource(service.Rewritepolicylabel.Type(), rewritepolicylabelName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing rewritepolicylabel state %s", rewritepolicylabelName) d.SetId("") @@ -91,7 +91,7 @@ func deleteRewritepolicylabelFunc(d *schema.ResourceData, meta interface{}) erro log.Printf("[DEBUG] citrixadc-provider: In deleteRewritepolicylabelFunc") client := meta.(*NetScalerNitroClient).client rewritepolicylabelName := d.Id() - err := client.DeleteResource(netscaler.Rewritepolicylabel.Type(), rewritepolicylabelName) + err := client.DeleteResource(service.Rewritepolicylabel.Type(), rewritepolicylabelName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_rewritepolicylabel_test.go b/citrixadc/resource_citrixadc_rewritepolicylabel_test.go index 0d315cf99..c6b5548bd 100644 --- a/citrixadc/resource_citrixadc_rewritepolicylabel_test.go +++ b/citrixadc/resource_citrixadc_rewritepolicylabel_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccRewritepolicylabel_basic(t *testing.T) { @@ -59,7 +60,7 @@ func testAccCheckRewritepolicylabelExist(n string, id *string) resource.TestChec } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Rewritepolicylabel.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Rewritepolicylabel.Type(), rs.Primary.ID) if err != nil { return err @@ -85,7 +86,7 @@ func testAccCheckRewritepolicylabelDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Rewritepolicylabel.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Rewritepolicylabel.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_rnat.go b/citrixadc/resource_citrixadc_rnat.go index 933938994..2ec40414f 100644 --- a/citrixadc/resource_citrixadc_rnat.go +++ b/citrixadc/resource_citrixadc_rnat.go @@ -1,12 +1,12 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" - "github.com/mitchellh/mapstructure" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" + "github.com/mitchellh/mapstructure" "log" ) @@ -100,7 +100,7 @@ func readRnatsFunc(d *schema.ResourceData, meta interface{}) error { rnatName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading rnat state %s", rnatName) - data, _ := client.FindAllResources(netscaler.Rnat.Type()) + data, _ := client.FindAllResources(service.Rnat.Type()) rnats := make([]map[string]interface{}, len(data)) for i, a := range data { rnats[i] = a @@ -168,7 +168,7 @@ func createSingleRnat(rnat map[string]interface{}, meta interface{}) error { rnat2 := network.Rnat{} mapstructure.Decode(rnat, &rnat2) - err := client.UpdateUnnamedResource(netscaler.Rnat.Type(), &rnat2) + err := client.UpdateUnnamedResource(service.Rnat.Type(), &rnat2) if err != nil { return err } @@ -181,7 +181,7 @@ func deleteSingleRnat(rnat map[string]interface{}, meta interface{}) error { rnat2 := network.Rnat{} mapstructure.Decode(rnat, &rnat2) client := meta.(*NetScalerNitroClient).client - err := client.ActOnResource(netscaler.Rnat.Type(), rnat2, "clear") + err := client.ActOnResource(service.Rnat.Type(), rnat2, "clear") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_rnat_test.go b/citrixadc/resource_citrixadc_rnat_test.go index a1291cb95..96bfb689a 100644 --- a/citrixadc/resource_citrixadc_rnat_test.go +++ b/citrixadc/resource_citrixadc_rnat_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccRnat_basic(t *testing.T) { @@ -59,7 +60,7 @@ func testAccCheckRnatExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - d, err := nsClient.FindFilteredResourceArray(netscaler.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) + d, err := nsClient.FindFilteredResourceArray(service.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) if err != nil { return err @@ -85,7 +86,7 @@ func testAccCheckRnatDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindFilteredResourceArray(netscaler.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) + _, err := nsClient.FindFilteredResourceArray(service.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) if err == nil { return fmt.Errorf("Rnat rule %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_route.go b/citrixadc/resource_citrixadc_route.go index 709fde98d..3f23deddb 100644 --- a/citrixadc/resource_citrixadc_route.go +++ b/citrixadc/resource_citrixadc_route.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -109,10 +109,10 @@ func createRouteFunc(d *schema.ResourceData, meta interface{}) error { route := network.Route{ Advertise: d.Get("advertise").(string), - Cost: d.Get("cost").(int), - Cost1: d.Get("cost1").(int), + Cost: uint32(d.Get("cost").(int)), + Cost1: uint32(d.Get("cost1").(int)), Detail: d.Get("detail").(bool), - Distance: d.Get("distance").(int), + Distance: uint32(d.Get("distance").(int)), Gateway: d.Get("gateway").(string), Monitor: d.Get("monitor").(string), Msr: d.Get("msr").(string), @@ -120,12 +120,12 @@ func createRouteFunc(d *schema.ResourceData, meta interface{}) error { Network: d.Get("network").(string), Ownergroup: d.Get("ownergroup").(string), Routetype: d.Get("routetype").(string), - Td: d.Get("td").(int), - Vlan: d.Get("vlan").(int), - Weight: d.Get("weight").(int), + Td: uint32(d.Get("td").(int)), + Vlan: uint32(d.Get("vlan").(int)), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Route.Type(), route.Network, &route) + _, err := client.AddResource(service.Route.Type(), route.Network, &route) if err != nil { return err } @@ -149,8 +149,8 @@ func readRouteFunc(d *schema.ResourceData, meta interface{}) error { argsMap["network"] = url.QueryEscape(d.Get("network").(string)) argsMap["netmask"] = url.QueryEscape(d.Get("netmask").(string)) argsMap["gateway"] = url.QueryEscape(d.Get("gateway").(string)) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Route.Type(), + findParams := service.FindParams{ + ResourceType: service.Route.Type(), ArgsMap: argsMap, } dataArray, err := client.FindResourceArrayWithParams(findParams) @@ -205,12 +205,12 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cost") { log.Printf("[DEBUG] citrixadc-provider: Cost has changed for route %s, starting update", routeName) - route.Cost = d.Get("cost").(int) + route.Cost = uint32(d.Get("cost").(int)) hasChange = true } if d.HasChange("cost1") { log.Printf("[DEBUG] citrixadc-provider: Cost1 has changed for route %s, starting update", routeName) - route.Cost1 = d.Get("cost1").(int) + route.Cost1 = uint32(d.Get("cost1").(int)) hasChange = true } if d.HasChange("detail") { @@ -220,7 +220,7 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("distance") { log.Printf("[DEBUG] citrixadc-provider: Distance has changed for route %s, starting update", routeName) - route.Distance = d.Get("distance").(int) + route.Distance = uint32(d.Get("distance").(int)) hasChange = true } if d.HasChange("gateway") { @@ -260,17 +260,17 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] citrixadc-provider: Td has changed for route %s, starting update", routeName) - route.Td = d.Get("td").(int) + route.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("vlan") { log.Printf("[DEBUG] citrixadc-provider: Vlan has changed for route %s, starting update", routeName) - route.Vlan = d.Get("vlan").(int) + route.Vlan = uint32(d.Get("vlan").(int)) hasChange = true } if d.HasChange("weight") { log.Printf("[DEBUG] citrixadc-provider: Weight has changed for route %s, starting update", routeName) - route.Weight = d.Get("weight").(int) + route.Weight = uint32(d.Get("weight").(int)) hasChange = true } @@ -279,7 +279,7 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { route.Network = d.Get("network").(string) route.Netmask = d.Get("netmask").(string) route.Gateway = d.Get("gateway").(string) - err := client.UpdateUnnamedResource(netscaler.Route.Type(), &route) + err := client.UpdateUnnamedResource(service.Route.Type(), &route) if err != nil { return fmt.Errorf("Error updating route %s", routeName) } @@ -296,7 +296,7 @@ func deleteRouteFunc(d *schema.ResourceData, meta interface{}) error { argsMap["netmask"] = url.QueryEscape(d.Get("netmask").(string)) argsMap["gateway"] = url.QueryEscape(d.Get("gateway").(string)) - err := client.DeleteResourceWithArgsMap(netscaler.Route.Type(), d.Get("network").(string), argsMap) + err := client.DeleteResourceWithArgsMap(service.Route.Type(), d.Get("network").(string), argsMap) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_route_test.go b/citrixadc/resource_citrixadc_route_test.go index 5e659b229..0d3953bc1 100644 --- a/citrixadc/resource_citrixadc_route_test.go +++ b/citrixadc/resource_citrixadc_route_test.go @@ -21,7 +21,7 @@ import ( "net/url" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -110,8 +110,8 @@ func testAccCheckRouteExist(n string, id *string) resource.TestCheckFunc { argsMap["network"] = url.QueryEscape(rs.Primary.Attributes["network"]) argsMap["netmask"] = url.QueryEscape(rs.Primary.Attributes["netmask"]) argsMap["gateway"] = url.QueryEscape(rs.Primary.Attributes["gateway"]) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Route.Type(), + findParams := service.FindParams{ + ResourceType: service.Route.Type(), ArgsMap: argsMap, } dataArray, err := nsClient.FindResourceArrayWithParams(findParams) @@ -146,8 +146,8 @@ func testAccCheckRouteDestroy(s *terraform.State) error { argsMap["network"] = url.QueryEscape(rs.Primary.Attributes["network"]) argsMap["netmask"] = url.QueryEscape(rs.Primary.Attributes["netmask"]) argsMap["gateway"] = url.QueryEscape(rs.Primary.Attributes["gateway"]) - findParams := netscaler.FindParams{ - ResourceType: netscaler.Route.Type(), + findParams := service.FindParams{ + ResourceType: service.Route.Type(), ArgsMap: argsMap, } _, err := nsClient.FindResourceArrayWithParams(findParams) diff --git a/citrixadc/resource_citrixadc_routerdynamicrouting.go b/citrixadc/resource_citrixadc_routerdynamicrouting.go index 0f3bcddf1..e2e0f8ac0 100644 --- a/citrixadc/resource_citrixadc_routerdynamicrouting.go +++ b/citrixadc/resource_citrixadc_routerdynamicrouting.go @@ -1,7 +1,7 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/router" + "github.com/citrix/adc-nitro-go/resource/config/router" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -49,7 +49,7 @@ func applyRouterdynamicroutingFunc(d *schema.ResourceData, meta interface{}) err routerdynamicrouting := router.Routerdynamicrouting{ Commandstring: cmdString, - Nodeid: d.Get("nodeid").(int), + Nodeid: uint32(d.Get("nodeid").(int)), } err := client.ActOnResource("routerdynamicrouting", &routerdynamicrouting, "apply") diff --git a/citrixadc/resource_citrixadc_server.go b/citrixadc/resource_citrixadc_server.go index af1658373..7184fce95 100644 --- a/citrixadc/resource_citrixadc_server.go +++ b/citrixadc/resource_citrixadc_server.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -119,19 +119,19 @@ func createServerFunc(d *schema.ResourceData, meta interface{}) error { Comment: d.Get("comment").(string), Domain: d.Get("domain").(string), Domainresolvenow: d.Get("domainresolvenow").(bool), - Domainresolveretry: d.Get("domainresolveretry").(int), + Domainresolveretry: int32(d.Get("domainresolveretry").(int)), Internal: d.Get("internal").(bool), Ipaddress: d.Get("ipaddress").(string), Ipv6address: d.Get("ipv6address").(string), Name: d.Get("name").(string), Querytype: d.Get("querytype").(string), State: d.Get("state").(string), - Td: d.Get("td").(int), + Td: uint32(d.Get("td").(int)), Translationip: d.Get("translationip").(string), Translationmask: d.Get("translationmask").(string), } - _, err := client.AddResource(netscaler.Server.Type(), serverName, &server) + _, err := client.AddResource(service.Server.Type(), serverName, &server) if err != nil { return err } @@ -151,7 +151,7 @@ func readServerFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client serverName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading server state %s", serverName) - data, err := client.FindResource(netscaler.Server.Type(), serverName) + data, err := client.FindResource(service.Server.Type(), serverName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing server state %s", serverName) d.SetId("") @@ -206,7 +206,7 @@ func updateServerFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("domainresolveretry") { log.Printf("[DEBUG] netscaler-provider: Domainresolveretry has changed for server %s, starting update", serverName) - server.Domainresolveretry = d.Get("domainresolveretry").(int) + server.Domainresolveretry = int32(d.Get("domainresolveretry").(int)) hasChange = true } if d.HasChange("internal") { @@ -240,7 +240,7 @@ func updateServerFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for server %s, starting update", serverName) - server.Td = d.Get("td").(int) + server.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("translationip") { @@ -255,7 +255,7 @@ func updateServerFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Server.Type(), serverName, &server) + _, err := client.UpdateResource(service.Server.Type(), serverName, &server) if err != nil { return fmt.Errorf("Error updating server %s", serverName) } @@ -273,7 +273,7 @@ func deleteServerFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteServerFunc") client := meta.(*NetScalerNitroClient).client serverName := d.Id() - err := client.DeleteResource(netscaler.Server.Type(), serverName) + err := client.DeleteResource(service.Server.Type(), serverName) if err != nil { return err } @@ -283,7 +283,7 @@ func deleteServerFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doServerStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doServerStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doServerStateChange") // We need a new instance of the struct since @@ -296,15 +296,15 @@ func doServerStateChange(d *schema.ResourceData, client *netscaler.NitroClient) // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Server.Type(), server, "enable") + err := client.ActOnResource(service.Server.Type(), server, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - server.Delay = d.Get("delay").(int) + server.Delay = uint64(d.Get("delay").(int)) server.Graceful = d.Get("graceful").(string) - err := client.ActOnResource(netscaler.Server.Type(), server, "disable") + err := client.ActOnResource(service.Server.Type(), server, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_server_test.go b/citrixadc/resource_citrixadc_server_test.go index 7316bf6ca..90283770a 100644 --- a/citrixadc/resource_citrixadc_server_test.go +++ b/citrixadc/resource_citrixadc_server_test.go @@ -21,8 +21,8 @@ import ( "reflect" "testing" - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -64,7 +64,7 @@ func testAccCheckServerExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Server.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Server.Type(), rs.Primary.ID) if err != nil { return err @@ -90,7 +90,7 @@ func testAccCheckServerDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Server.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Server.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("server %s still exists", rs.Primary.ID) } @@ -124,7 +124,7 @@ func TestAccServer_AssertNonUpdateableAttributes(t *testing.T) { // Create resource serverName := "tf-acc-server-name" - serverType := netscaler.Server.Type() + serverType := service.Server.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, serverType, serverName, nil) diff --git a/citrixadc/resource_citrixadc_service.go b/citrixadc/resource_citrixadc_service.go index 655b08a95..dab01ccc0 100644 --- a/citrixadc/resource_citrixadc_service.go +++ b/citrixadc/resource_citrixadc_service.go @@ -4,10 +4,11 @@ import ( "fmt" "log" - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/config/ssl" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" ) @@ -330,7 +331,7 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { } lbmonitor, mok := d.GetOk("lbmonitor") if mok { - exists := client.ResourceExists(netscaler.Lbmonitor.Type(), lbmonitor.(string)) + exists := client.ResourceExists(service.Lbmonitor.Type(), lbmonitor.(string)) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified lb monitor does not exist on netscaler!") } @@ -338,12 +339,12 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { lbvserver, lok := d.GetOk("lbvserver") if lok { - exists := client.ResourceExists(netscaler.Lbvserver.Type(), lbvserver.(string)) + exists := client.ResourceExists(service.Lbvserver.Type(), lbvserver.(string)) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified lb vserver does not exist on netscaler!") } } - service := basic.Service{ + svc := basic.Service{ Name: serviceName, Accessdown: d.Get("accessdown").(string), All: d.Get("all").(bool), @@ -353,51 +354,50 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { Cip: d.Get("cip").(string), Cipheader: d.Get("cipheader").(string), Cka: d.Get("cka").(string), - Cleartextport: d.Get("cleartextport").(int), - Clttimeout: d.Get("clttimeout").(int), + Cleartextport: int32(d.Get("cleartextport").(int)), + Clttimeout: uint64(d.Get("clttimeout").(int)), Cmp: d.Get("cmp").(string), Comment: d.Get("comment").(string), Contentinspectionprofilename: d.Get("contentinspectionprofilename").(string), Customserverid: d.Get("customserverid").(string), Dnsprofilename: d.Get("dnsprofilename").(string), Downstateflush: d.Get("downstateflush").(string), - Hashid: d.Get("hashid").(int), + Hashid: uint32(d.Get("hashid").(int)), Healthmonitor: d.Get("healthmonitor").(string), Httpprofilename: d.Get("httpprofilename").(string), Internal: d.Get("internal").(bool), Ip: d.Get("ip").(string), Ipaddress: d.Get("ipaddress").(string), - Maxbandwidth: d.Get("maxbandwidth").(int), - Maxclient: d.Get("maxclient").(int), - Maxreq: d.Get("maxreq").(int), + Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), + Maxclient: uint32(d.Get("maxclient").(int)), + Maxreq: uint32(d.Get("maxreq").(int)), Monconnectionclose: d.Get("monconnectionclose").(string), Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: d.Get("monthreshold").(int), + Monthreshold: uint32(d.Get("monthreshold").(int)), Netprofile: d.Get("netprofile").(string), Pathmonitor: d.Get("pathmonitor").(string), Pathmonitorindv: d.Get("pathmonitorindv").(string), - Port: d.Get("port").(int), + Port: int32(d.Get("port").(int)), Processlocal: d.Get("processlocal").(string), - Riseapbrstatsmsgcode: d.Get("riseapbrstatsmsgcode").(int), Rtspsessionidremap: d.Get("rtspsessionidremap").(string), Sc: d.Get("sc").(string), - Serverid: d.Get("serverid").(int), + Serverid: uint32(d.Get("serverid").(int)), Servername: d.Get("servername").(string), Servicetype: d.Get("servicetype").(string), Sp: d.Get("sp").(string), State: d.Get("state").(string), - Svrtimeout: d.Get("svrtimeout").(int), + Svrtimeout: uint64(d.Get("svrtimeout").(int)), Tcpb: d.Get("tcpb").(string), Tcpprofilename: d.Get("tcpprofilename").(string), - Td: d.Get("td").(int), + Td: uint32(d.Get("td").(int)), Useproxyport: d.Get("useproxyport").(string), Usip: d.Get("usip").(string), - Weight: d.Get("weight").(int), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Service.Type(), serviceName, &service) + _, err := client.AddResource(service.Service.Type(), serviceName, &svc) if err != nil { - log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", netscaler.Service.Type(), serviceName) + log.Printf("[ERROR] netscaler-provider: could not add resource %s of type %s", service.Service.Type(), serviceName) return err } if lok { //lbvserver is specified @@ -407,10 +407,10 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { Servicename: serviceName, } log.Printf("[INFO] netscaler-provider: Binding service %s to lbvserver %s", serviceName, lbvserverName) - err = client.BindResource(netscaler.Lbvserver.Type(), lbvserverName, netscaler.Service.Type(), serviceName, &binding) + err = client.BindResource(service.Lbvserver.Type(), lbvserverName, service.Service.Type(), serviceName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind service %s to lbvserver %s", serviceName, lbvserverName) - err2 := client.DeleteResource(netscaler.Service.Type(), serviceName) + err2 := client.DeleteResource(service.Service.Type(), serviceName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete service %s after bind to lb vserver failed", serviceName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete service %s after bind to lbvserver failed", serviceName) @@ -425,10 +425,10 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { Servicename: serviceName, } log.Printf("[INFO] netscaler-provider: Binding service %s to lbmonitor %s", serviceName, lbmonitorName) - err = client.BindResource(netscaler.Lbmonitor.Type(), lbmonitorName, netscaler.Service.Type(), serviceName, &binding) + err = client.BindResource(service.Lbmonitor.Type(), lbmonitorName, service.Service.Type(), serviceName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind service %s to lbmonitor %s", serviceName, lbmonitorName) - err2 := client.DeleteResource(netscaler.Service.Type(), serviceName) + err2 := client.DeleteResource(service.Service.Type(), serviceName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete service %s after bind to lbmonitor failed", serviceName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete service %s after bind to lbmonitor failed", serviceName) @@ -459,7 +459,7 @@ func readServiceFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client serviceName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading service state %s", serviceName) - data, err := client.FindResource(netscaler.Service.Type(), serviceName) + data, err := client.FindResource(service.Service.Type(), serviceName) log.Printf("Reading service state %v", data) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing service state %s", serviceName) @@ -469,7 +469,7 @@ func readServiceFunc(d *schema.ResourceData, meta interface{}) error { //read bound vserver. var vserverBindings []map[string]interface{} if _, ok := d.GetOk("lbvserver"); ok { - vserverBindings, err = client.FindResourceArray(netscaler.Svcbindings.Type(), serviceName) + vserverBindings, err = client.FindResourceArray(service.Svcbindings.Type(), serviceName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing service state %s", serviceName) d.SetId("") @@ -477,7 +477,7 @@ func readServiceFunc(d *schema.ResourceData, meta interface{}) error { } } //read bound lb monitor. - boundMonitors, err := client.FindAllBoundResources(netscaler.Service.Type(), serviceName, netscaler.Lbmonitor.Type()) + boundMonitors, err := client.FindAllBoundResources(service.Service.Type(), serviceName, service.Lbmonitor.Type()) if err != nil { //This is actually OK in most cases log.Printf("[WARN] netscaler-provider: Clearing servicestate %s", serviceName) @@ -584,212 +584,207 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { hasChange := false lbvserverChanged := false lbmonitorChanged := false - service := basic.Service{ + svc := basic.Service{ Name: d.Get("name").(string), } if d.HasChange("accessdown") { log.Printf("[DEBUG] netscaler-provider: Accessdown has changed for service %s, starting update", serviceName) - service.Accessdown = d.Get("accessdown").(string) + svc.Accessdown = d.Get("accessdown").(string) hasChange = true } if d.HasChange("all") { log.Printf("[DEBUG] netscaler-provider: All has changed for service %s, starting update", serviceName) - service.All = d.Get("all").(bool) + svc.All = d.Get("all").(bool) hasChange = true } if d.HasChange("appflowlog") { log.Printf("[DEBUG] netscaler-provider: Appflowlog has changed for service %s, starting update", serviceName) - service.Appflowlog = d.Get("appflowlog").(string) + svc.Appflowlog = d.Get("appflowlog").(string) hasChange = true } if d.HasChange("cacheable") { log.Printf("[DEBUG] netscaler-provider: Cacheable has changed for service %s, starting update", serviceName) - service.Cacheable = d.Get("cacheable").(string) + svc.Cacheable = d.Get("cacheable").(string) hasChange = true } if d.HasChange("cachetype") { log.Printf("[DEBUG] netscaler-provider: Cachetype has changed for service %s, starting update", serviceName) - service.Cachetype = d.Get("cachetype").(string) + svc.Cachetype = d.Get("cachetype").(string) hasChange = true } if d.HasChange("cip") { log.Printf("[DEBUG] netscaler-provider: Cip has changed for service %s, starting update", serviceName) - service.Cip = d.Get("cip").(string) + svc.Cip = d.Get("cip").(string) hasChange = true } if d.HasChange("cipheader") { log.Printf("[DEBUG] netscaler-provider: Cipheader has changed for service %s, starting update", serviceName) - service.Cipheader = d.Get("cipheader").(string) + svc.Cipheader = d.Get("cipheader").(string) hasChange = true } if d.HasChange("cka") { log.Printf("[DEBUG] netscaler-provider: Cka has changed for service %s, starting update", serviceName) - service.Cka = d.Get("cka").(string) + svc.Cka = d.Get("cka").(string) hasChange = true } if d.HasChange("cleartextport") { log.Printf("[DEBUG] netscaler-provider: Cleartextport has changed for service %s, starting update", serviceName) - service.Cleartextport = d.Get("cleartextport").(int) + svc.Cleartextport = int32(d.Get("cleartextport").(int)) hasChange = true } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for service %s, starting update", serviceName) - service.Clttimeout = d.Get("clttimeout").(int) + svc.Clttimeout = uint64(d.Get("clttimeout").(int)) hasChange = true } if d.HasChange("cmp") { log.Printf("[DEBUG] netscaler-provider: Cmp has changed for service %s, starting update", serviceName) - service.Cmp = d.Get("cmp").(string) + svc.Cmp = d.Get("cmp").(string) hasChange = true } if d.HasChange("comment") { log.Printf("[DEBUG] netscaler-provider: Comment has changed for service %s, starting update", serviceName) - service.Comment = d.Get("comment").(string) + svc.Comment = d.Get("comment").(string) hasChange = true } if d.HasChange("contentinspectionprofilename") { log.Printf("[DEBUG] netscaler-provider: Contentinspectionprofilename has changed for service %s, starting update", serviceName) - service.Contentinspectionprofilename = d.Get("contentinspectionprofilename").(string) + svc.Contentinspectionprofilename = d.Get("contentinspectionprofilename").(string) hasChange = true } if d.HasChange("customserverid") { log.Printf("[DEBUG] netscaler-provider: Customserverid has changed for service %s, starting update", serviceName) - service.Customserverid = d.Get("customserverid").(string) + svc.Customserverid = d.Get("customserverid").(string) hasChange = true } if d.HasChange("dnsprofilename") { log.Printf("[DEBUG] netscaler-provider: Dnsprofilename has changed for service %s, starting update", serviceName) - service.Dnsprofilename = d.Get("dnsprofilename").(string) + svc.Dnsprofilename = d.Get("dnsprofilename").(string) hasChange = true } if d.HasChange("downstateflush") { log.Printf("[DEBUG] netscaler-provider: Downstateflush has changed for service %s, starting update", serviceName) - service.Downstateflush = d.Get("downstateflush").(string) + svc.Downstateflush = d.Get("downstateflush").(string) hasChange = true } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for service %s, starting update", serviceName) - service.Hashid = d.Get("hashid").(int) + svc.Hashid = uint32(d.Get("hashid").(int)) hasChange = true } if d.HasChange("healthmonitor") { log.Printf("[DEBUG] netscaler-provider: Healthmonitor has changed for service %s, starting update", serviceName) - service.Healthmonitor = d.Get("healthmonitor").(string) + svc.Healthmonitor = d.Get("healthmonitor").(string) hasChange = true } if d.HasChange("httpprofilename") { log.Printf("[DEBUG] netscaler-provider: Httpprofilename has changed for service %s, starting update", serviceName) - service.Httpprofilename = d.Get("httpprofilename").(string) + svc.Httpprofilename = d.Get("httpprofilename").(string) hasChange = true } if d.HasChange("internal") { log.Printf("[DEBUG] netscaler-provider: Internal has changed for service %s, starting update", serviceName) - service.Internal = d.Get("internal").(bool) + svc.Internal = d.Get("internal").(bool) hasChange = true } if d.HasChange("ip") { log.Printf("[DEBUG] netscaler-provider: Ip has changed for service %s, starting update", serviceName) - service.Ipaddress = d.Get("ip").(string) + svc.Ipaddress = d.Get("ip").(string) hasChange = true } if d.HasChange("ipaddress") { log.Printf("[DEBUG] netscaler-provider: Ipaddress has changed for service %s, starting update", serviceName) - service.Ipaddress = d.Get("ipaddress").(string) + svc.Ipaddress = d.Get("ipaddress").(string) hasChange = true } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for service %s, starting update", serviceName) - service.Maxbandwidth = d.Get("maxbandwidth").(int) + svc.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for service %s, starting update", serviceName) - service.Maxclient = d.Get("maxclient").(int) + svc.Maxclient = uint32(d.Get("maxclient").(int)) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] netscaler-provider: Maxreq has changed for service %s, starting update", serviceName) - service.Maxreq = d.Get("maxreq").(int) + svc.Maxreq = uint32(d.Get("maxreq").(int)) hasChange = true } if d.HasChange("monconnectionclose") { log.Printf("[DEBUG] netscaler-provider: Monconnectionclose has changed for service %s, starting update", serviceName) - service.Monconnectionclose = d.Get("monconnectionclose").(string) + svc.Monconnectionclose = d.Get("monconnectionclose").(string) hasChange = true } if d.HasChange("monitornamesvc") { log.Printf("[DEBUG] netscaler-provider: Monitornamesvc has changed for service %s, starting update", serviceName) - service.Monitornamesvc = d.Get("monitornamesvc").(string) + svc.Monitornamesvc = d.Get("monitornamesvc").(string) hasChange = true } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for service %s, starting update", serviceName) - service.Monthreshold = d.Get("monthreshold").(int) + svc.Monthreshold = uint32(d.Get("monthreshold").(int)) hasChange = true } if d.HasChange("name") { log.Printf("[DEBUG] netscaler-provider: Name has changed for service %s, starting update", serviceName) - service.Name = d.Get("name").(string) + svc.Name = d.Get("name").(string) hasChange = true } if d.HasChange("netprofile") { log.Printf("[DEBUG] netscaler-provider: Netprofile has changed for service %s, starting update", serviceName) - service.Netprofile = d.Get("netprofile").(string) + svc.Netprofile = d.Get("netprofile").(string) hasChange = true } if d.HasChange("pathmonitor") { log.Printf("[DEBUG] netscaler-provider: Pathmonitor has changed for service %s, starting update", serviceName) - service.Pathmonitor = d.Get("pathmonitor").(string) + svc.Pathmonitor = d.Get("pathmonitor").(string) hasChange = true } if d.HasChange("pathmonitorindv") { log.Printf("[DEBUG] netscaler-provider: Pathmonitorindv has changed for service %s, starting update", serviceName) - service.Pathmonitorindv = d.Get("pathmonitorindv").(string) + svc.Pathmonitorindv = d.Get("pathmonitorindv").(string) hasChange = true } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for service %s, starting update", serviceName) - service.Port = d.Get("port").(int) + svc.Port = int32(d.Get("port").(int)) hasChange = true } if d.HasChange("processlocal") { log.Printf("[DEBUG] netscaler-provider: Processlocal has changed for service %s, starting update", serviceName) - service.Processlocal = d.Get("processlocal").(string) - hasChange = true - } - if d.HasChange("riseapbrstatsmsgcode") { - log.Printf("[DEBUG] netscaler-provider: Riseapbrstatsmsgcode has changed for service %s, starting update", serviceName) - service.Riseapbrstatsmsgcode = d.Get("riseapbrstatsmsgcode").(int) + svc.Processlocal = d.Get("processlocal").(string) hasChange = true } if d.HasChange("rtspsessionidremap") { log.Printf("[DEBUG] netscaler-provider: Rtspsessionidremap has changed for service %s, starting update", serviceName) - service.Rtspsessionidremap = d.Get("rtspsessionidremap").(string) + svc.Rtspsessionidremap = d.Get("rtspsessionidremap").(string) hasChange = true } if d.HasChange("sc") { log.Printf("[DEBUG] netscaler-provider: Sc has changed for service %s, starting update", serviceName) - service.Sc = d.Get("sc").(string) + svc.Sc = d.Get("sc").(string) hasChange = true } if d.HasChange("serverid") { log.Printf("[DEBUG] netscaler-provider: Serverid has changed for service %s, starting update", serviceName) - service.Serverid = d.Get("serverid").(int) + svc.Serverid = uint32(d.Get("serverid").(int)) hasChange = true } if d.HasChange("servername") { log.Printf("[DEBUG] netscaler-provider: Servername has changed for service %s, starting update", serviceName) - service.Servername = d.Get("servername").(string) + svc.Servername = d.Get("servername").(string) hasChange = true } if d.HasChange("servicetype") { log.Printf("[DEBUG] netscaler-provider: Servicetype has changed for service %s, starting update", serviceName) - service.Servicetype = d.Get("servicetype").(string) + svc.Servicetype = d.Get("servicetype").(string) hasChange = true } if d.HasChange("sp") { log.Printf("[DEBUG] netscaler-provider: Sp has changed for service %s, starting update", serviceName) - service.Sp = d.Get("sp").(string) + svc.Sp = d.Get("sp").(string) hasChange = true } if d.HasChange("state") { @@ -798,37 +793,37 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for service %s, starting update", serviceName) - service.Svrtimeout = d.Get("svrtimeout").(int) + svc.Svrtimeout = uint64(d.Get("svrtimeout").(int)) hasChange = true } if d.HasChange("tcpb") { log.Printf("[DEBUG] netscaler-provider: Tcpb has changed for service %s, starting update", serviceName) - service.Tcpb = d.Get("tcpb").(string) + svc.Tcpb = d.Get("tcpb").(string) hasChange = true } if d.HasChange("tcpprofilename") { log.Printf("[DEBUG] netscaler-provider: Tcpprofilename has changed for service %s, starting update", serviceName) - service.Tcpprofilename = d.Get("tcpprofilename").(string) + svc.Tcpprofilename = d.Get("tcpprofilename").(string) hasChange = true } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for service %s, starting update", serviceName) - service.Td = d.Get("td").(int) + svc.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("useproxyport") { log.Printf("[DEBUG] netscaler-provider: Useproxyport has changed for service %s, starting update", serviceName) - service.Useproxyport = d.Get("useproxyport").(string) + svc.Useproxyport = d.Get("useproxyport").(string) hasChange = true } if d.HasChange("usip") { log.Printf("[DEBUG] netscaler-provider: Usip has changed for service %s, starting update", serviceName) - service.Usip = d.Get("usip").(string) + svc.Usip = d.Get("usip").(string) hasChange = true } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for service %s, starting update", serviceName) - service.Weight = d.Get("weight").(int) + svc.Weight = uint32(d.Get("weight").(int)) hasChange = true } if d.HasChange("lbmonitor") { @@ -850,7 +845,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { oldLbmonitor, _ := d.GetChange("lbmonitor") oldLbmonitorName := oldLbmonitor.(string) if oldLbmonitorName != "" { - err := client.UnbindResource(netscaler.Lbmonitor.Type(), oldLbmonitorName, netscaler.Service.Type(), serviceName, "servicename") + err := client.UnbindResource(service.Lbmonitor.Type(), oldLbmonitorName, service.Service.Type(), serviceName, "servicename") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding lbmonitor from service %s", oldLbmonitorName) } @@ -863,7 +858,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { oldLbvserver, _ := d.GetChange("lbvserver") oldLbvserverName := oldLbvserver.(string) if oldLbvserverName != "" { - err := client.UnbindResource(netscaler.Lbvserver.Type(), oldLbvserverName, netscaler.Service.Type(), serviceName, "servicename") + err := client.UnbindResource(service.Lbvserver.Type(), oldLbvserverName, service.Service.Type(), serviceName, "servicename") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding lbvserver from service %s", oldLbvserverName) } @@ -872,7 +867,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Service.Type(), serviceName, &service) + _, err := client.UpdateResource(service.Service.Type(), serviceName, &svc) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error updating service %s", serviceName) } @@ -886,7 +881,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { Servicename: serviceName, } log.Printf("[INFO] netscaler-provider: Binding monitor %s to service %s", lbmonitorName, serviceName) - err := client.BindResource(netscaler.Lbmonitor.Type(), lbmonitorName, netscaler.Service.Type(), serviceName, &binding) + err := client.BindResource(service.Lbmonitor.Type(), lbmonitorName, service.Service.Type(), serviceName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind lbmonitor %s to service %s", lbmonitorName, serviceName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind lb monitor %s to service %s", lbmonitorName, serviceName) @@ -901,7 +896,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { Servicename: serviceName, } log.Printf("[INFO] netscaler-provider: Binding vserver %s to service %s", lbvserverName, serviceName) - err := client.BindResource(netscaler.Lbvserver.Type(), lbvserverName, netscaler.Service.Type(), serviceName, &binding) + err := client.BindResource(service.Lbvserver.Type(), lbvserverName, service.Service.Type(), serviceName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind lbvserver %s to service %s", lbvserverName, serviceName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind lb vserver %s to service %s", lbvserverName, serviceName) @@ -934,7 +929,7 @@ func deleteServiceFunc(d *schema.ResourceData, meta interface{}) error { defer meta.(*NetScalerNitroClient).lock.Unlock() serviceName := d.Id() - err := client.DeleteResource(netscaler.Service.Type(), serviceName) + err := client.DeleteResource(service.Service.Type(), serviceName) if err != nil { return err } @@ -944,12 +939,12 @@ func deleteServiceFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func doServiceStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doServiceStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doServiceStateChange") // We need a new instance of the struct since // ActOnResource will fail if we put in superfluous attributes - service := basic.Service{ + svc := basic.Service{ Name: d.Get("name").(string), } @@ -957,15 +952,15 @@ func doServiceStateChange(d *schema.ResourceData, client *netscaler.NitroClient) // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Service.Type(), service, "enable") + err := client.ActOnResource(service.Service.Type(), svc, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - service.Delay = d.Get("delay").(int) - service.Graceful = d.Get("graceful").(string) - err := client.ActOnResource(netscaler.Service.Type(), service, "disable") + svc.Delay = uint64(d.Get("delay").(int)) + svc.Graceful = d.Get("graceful").(string) + err := client.ActOnResource(service.Service.Type(), svc, "disable") if err != nil { return err } @@ -987,7 +982,7 @@ func hasSslserviceProperties(d *schema.ResourceData) bool { return hasProperties } -func readSslservice(d *schema.ResourceData, client *netscaler.NitroClient) error { +func readSslservice(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In readSslservice") // Only go ahead and read if sslservice parameters are defined @@ -997,7 +992,7 @@ func readSslservice(d *schema.ResourceData, client *netscaler.NitroClient) error // Fallthrough sslserviceName := d.Get("name").(string) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslservice", ResourceName: sslserviceName, } @@ -1013,7 +1008,7 @@ func readSslservice(d *schema.ResourceData, client *netscaler.NitroClient) error return nil } -func syncSslservice(d *schema.ResourceData, client *netscaler.NitroClient) error { +func syncSslservice(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In syncSslservice") if !hasSslserviceProperties(d) { return nil diff --git a/citrixadc/resource_citrixadc_service_test.go b/citrixadc/resource_citrixadc_service_test.go index 2bcf64fac..dde019b43 100644 --- a/citrixadc/resource_citrixadc_service_test.go +++ b/citrixadc/resource_citrixadc_service_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "os" "testing" + + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccService_basic(t *testing.T) { @@ -67,7 +68,7 @@ func testAccCheckServiceExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Service.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Service.Type(), rs.Primary.ID) if err != nil { return err @@ -93,7 +94,7 @@ func testAccCheckServiceDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Service.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Service.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -140,7 +141,7 @@ func TestAccService_AssertNonUpdateableAttributes(t *testing.T) { // Create resource serviceName := "tf-acc-service-test" - serviceType := netscaler.Service.Type() + serviceType := service.Service.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, serviceType, serviceName, nil) @@ -197,11 +198,6 @@ func TestAccService_AssertNonUpdateableAttributes(t *testing.T) { testHelperVerifyImmutabilityFunc(c, t, serviceType, serviceName, serviceInstance, "td") serviceInstance.Td = 0 - //riseapbrstatsmsgcode - serviceInstance.Riseapbrstatsmsgcode = 2 - testHelperVerifyImmutabilityFunc(c, t, serviceType, serviceName, serviceInstance, "riseapbrstatsmsgcode") - serviceInstance.Riseapbrstatsmsgcode = 0 - } const testAccServiceEnableDisable_enabled = ` diff --git a/citrixadc/resource_citrixadc_servicegroup.go b/citrixadc/resource_citrixadc_servicegroup.go index 72b73d000..2f0a3bf7a 100644 --- a/citrixadc/resource_citrixadc_servicegroup.go +++ b/citrixadc/resource_citrixadc_servicegroup.go @@ -1,9 +1,10 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/config/lb" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/lb" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -321,7 +322,7 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { lbmonitor, mok := d.GetOk("lbmonitor") if mok { - exists := client.ResourceExists(netscaler.Lbmonitor.Type(), lbmonitor.(string)) + exists := client.ResourceExists(service.Lbmonitor.Type(), lbmonitor.(string)) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified lb monitor does not exist on netscaler!") } @@ -332,7 +333,7 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { if lok { lbvservers = expandStringList(l.(*schema.Set).List()) for _, lbvserver := range lbvservers { - exists := client.ResourceExists(netscaler.Lbvserver.Type(), lbvserver) + exists := client.ResourceExists(service.Lbvserver.Type(), lbvserver) if !exists { return fmt.Errorf("[ERROR] netscaler-provider: Specified lb vserver %s does not exist on netscaler!", lbvserver) } @@ -352,57 +353,56 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } servicegroup := basic.Servicegroup{ - Appflowlog: d.Get("appflowlog").(string), - Autodisabledelay: d.Get("autodisabledelay").(int), - Autodisablegraceful: d.Get("autodisablegraceful").(string), - Autoscale: d.Get("autoscale").(string), - Cacheable: d.Get("cacheable").(string), - Cachetype: d.Get("cachetype").(string), - Cip: d.Get("cip").(string), - Cipheader: d.Get("cipheader").(string), - Cka: d.Get("cka").(string), - Clttimeout: d.Get("clttimeout").(int), - Cmp: d.Get("cmp").(string), - Comment: d.Get("comment").(string), - Customserverid: d.Get("customserverid").(string), - Dbsttl: d.Get("dbsttl").(int), - Downstateflush: d.Get("downstateflush").(string), - Dupweight: d.Get("dupweight").(int), - Hashid: d.Get("hashid").(int), - Healthmonitor: d.Get("healthmonitor").(string), - Httpprofilename: d.Get("httpprofilename").(string), - Includemembers: d.Get("includemembers").(bool), - Maxbandwidth: d.Get("maxbandwidth").(int), - Maxclient: d.Get("maxclient").(int), - Maxreq: d.Get("maxreq").(int), - Memberport: d.Get("memberport").(int), - Monconnectionclose: d.Get("monconnectionclose").(string), - Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: d.Get("monthreshold").(int), - Nameserver: d.Get("nameserver").(string), - Netprofile: d.Get("netprofile").(string), - Pathmonitor: d.Get("pathmonitor").(string), - Pathmonitorindv: d.Get("pathmonitorindv").(string), - Port: d.Get("port").(int), - Riseapbrstatsmsgcode: d.Get("riseapbrstatsmsgcode").(int), - Rtspsessionidremap: d.Get("rtspsessionidremap").(string), - Sc: d.Get("sc").(string), - Serverid: d.Get("serverid").(int), - Servername: d.Get("servername").(string), - Servicegroupname: d.Get("servicegroupname").(string), - Servicetype: d.Get("servicetype").(string), - Sp: d.Get("sp").(string), - State: d.Get("state").(string), - Svrtimeout: d.Get("svrtimeout").(int), - Tcpb: d.Get("tcpb").(string), - Tcpprofilename: d.Get("tcpprofilename").(string), - Td: d.Get("td").(int), - Useproxyport: d.Get("useproxyport").(string), - Usip: d.Get("usip").(string), - Weight: d.Get("weight").(int), + Appflowlog: d.Get("appflowlog").(string), + Autodisabledelay: uint64(d.Get("autodisabledelay").(int)), + Autodisablegraceful: d.Get("autodisablegraceful").(string), + Autoscale: d.Get("autoscale").(string), + Cacheable: d.Get("cacheable").(string), + Cachetype: d.Get("cachetype").(string), + Cip: d.Get("cip").(string), + Cipheader: d.Get("cipheader").(string), + Cka: d.Get("cka").(string), + Clttimeout: uint64(d.Get("clttimeout").(int)), + Cmp: d.Get("cmp").(string), + Comment: d.Get("comment").(string), + Customserverid: d.Get("customserverid").(string), + Dbsttl: uint64(d.Get("dbsttl").(int)), + Downstateflush: d.Get("downstateflush").(string), + Dupweight: uint32(d.Get("dupweight").(int)), + Hashid: uint32(d.Get("hashid").(int)), + Healthmonitor: d.Get("healthmonitor").(string), + Httpprofilename: d.Get("httpprofilename").(string), + Includemembers: d.Get("includemembers").(bool), + Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), + Maxclient: uint32(d.Get("maxclient").(int)), + Maxreq: uint32(d.Get("maxreq").(int)), + Memberport: int32(d.Get("memberport").(int)), + Monconnectionclose: d.Get("monconnectionclose").(string), + Monitornamesvc: d.Get("monitornamesvc").(string), + Monthreshold: uint32(d.Get("monthreshold").(int)), + Nameserver: d.Get("nameserver").(string), + Netprofile: d.Get("netprofile").(string), + Pathmonitor: d.Get("pathmonitor").(string), + Pathmonitorindv: d.Get("pathmonitorindv").(string), + Port: int32(d.Get("port").(int)), + Rtspsessionidremap: d.Get("rtspsessionidremap").(string), + Sc: d.Get("sc").(string), + Serverid: uint32(d.Get("serverid").(int)), + Servername: d.Get("servername").(string), + Servicegroupname: d.Get("servicegroupname").(string), + Servicetype: d.Get("servicetype").(string), + Sp: d.Get("sp").(string), + State: d.Get("state").(string), + Svrtimeout: uint64(d.Get("svrtimeout").(int)), + Tcpb: d.Get("tcpb").(string), + Tcpprofilename: d.Get("tcpprofilename").(string), + Td: uint32(d.Get("td").(int)), + Useproxyport: d.Get("useproxyport").(string), + Usip: d.Get("usip").(string), + Weight: uint32(d.Get("weight").(int)), } - _, err := client.AddResource(netscaler.Servicegroup.Type(), servicegroupName, &servicegroup) + _, err := client.AddResource(service.Servicegroup.Type(), servicegroupName, &servicegroup) if err != nil { return err } @@ -420,10 +420,10 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { Servicegroupname: servicegroupName, } log.Printf("[INFO] netscaler-provider: Binding servicegroup %s to lbmonitor %s", servicegroupName, lbmonitorName) - err = client.BindResource(netscaler.Lbmonitor.Type(), lbmonitorName, netscaler.Servicegroup.Type(), servicegroupName, &binding) + err = client.BindResource(service.Lbmonitor.Type(), lbmonitorName, service.Servicegroup.Type(), servicegroupName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind servicegroup %s to lbmonitor %s", servicegroupName, lbmonitorName) - err2 := client.DeleteResource(netscaler.Servicegroup.Type(), servicegroupName) + err2 := client.DeleteResource(service.Servicegroup.Type(), servicegroupName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete servicegroup %s after bind to lbmonitor failed", servicegroupName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete servicegroup %s after bind to lbmonitor failed", servicegroupName) @@ -450,12 +450,13 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { return nil } -func createServicegroupMemberBindings(client *netscaler.NitroClient, servicegroupName string, groupmembers []string, bindByServername bool) error { +func createServicegroupMemberBindings(client *service.NitroClient, servicegroupName string, groupmembers []string, bindByServername bool) error { for _, member := range groupmembers { //format is ip:port:weight parts := strings.Split(member, ":") var ip, servername string - var port, weight int + var port int32 + var weight uint32 if !bindByServername { ip = parts[0] } else { @@ -466,14 +467,17 @@ func createServicegroupMemberBindings(client *netscaler.NitroClient, servicegrou //TODO: take it from memberport continue } - port, err := strconv.Atoi(parts[1]) + port64, err := strconv.ParseInt(parts[1], 10, 32) + port = int32(port64) if err != nil { log.Printf("[WARN] netscaler-provider: servicgroupmembers has invalid port: not an integer: %s", parts[1]) continue } - weight = -1 + weightFound := false if len(parts) > 2 { - weight, err = strconv.Atoi(parts[2]) + weight64, err := strconv.ParseUint(parts[2], 10, 32) + weight = uint32(weight64) + weightFound = true if err != nil { log.Printf("[WARN] netscaler-provider: servicgroupmembers has invalid weight: not an integer:%s", parts[2]) } @@ -493,11 +497,11 @@ func createServicegroupMemberBindings(client *netscaler.NitroClient, servicegrou } } - if weight > -1 { + if weightFound { binding.Weight = weight } log.Printf("[INFO] netscaler-provider: Binding servicegroup %s to ip %s", servicegroupName, ip) - _, err = client.AddResource(netscaler.Servicegroup_servicegroupmember_binding.Type(), servicegroupName, &binding) + _, err = client.AddResource(service.Servicegroup_servicegroupmember_binding.Type(), servicegroupName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind servicegroup %s to ip %s", servicegroupName, ip) continue //TODO: should be break here? @@ -507,7 +511,7 @@ func createServicegroupMemberBindings(client *netscaler.NitroClient, servicegrou return nil } -func removeServicegroupMemberBindings(client *netscaler.NitroClient, servicegroupName string, groupmembers []string, bindByServername bool) error { +func removeServicegroupMemberBindings(client *service.NitroClient, servicegroupName string, groupmembers []string, bindByServername bool) error { for _, member := range groupmembers { //format is ip:port:weight parts := strings.Split(member, ":") @@ -530,7 +534,7 @@ func removeServicegroupMemberBindings(client *netscaler.NitroClient, servicegrou } else { args[0] = fmt.Sprintf("servername:%s,port:%s", servername, port) } - err := client.DeleteResourceWithArgs(netscaler.Servicegroup_servicegroupmember_binding.Type(), servicegroupName, args) + err := client.DeleteResourceWithArgs(service.Servicegroup_servicegroupmember_binding.Type(), servicegroupName, args) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to unbind servicegroup %s from ip %s", servicegroupName, ip) continue //TODO: should be break here? @@ -540,14 +544,14 @@ func removeServicegroupMemberBindings(client *netscaler.NitroClient, servicegrou return nil } -func addLbvserverBindings(client *netscaler.NitroClient, servicegroupName string, lbvservers []string) error { +func addLbvserverBindings(client *service.NitroClient, servicegroupName string, lbvservers []string) error { for _, lbvserverName := range lbvservers { binding := lb.Lbvserverservicegroupbinding{ Name: lbvserverName, Servicegroupname: servicegroupName, } log.Printf("[INFO] netscaler-provider: Binding servicegroup %s to lbvserver %s", servicegroupName, lbvserverName) - err := client.BindResource(netscaler.Lbvserver.Type(), lbvserverName, netscaler.Servicegroup.Type(), servicegroupName, &binding) + err := client.BindResource(service.Lbvserver.Type(), lbvserverName, service.Servicegroup.Type(), servicegroupName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind servicegroup %s to lbvserver %s", servicegroupName, lbvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind servicegroup %s to lbvserver %s", servicegroupName, lbvserverName) @@ -556,9 +560,9 @@ func addLbvserverBindings(client *netscaler.NitroClient, servicegroupName string return nil } -func removeLbvserverBindings(client *netscaler.NitroClient, servicegroupName string, lbvservers []string) error { +func removeLbvserverBindings(client *service.NitroClient, servicegroupName string, lbvservers []string) error { for _, lbvserverName := range lbvservers { - err := client.UnbindResource(netscaler.Lbvserver.Type(), lbvserverName, netscaler.Servicegroup.Type(), servicegroupName, "servicegroupname") + err := client.UnbindResource(service.Lbvserver.Type(), lbvserverName, service.Servicegroup.Type(), servicegroupName, "servicegroupname") if err != nil { log.Printf("[ERROR] netscaler-provider: Error unbinding lbvserver %s from servicegroup %s", lbvserverName, servicegroupName) return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding lbvserver %s from servicegroup %s", lbvserverName, servicegroupName) @@ -572,28 +576,28 @@ func readServicegroupFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client servicegroupName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading servicegroup state %s", servicegroupName) - data, err := client.FindResource(netscaler.Servicegroup.Type(), servicegroupName) + data, err := client.FindResource(service.Servicegroup.Type(), servicegroupName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing servicegroup state %s", servicegroupName) d.SetId("") return nil } - //read bound service group members. Note that there is no type defined called netscaler.Servicegroupmember.Type() - boundMembers, err := client.FindAllBoundResources(netscaler.Servicegroup.Type(), servicegroupName, "servicegroupmember") + //read bound service group members. Note that there is no type defined called service.Servicegroupmember.Type() + boundMembers, err := client.FindAllBoundResources(service.Servicegroup.Type(), servicegroupName, "servicegroupmember") if err != nil { log.Printf("[WARN] netscaler-provider: Clearing servicegroup state %s", servicegroupName) d.SetId("") return nil } //read bound vservers. - vserverBindings, err := client.FindResourceArray(netscaler.Servicegroupbindings.Type(), servicegroupName) + vserverBindings, err := client.FindResourceArray(service.Servicegroupbindings.Type(), servicegroupName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing servicegroup state %s", servicegroupName) d.SetId("") return nil } //read bound lb monitor. - boundMonitors, err := client.FindAllBoundResources(netscaler.Servicegroup.Type(), servicegroupName, netscaler.Lbmonitor.Type()) + boundMonitors, err := client.FindAllBoundResources(service.Servicegroup.Type(), servicegroupName, service.Lbmonitor.Type()) if err != nil { //This is actually OK in most cases log.Printf("[WARN] netscaler-provider: Clearing servicegroup state %s", servicegroupName) @@ -731,7 +735,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("autodisabledelay") { log.Printf("[DEBUG] netscaler-provider: Autodisabledelay has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Autodisabledelay = d.Get("autodisabledelay").(int) + servicegroup.Autodisabledelay = uint64(d.Get("autodisabledelay").(int)) hasChange = true } if d.HasChange("autodisablegraceful") { @@ -771,7 +775,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Clttimeout = d.Get("clttimeout").(int) + servicegroup.Clttimeout = uint64(d.Get("clttimeout").(int)) hasChange = true } if d.HasChange("cmp") { @@ -791,7 +795,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dbsttl") { log.Printf("[DEBUG] netscaler-provider: Dbsttl has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Dbsttl = d.Get("dbsttl").(int) + servicegroup.Dbsttl = uint64(d.Get("dbsttl").(int)) hasChange = true } if d.HasChange("downstateflush") { @@ -801,12 +805,12 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dupweight") { log.Printf("[DEBUG] netscaler-provider: Dupweight has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Dupweight = d.Get("dupweight").(int) + servicegroup.Dupweight = uint32(d.Get("dupweight").(int)) hasChange = true } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Hashid = d.Get("hashid").(int) + servicegroup.Hashid = uint32(d.Get("hashid").(int)) hasChange = true } if d.HasChange("healthmonitor") { @@ -826,22 +830,22 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxbandwidth = d.Get("maxbandwidth").(int) + servicegroup.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxclient = d.Get("maxclient").(int) + servicegroup.Maxclient = uint32(d.Get("maxclient").(int)) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] netscaler-provider: Maxreq has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxreq = d.Get("maxreq").(int) + servicegroup.Maxreq = uint32(d.Get("maxreq").(int)) hasChange = true } if d.HasChange("memberport") { log.Printf("[DEBUG] netscaler-provider: Memberport has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Memberport = d.Get("memberport").(int) + servicegroup.Memberport = int32(d.Get("memberport").(int)) hasChange = true } if d.HasChange("monconnectionclose") { @@ -856,7 +860,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Monthreshold = d.Get("monthreshold").(int) + servicegroup.Monthreshold = uint32(d.Get("monthreshold").(int)) hasChange = true } if d.HasChange("nameserver") { @@ -881,12 +885,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Port = d.Get("port").(int) - hasChange = true - } - if d.HasChange("riseapbrstatsmsgcode") { - log.Printf("[DEBUG] netscaler-provider: Riseapbrstatsmsgcode has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Riseapbrstatsmsgcode = d.Get("riseapbrstatsmsgcode").(int) + servicegroup.Port = int32(d.Get("port").(int)) hasChange = true } if d.HasChange("rtspsessionidremap") { @@ -901,7 +900,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("serverid") { log.Printf("[DEBUG] netscaler-provider: Serverid has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Serverid = d.Get("serverid").(int) + servicegroup.Serverid = uint32(d.Get("serverid").(int)) hasChange = true } if d.HasChange("servername") { @@ -930,7 +929,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Svrtimeout = d.Get("svrtimeout").(int) + servicegroup.Svrtimeout = uint64(d.Get("svrtimeout").(int)) hasChange = true } if d.HasChange("tcpb") { @@ -945,7 +944,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Td = d.Get("td").(int) + servicegroup.Td = uint32(d.Get("td").(int)) hasChange = true } if d.HasChange("useproxyport") { @@ -960,7 +959,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Weight = d.Get("weight").(int) + servicegroup.Weight = uint32(d.Get("weight").(int)) hasChange = true } if d.HasChange("lbvservers") { @@ -1013,7 +1012,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { oldLbmonitor, _ := d.GetChange("lbmonitor") oldLbmonitorName := oldLbmonitor.(string) if oldLbmonitorName != "" { - err := client.UnbindResource(netscaler.Lbmonitor.Type(), oldLbmonitorName, netscaler.Servicegroup.Type(), servicegroupName, "servicegroupname") + err := client.UnbindResource(service.Lbmonitor.Type(), oldLbmonitorName, service.Servicegroup.Type(), servicegroupName, "servicegroupname") if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding lbmonitor from servicegroup %s", oldLbmonitorName) } @@ -1022,7 +1021,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Servicegroup.Type(), servicegroupName, &servicegroup) + _, err := client.UpdateResource(service.Servicegroup.Type(), servicegroupName, &servicegroup) if err != nil { return fmt.Errorf("Error updating servicegroup %s", servicegroupName) } @@ -1036,7 +1035,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { Servicegroupname: servicegroupName, } log.Printf("[INFO] netscaler-provider: Binding monitor %s to servicegroup %s", lbmonitorName, servicegroupName) - err := client.BindResource(netscaler.Lbmonitor.Type(), lbmonitorName, netscaler.Servicegroup.Type(), servicegroupName, &binding) + err := client.BindResource(service.Lbmonitor.Type(), lbmonitorName, service.Servicegroup.Type(), servicegroupName, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind lbmonitor %s to servicegroup %s", lbmonitorName, servicegroupName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to bind lb monitor %s to servicegroup %s", lbmonitorName, servicegroupName) @@ -1092,7 +1091,7 @@ func deleteServicegroupFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] netscaler-provider: In deleteServicegroupFunc") client := meta.(*NetScalerNitroClient).client servicegroupName := d.Id() - err := client.DeleteResource(netscaler.Servicegroup.Type(), servicegroupName) + err := client.DeleteResource(service.Servicegroup.Type(), servicegroupName) if err != nil { return err } @@ -1112,7 +1111,7 @@ func expandStringList(configured []interface{}) []string { return vs } -func doServicegroupStateChange(d *schema.ResourceData, client *netscaler.NitroClient) error { +func doServicegroupStateChange(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In doServicegroupStateChange") // We need a new instance of the struct since @@ -1120,22 +1119,22 @@ func doServicegroupStateChange(d *schema.ResourceData, client *netscaler.NitroCl serviceGroup := basic.Servicegroup{ Servicegroupname: d.Get("servicegroupname").(string), Servername: d.Get("servername").(string), - Port: d.Get("port").(int), + Port: int32(d.Get("port").(int)), } newstate := d.Get("state") // Enable action if newstate == "ENABLED" { - err := client.ActOnResource(netscaler.Servicegroup.Type(), serviceGroup, "enable") + err := client.ActOnResource(service.Servicegroup.Type(), serviceGroup, "enable") if err != nil { return err } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - serviceGroup.Delay = d.Get("delay").(int) + serviceGroup.Delay = uint64(d.Get("delay").(int)) serviceGroup.Graceful = d.Get("graceful").(string) - err := client.ActOnResource(netscaler.Servicegroup.Type(), serviceGroup, "disable") + err := client.ActOnResource(service.Servicegroup.Type(), serviceGroup, "disable") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding.go b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding.go index c3db69aff..b4491afa8 100644 --- a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding.go +++ b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -103,22 +103,22 @@ func createServicegroup_lbmonitor_bindingFunc(d *schema.ResourceData, meta inter // Use `,` as the separator since it is invalid character for servicegroup and monitor name servicegroupLbmonitorBindingId := fmt.Sprintf("%s,%s", servicegroupName, monitorName) - servicegroup_lbmonitor_binding := basic.Servicegrouplbmonitorbinding{ + servicegroup_lbmonitor_binding := basic.Servicegroupmonitorbinding{ Customserverid: d.Get("customserverid").(string), - Dbsttl: d.Get("dbsttl").(int), - Hashid: d.Get("hashid").(int), + Dbsttl: uint64(d.Get("dbsttl").(int)), + Hashid: uint32(d.Get("hashid").(int)), Monitorname: d.Get("monitorname").(string), Monstate: d.Get("monstate").(string), Nameserver: d.Get("nameserver").(string), Passive: d.Get("passive").(bool), - Port: d.Get("port").(int), - Serverid: d.Get("serverid").(int), + Port: int32(d.Get("port").(int)), + Serverid: uint32(d.Get("serverid").(int)), Servicegroupname: d.Get("servicegroupname").(string), State: d.Get("state").(string), - Weight: d.Get("weight").(int), + Weight: uint32(d.Get("weight").(int)), } - err := client.UpdateUnnamedResource(netscaler.Servicegroup_lbmonitor_binding.Type(), &servicegroup_lbmonitor_binding) + err := client.UpdateUnnamedResource(service.Servicegroup_lbmonitor_binding.Type(), &servicegroup_lbmonitor_binding) if err != nil { return err } @@ -151,7 +151,7 @@ func readServicegroup_lbmonitor_bindingFunc(d *schema.ResourceData, meta interfa monitorName := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading servicegroup_lbmonitor_binding state %s", servicegroupLbmonitorBindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "servicegroup_lbmonitor_binding", ResourceName: servicegroupName, ResourceMissingErrorCode: 258, @@ -225,7 +225,7 @@ func deleteServicegroup_lbmonitor_bindingFunc(d *schema.ResourceData, meta inter args = append(args, fmt.Sprintf("port:%v", v)) } - err := client.DeleteResourceWithArgs(netscaler.Servicegroup_lbmonitor_binding.Type(), servicegroupName, args) + err := client.DeleteResourceWithArgs(service.Servicegroup_lbmonitor_binding.Type(), servicegroupName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go index be60f4284..f7aff3efc 100644 --- a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccServicegroup_lbmonitor_binding_basic(t *testing.T) { @@ -80,7 +81,7 @@ func testAccCheckServicegroup_lbmonitor_bindingExist(n string, id *string) resou servicegroupName := idSlice[0] monitorName := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "servicegroup_lbmonitor_binding", ResourceName: servicegroupName, ResourceMissingErrorCode: 258, @@ -121,7 +122,7 @@ func testAccCheckServicegroup_lbmonitor_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Servicegroup_lbmonitor_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Servicegroup_lbmonitor_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go index 086131a67..060e4da06 100644 --- a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go +++ b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/basic" + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -116,19 +116,19 @@ func createServicegroup_servicegroupmember_bindingFunc(d *schema.ResourceData, m servicegroup_servicegroupmember_binding := basic.Servicegroupservicegroupmemberbinding{ Customserverid: d.Get("customserverid").(string), - Dbsttl: d.Get("dbsttl").(int), - Hashid: d.Get("hashid").(int), + Dbsttl: uint64(d.Get("dbsttl").(int)), + Hashid: uint32(d.Get("hashid").(int)), Ip: d.Get("ip").(string), Nameserver: d.Get("nameserver").(string), - Port: d.Get("port").(int), - Serverid: d.Get("serverid").(int), + Port: int32(d.Get("port").(int)), + Serverid: uint32(d.Get("serverid").(int)), Servername: d.Get("servername").(string), Servicegroupname: d.Get("servicegroupname").(string), State: d.Get("state").(string), - Weight: d.Get("weight").(int), + Weight: uint32(d.Get("weight").(int)), } - err := client.UpdateUnnamedResource(netscaler.Servicegroup_servicegroupmember_binding.Type(), &servicegroup_servicegroupmember_binding) + err := client.UpdateUnnamedResource(service.Servicegroup_servicegroupmember_binding.Type(), &servicegroup_servicegroupmember_binding) if err != nil { return err } @@ -167,7 +167,7 @@ func readServicegroup_servicegroupmember_bindingFunc(d *schema.ResourceData, met log.Printf("[DEBUG] citrixadc-provider: Reading servicegroup_servicegroupmember_binding state %v", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "servicegroup_servicegroupmember_binding", ResourceName: servicegroupname, ResourceMissingErrorCode: 258, diff --git a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go index becb6fcc2..ed9b5524a 100644 --- a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strconv" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccServicegroup_servicegroupmember_binding_ipv4_step1 = ` @@ -262,7 +263,7 @@ func testAccCheckServicegroup_servicegroupmember_bindingExist(n string, id *stri } } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "servicegroup_servicegroupmember_binding", ResourceName: servicegroupname, ResourceMissingErrorCode: 258, @@ -317,7 +318,7 @@ func testAccCheckServicegroup_servicegroupmember_binding_not_exists(bindingId st } } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "servicegroup_servicegroupmember_binding", ResourceName: servicegroupname, ResourceMissingErrorCode: 258, @@ -372,7 +373,7 @@ func testAccCheckServicegroup_servicegroupmember_bindingDestroy(s *terraform.Sta return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Servicegroup_servicegroupmember_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Servicegroup_servicegroupmember_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("servicegroup_servicegroupmember_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_servicegroup_test.go b/citrixadc/resource_citrixadc_servicegroup_test.go index cc5578c30..22a469dc9 100644 --- a/citrixadc/resource_citrixadc_servicegroup_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/basic" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "os" "testing" + + "github.com/citrix/adc-nitro-go/resource/config/basic" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccServicegroup_basic(t *testing.T) { @@ -66,7 +67,7 @@ func testAccCheckServicegroupExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Servicegroup.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Servicegroup.Type(), rs.Primary.ID) if err != nil { return err @@ -92,7 +93,7 @@ func testAccCheckServicegroupDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Servicegroup.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Servicegroup.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } @@ -145,7 +146,7 @@ func TestAccServicegroup_AssertNonUpdateableAttributes(t *testing.T) { // Create resource servicegroupName := "tf-acc-servicegroup-test" - servicegroupType := netscaler.Servicegroup.Type() + servicegroupType := service.Servicegroup.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, servicegroupType, servicegroupName, nil) @@ -180,11 +181,6 @@ func TestAccServicegroup_AssertNonUpdateableAttributes(t *testing.T) { testHelperVerifyImmutabilityFunc(c, t, servicegroupType, servicegroupName, servicegroupInstance, "memberport") servicegroupInstance.Memberport = 0 - //riseapbrstatsmsgcode - servicegroupInstance.Riseapbrstatsmsgcode = 10 - testHelperVerifyImmutabilityFunc(c, t, servicegroupType, servicegroupName, servicegroupInstance, "riseapbrstatsmsgcode") - servicegroupInstance.Riseapbrstatsmsgcode = 0 - //includemembers servicegroupInstance.Includemembers = true testHelperVerifyImmutabilityFunc(c, t, servicegroupType, servicegroupName, servicegroupInstance, "includemembers") diff --git a/citrixadc/resource_citrixadc_sslaction.go b/citrixadc/resource_citrixadc_sslaction.go index 62819ae8a..475d200e7 100644 --- a/citrixadc/resource_citrixadc_sslaction.go +++ b/citrixadc/resource_citrixadc_sslaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -226,7 +226,7 @@ func createSslactionFunc(d *schema.ResourceData, meta interface{}) error { Ssllogprofile: d.Get("ssllogprofile").(string), } - _, err := client.AddResource(netscaler.Sslaction.Type(), sslactionName, &sslaction) + _, err := client.AddResource(service.Sslaction.Type(), sslactionName, &sslaction) if err != nil { return err } @@ -246,7 +246,7 @@ func readSslactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client sslactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading sslaction state %s", sslactionName) - data, err := client.FindResource(netscaler.Sslaction.Type(), sslactionName) + data, err := client.FindResource(service.Sslaction.Type(), sslactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing sslaction state %s", sslactionName) d.SetId("") @@ -290,7 +290,7 @@ func deleteSslactionFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSslactionFunc") client := meta.(*NetScalerNitroClient).client sslactionName := d.Id() - err := client.DeleteResource(netscaler.Sslaction.Type(), sslactionName) + err := client.DeleteResource(service.Sslaction.Type(), sslactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslaction_test.go b/citrixadc/resource_citrixadc_sslaction_test.go index 6fc407779..89424c841 100644 --- a/citrixadc/resource_citrixadc_sslaction_test.go +++ b/citrixadc/resource_citrixadc_sslaction_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -90,7 +90,7 @@ func testAccCheckSslactionExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Sslaction.Type(), rs.Primary.ID) if err != nil { return err @@ -116,7 +116,7 @@ func testAccCheckSslactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("SSL action %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_sslcertkey.go b/citrixadc/resource_citrixadc_sslcertkey.go index 6628f3bdb..f276f5b4a 100644 --- a/citrixadc/resource_citrixadc_sslcertkey.go +++ b/citrixadc/resource_citrixadc_sslcertkey.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -131,13 +131,13 @@ func createSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { // Nodomaincheck is not an object attribute but a flag for the change operation // of the resource Nodomaincheck: false, - Notificationperiod: d.Get("notificationperiod").(int), + Notificationperiod: uint32(d.Get("notificationperiod").(int)), Ocspstaplingcache: d.Get("ocspstaplingcache").(bool), Passplain: d.Get("passplain").(string), Password: d.Get("password").(bool), } - _, err := client.AddResource(netscaler.Sslcertkey.Type(), sslcertkeyName, &sslcertkey) + _, err := client.AddResource(service.Sslcertkey.Type(), sslcertkeyName, &sslcertkey) if err != nil { return err } @@ -166,7 +166,7 @@ func readSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client sslcertkeyName := d.Id() log.Printf("[DEBUG] netscaler-provider: Reading sslcertkey state %s", sslcertkeyName) - data, err := client.FindResource(netscaler.Sslcertkey.Type(), sslcertkeyName) + data, err := client.FindResource(service.Sslcertkey.Type(), sslcertkeyName) if err != nil { log.Printf("[WARN] netscaler-provider: Clearing sslcertkey state %s", sslcertkeyName) d.SetId("") @@ -214,7 +214,7 @@ func updateSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("notificationperiod") { log.Printf("[DEBUG] netscaler-provider: Notificationperiod has changed for sslcertkey %s, starting update", sslcertkeyName) - sslcertkeyUpdate.Notificationperiod = d.Get("notificationperiod").(int) + sslcertkeyUpdate.Notificationperiod = uint32(d.Get("notificationperiod").(int)) hasUpdate = true } if d.HasChange("cert") { @@ -260,7 +260,7 @@ func updateSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { if hasUpdate { sslcertkeyUpdate.Expirymonitor = d.Get("expirymonitor").(string) //always expected by NITRO API - _, err := client.UpdateResource(netscaler.Sslcertkey.Type(), sslcertkeyName, &sslcertkeyUpdate) + _, err := client.UpdateResource(service.Sslcertkey.Type(), sslcertkeyName, &sslcertkeyUpdate) if err != nil { return fmt.Errorf("Error updating sslcertkey %s", sslcertkeyName) } @@ -270,7 +270,7 @@ func updateSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { sslcertkeyChange.Nodomaincheck = d.Get("nodomaincheck").(bool) if hasChange { - _, err := client.ChangeResource(netscaler.Sslcertkey.Type(), sslcertkeyName, &sslcertkeyChange) + _, err := client.ChangeResource(service.Sslcertkey.Type(), sslcertkeyName, &sslcertkeyChange) if err != nil { return fmt.Errorf("Error changing sslcertkey %s", sslcertkeyName) } @@ -284,10 +284,10 @@ func updateSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { return readSslcertkeyFunc(d, meta) } -func handleLinkedCertificate(d *schema.ResourceData, client *netscaler.NitroClient) error { +func handleLinkedCertificate(d *schema.ResourceData, client *service.NitroClient) error { log.Printf("[DEBUG] netscaler-provider: In handleLinkedCertificate") sslcertkeyName := d.Get("certkey").(string) - data, err := client.FindResource(netscaler.Sslcertkey.Type(), sslcertkeyName) + data, err := client.FindResource(service.Sslcertkey.Type(), sslcertkeyName) if err != nil { log.Printf("[ERROR] netscaler-provider: Clearing sslcertkey state %s", sslcertkeyName) d.SetId("") @@ -318,7 +318,7 @@ func handleLinkedCertificate(d *schema.ResourceData, client *netscaler.NitroClie Certkey: data["certkey"].(string), Linkcertkeyname: configuredLinkedCertKeyname.(string), } - if err := client.ActOnResource(netscaler.Sslcertkey.Type(), &sslCertkey, "link"); err != nil { + if err := client.ActOnResource(service.Sslcertkey.Type(), &sslCertkey, "link"); err != nil { log.Printf("[ERROR] netscaler-provider: Error linking certificate \"%v\"", err) return err } @@ -328,9 +328,9 @@ func handleLinkedCertificate(d *schema.ResourceData, client *netscaler.NitroClie return nil } -func unlinkCertificate(d *schema.ResourceData, client *netscaler.NitroClient) error { +func unlinkCertificate(d *schema.ResourceData, client *service.NitroClient) error { sslcertkeyName := d.Get("certkey").(string) - data, err := client.FindResource(netscaler.Sslcertkey.Type(), sslcertkeyName) + data, err := client.FindResource(service.Sslcertkey.Type(), sslcertkeyName) if err != nil { log.Printf("[ERROR] netscaler-provider: Clearing sslcertkey state %s", sslcertkeyName) d.SetId("") @@ -345,7 +345,7 @@ func unlinkCertificate(d *schema.ResourceData, client *netscaler.NitroClient) er sslCertkey := ssl.Sslcertkey{ Certkey: data["certkey"].(string), } - if err := client.ActOnResource(netscaler.Sslcertkey.Type(), &sslCertkey, "unlink"); err != nil { + if err := client.ActOnResource(service.Sslcertkey.Type(), &sslCertkey, "unlink"); err != nil { log.Printf("[ERROR] netscaler-provider: Error unlinking certificate \"%v\"", err) return err } @@ -363,7 +363,7 @@ func deleteSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { return err } sslcertkeyName := d.Id() - err := client.DeleteResource(netscaler.Sslcertkey.Type(), sslcertkeyName) + err := client.DeleteResource(service.Sslcertkey.Type(), sslcertkeyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslcertkey_test.go b/citrixadc/resource_citrixadc_sslcertkey_test.go index ddc26be37..6e5a16b1e 100644 --- a/citrixadc/resource_citrixadc_sslcertkey_test.go +++ b/citrixadc/resource_citrixadc_sslcertkey_test.go @@ -17,12 +17,13 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/config/ssl" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "os" "testing" + + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccSslcertkey_basic(t *testing.T) { @@ -68,7 +69,7 @@ func testAccCheckSslcertkeyExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslcertkey.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Sslcertkey.Type(), rs.Primary.ID) if err != nil { return err @@ -94,7 +95,7 @@ func testAccCheckSslcertkeyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslcertkey.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslcertkey.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("SSL certkey %s still exists", rs.Primary.ID) } @@ -284,7 +285,7 @@ func TestAccSslcertkey_AssertNonUpdateableAttributes(t *testing.T) { // Create resource certkeyName := "tf-acc-certkey-test" - certkeyType := netscaler.Sslcertkey.Type() + certkeyType := service.Sslcertkey.Type() // Defer deletion of actual resource defer testHelperEnsureResourceDeletion(c, t, certkeyType, certkeyName, nil) diff --git a/citrixadc/resource_citrixadc_sslcipher.go b/citrixadc/resource_citrixadc_sslcipher.go index f3592658c..9309d0d32 100644 --- a/citrixadc/resource_citrixadc_sslcipher.go +++ b/citrixadc/resource_citrixadc_sslcipher.go @@ -1,18 +1,17 @@ package citrixadc import ( - "bytes" - "sort" - "strconv" - - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/schema" + "bytes" "fmt" "log" + "sort" + "strconv" ) func resourceCitrixAdcSslcipher() *schema.Resource { @@ -63,7 +62,7 @@ func createSslcipherFunc(d *schema.ResourceData, meta interface{}) error { Ciphergroupname: sslcipherGroupName, } - _, err := client.AddResource(netscaler.Sslcipher.Type(), sslcipherGroupName, &sslcipher) + _, err := client.AddResource(service.Sslcipher.Type(), sslcipherGroupName, &sslcipher) if err != nil { return err } @@ -106,7 +105,7 @@ func readSslcipherFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client sslcipherGroupName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading sslcipher state %s", sslcipherGroupName) - data, err := client.FindResource(netscaler.Sslcipher.Type(), sslcipherGroupName) + data, err := client.FindResource(service.Sslcipher.Type(), sslcipherGroupName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing sslcipher state %s", sslcipherGroupName) d.SetId("") @@ -128,7 +127,7 @@ func deleteSslcipherFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSslcipherFunc") client := meta.(*NetScalerNitroClient).client sslcipherGroupName := d.Id() - err := client.DeleteResource(netscaler.Sslcipher.Type(), sslcipherGroupName) + err := client.DeleteResource(service.Sslcipher.Type(), sslcipherGroupName) if err != nil { return err } @@ -140,7 +139,7 @@ func deleteSslcipherFunc(d *schema.ResourceData, meta interface{}) error { type cipherPriority struct { cipherName string - cipherPriority int + cipherPriority uint32 } type cipherPriorities []cipherPriority @@ -156,7 +155,7 @@ func getSortedCipherBindigs(unsortedCipherBindings *schema.Set) cipherPriorities for _, v := range unsortedCipherBindings.List() { val := v.(map[string]interface{}) ciphername := val["ciphername"].(string) - cipherpriority := val["cipherpriority"].(int) + cipherpriority := val["cipherpriority"].(uint32) cipher := cipherPriority{ cipherName: ciphername, cipherPriority: cipherpriority, @@ -185,7 +184,7 @@ func deleteSingleSslCipherCipherSuiteBinding(d *schema.ResourceData, meta interf log.Printf("args is %v", args) - if err := client.DeleteResourceWithArgs(netscaler.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname, args); err != nil { + if err := client.DeleteResourceWithArgs(service.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname, args); err != nil { log.Printf("[DEBUG] citrixadc-provider: Error deleting sslciphersuite binding %v\n", binding) return err } @@ -198,13 +197,13 @@ func addSingleSslCipherCipherSuiteBinding(d *schema.ResourceData, meta interface client := meta.(*NetScalerNitroClient).client log.Printf("Adding binding %v", binding) - bindingStruct := ssl.Sslciphersslciphersuitebinding{} + bindingStruct := ssl.Sslcipherciphersuitebinding{} bindingStruct.Ciphergroupname = d.Get("ciphergroupname").(string) bindingStruct.Ciphername = binding.cipherName bindingStruct.Cipherpriority = binding.cipherPriority // We need to do a HTTP PUT hence the UpdateResource - if _, err := client.UpdateResource(netscaler.Sslcipher_sslciphersuite_binding.Type(), bindingStruct.Ciphergroupname, bindingStruct); err != nil { + if _, err := client.UpdateResource(service.Sslcipher_sslciphersuite_binding.Type(), bindingStruct.Ciphergroupname, bindingStruct); err != nil { return err } return nil @@ -214,7 +213,7 @@ func updateSslCipherCipherSuiteBindings(d *schema.ResourceData, meta interface{} log.Printf("[DEBUG] citrixadc-provider: In updateSslCipherCipherSuiteBindings") client := meta.(*NetScalerNitroClient).client - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslcipher_sslciphersuite_binding", ResourceName: d.Get("ciphergroupname").(string), } @@ -264,7 +263,7 @@ func readSslCipherCipherSuitebindings(d *schema.ResourceData, meta interface{}) log.Printf("[DEBUG] citrixadc-provider: In readSslCipherCipherSuitebindings") client := meta.(*NetScalerNitroClient).client ciphergroupname := d.Get("ciphergroupname").(string) - bindings, _ := client.FindResourceArray(netscaler.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname) + bindings, _ := client.FindResourceArray(service.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname) log.Printf("bindings %v\n", bindings) processedBindings := make([]interface{}, len(bindings)) diff --git a/citrixadc/resource_citrixadc_sslcipher_test.go b/citrixadc/resource_citrixadc_sslcipher_test.go index 627d4e81d..0352e59d0 100644 --- a/citrixadc/resource_citrixadc_sslcipher_test.go +++ b/citrixadc/resource_citrixadc_sslcipher_test.go @@ -20,7 +20,7 @@ import ( "strconv" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -139,7 +139,7 @@ func testAccCheckSslcipherExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslcipher.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Sslcipher.Type(), rs.Primary.ID) if err != nil { return err @@ -166,7 +166,7 @@ func testAccCheckSslcipherCiphersuiteBinding(ciphergroupname string, ciphername return fmt.Errorf("No name is set") } - bindings, _ := nsClient.FindResourceArray(netscaler.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname) + bindings, _ := nsClient.FindResourceArray(service.Sslcipher_sslciphersuite_binding.Type(), ciphergroupname) for _, binding := range bindings { if binding["ciphername"].(string) == ciphername { receivedpriority, _ := strconv.Atoi(binding["cipherpriority"].(string)) @@ -195,7 +195,7 @@ func testAccCheckSslcipherDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslcipher.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslcipher.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("sslciphergroup %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_ssldhparam.go b/citrixadc/resource_citrixadc_ssldhparam.go index 2f398ccdc..cd5abd47f 100644 --- a/citrixadc/resource_citrixadc_ssldhparam.go +++ b/citrixadc/resource_citrixadc_ssldhparam.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "log" @@ -42,12 +42,12 @@ func createSsldhparamFunc(d *schema.ResourceData, meta interface{}) error { ssldhparamName := d.Get("dhfile").(string) ssldhparam := ssl.Ssldhparam{ - Bits: d.Get("bits").(int), + Bits: uint32(d.Get("bits").(int)), Dhfile: ssldhparamName, Gen: d.Get("gen").(string), } - err := client.ActOnResource(netscaler.Ssldhparam.Type(), &ssldhparam, "create") + err := client.ActOnResource(service.Ssldhparam.Type(), &ssldhparam, "create") if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslparameter.go b/citrixadc/resource_citrixadc_sslparameter.go index 64636c7b5..33d23799a 100644 --- a/citrixadc/resource_citrixadc_sslparameter.go +++ b/citrixadc/resource_citrixadc_sslparameter.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -155,33 +155,33 @@ func createSslparameterFunc(d *schema.ResourceData, meta interface{}) error { sslparameterName = resource.PrefixedUniqueId("tf-sslparameter-") sslparameter := ssl.Sslparameter{ - Crlmemorysizemb: d.Get("crlmemorysizemb").(int), - Cryptodevdisablelimit: d.Get("cryptodevdisablelimit").(int), + Crlmemorysizemb: uint32(d.Get("crlmemorysizemb").(int)), + Cryptodevdisablelimit: uint32(d.Get("cryptodevdisablelimit").(int)), Defaultprofile: d.Get("defaultprofile").(string), Denysslreneg: d.Get("denysslreneg").(string), Dropreqwithnohostheader: d.Get("dropreqwithnohostheader").(string), - Encrypttriggerpktcount: d.Get("encrypttriggerpktcount").(int), + Encrypttriggerpktcount: uint32(d.Get("encrypttriggerpktcount").(int)), Heterogeneoussslhw: d.Get("heterogeneoussslhw").(string), Hybridfipsmode: d.Get("hybridfipsmode").(string), Insertcertspace: d.Get("insertcertspace").(string), Insertionencoding: d.Get("insertionencoding").(string), Ndcppcompliancecertcheck: d.Get("ndcppcompliancecertcheck").(string), - Ocspcachesize: d.Get("ocspcachesize").(int), - Pushenctriggertimeout: d.Get("pushenctriggertimeout").(int), - Pushflag: d.Get("pushflag").(int), + Ocspcachesize: uint32(d.Get("ocspcachesize").(int)), + Pushenctriggertimeout: uint32(d.Get("pushenctriggertimeout").(int)), + Pushflag: uint32(d.Get("pushflag").(int)), Quantumsize: d.Get("quantumsize").(string), Sendclosenotify: d.Get("sendclosenotify").(string), Snihttphostmatch: d.Get("snihttphostmatch").(string), - Softwarecryptothreshold: d.Get("softwarecryptothreshold").(int), + Softwarecryptothreshold: uint32(d.Get("softwarecryptothreshold").(int)), Sslierrorcache: d.Get("sslierrorcache").(string), - Sslimaxerrorcachemem: d.Get("sslimaxerrorcachemem").(int), - Ssltriggertimeout: d.Get("ssltriggertimeout").(int), + Sslimaxerrorcachemem: uint32(d.Get("sslimaxerrorcachemem").(int)), + Ssltriggertimeout: uint32(d.Get("ssltriggertimeout").(int)), Strictcachecks: d.Get("strictcachecks").(string), Undefactioncontrol: d.Get("undefactioncontrol").(string), Undefactiondata: d.Get("undefactiondata").(string), } - err := client.UpdateUnnamedResource(netscaler.Sslparameter.Type(), &sslparameter) + err := client.UpdateUnnamedResource(service.Sslparameter.Type(), &sslparameter) if err != nil { return fmt.Errorf("Error updating sslparameter") } @@ -200,7 +200,7 @@ func readSslparameterFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In readSslparameterFunc") client := meta.(*NetScalerNitroClient).client log.Printf("[DEBUG] citrixadc-provider: Reading sslparameter state") - data, err := client.FindResource(netscaler.Sslparameter.Type(), "") + data, err := client.FindResource(service.Sslparameter.Type(), "") if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing sslparameter state") d.SetId("") @@ -243,12 +243,12 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { hasChange := false if d.HasChange("crlmemorysizemb") { log.Printf("[DEBUG] citrixadc-provider: Crlmemorysizemb has changed for sslparameter, starting update") - sslparameter.Crlmemorysizemb = d.Get("crlmemorysizemb").(int) + sslparameter.Crlmemorysizemb = uint32(d.Get("crlmemorysizemb").(int)) hasChange = true } if d.HasChange("cryptodevdisablelimit") { log.Printf("[DEBUG] citrixadc-provider: Cryptodevdisablelimit has changed for sslparameter, starting update") - sslparameter.Cryptodevdisablelimit = d.Get("cryptodevdisablelimit").(int) + sslparameter.Cryptodevdisablelimit = uint32(d.Get("cryptodevdisablelimit").(int)) hasChange = true } if d.HasChange("defaultprofile") { @@ -268,7 +268,7 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("encrypttriggerpktcount") { log.Printf("[DEBUG] citrixadc-provider: Encrypttriggerpktcount has changed for sslparameter, starting update") - sslparameter.Encrypttriggerpktcount = d.Get("encrypttriggerpktcount").(int) + sslparameter.Encrypttriggerpktcount = uint32(d.Get("encrypttriggerpktcount").(int)) hasChange = true } if d.HasChange("heterogeneoussslhw") { @@ -298,17 +298,17 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("ocspcachesize") { log.Printf("[DEBUG] citrixadc-provider: Ocspcachesize has changed for sslparameter, starting update") - sslparameter.Ocspcachesize = d.Get("ocspcachesize").(int) + sslparameter.Ocspcachesize = uint32(d.Get("ocspcachesize").(int)) hasChange = true } if d.HasChange("pushenctriggertimeout") { log.Printf("[DEBUG] citrixadc-provider: Pushenctriggertimeout has changed for sslparameter, starting update") - sslparameter.Pushenctriggertimeout = d.Get("pushenctriggertimeout").(int) + sslparameter.Pushenctriggertimeout = uint32(d.Get("pushenctriggertimeout").(int)) hasChange = true } if d.HasChange("pushflag") { log.Printf("[DEBUG] citrixadc-provider: Pushflag has changed for sslparameter, starting update") - sslparameter.Pushflag = d.Get("pushflag").(int) + sslparameter.Pushflag = uint32(d.Get("pushflag").(int)) hasChange = true } if d.HasChange("quantumsize") { @@ -328,7 +328,7 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("softwarecryptothreshold") { log.Printf("[DEBUG] citrixadc-provider: Softwarecryptothreshold has changed for sslparameter, starting update") - sslparameter.Softwarecryptothreshold = d.Get("softwarecryptothreshold").(int) + sslparameter.Softwarecryptothreshold = uint32(d.Get("softwarecryptothreshold").(int)) hasChange = true } if d.HasChange("sslierrorcache") { @@ -338,12 +338,12 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sslimaxerrorcachemem") { log.Printf("[DEBUG] citrixadc-provider: Sslimaxerrorcachemem has changed for sslparameter, starting update") - sslparameter.Sslimaxerrorcachemem = d.Get("sslimaxerrorcachemem").(int) + sslparameter.Sslimaxerrorcachemem = uint32(d.Get("sslimaxerrorcachemem").(int)) hasChange = true } if d.HasChange("ssltriggertimeout") { log.Printf("[DEBUG] citrixadc-provider: Ssltriggertimeout has changed for sslparameter, starting update") - sslparameter.Ssltriggertimeout = d.Get("ssltriggertimeout").(int) + sslparameter.Ssltriggertimeout = uint32(d.Get("ssltriggertimeout").(int)) hasChange = true } if d.HasChange("strictcachecks") { @@ -363,7 +363,7 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - err := client.UpdateUnnamedResource(netscaler.Sslparameter.Type(), &sslparameter) + err := client.UpdateUnnamedResource(service.Sslparameter.Type(), &sslparameter) if err != nil { return fmt.Errorf("Error updating sslparameter: %s", err.Error()) } diff --git a/citrixadc/resource_citrixadc_sslparameter_test.go b/citrixadc/resource_citrixadc_sslparameter_test.go index 61310b548..5e2ad3cb7 100644 --- a/citrixadc/resource_citrixadc_sslparameter_test.go +++ b/citrixadc/resource_citrixadc_sslparameter_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -87,7 +87,7 @@ func testAccCheckSslparameterExist(n string, id *string) resource.TestCheckFunc } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslparameter.Type(), "") + data, err := nsClient.FindResource(service.Sslparameter.Type(), "") if err != nil { return err diff --git a/citrixadc/resource_citrixadc_sslpolicy.go b/citrixadc/resource_citrixadc_sslpolicy.go index 31f190bed..381eb0e22 100644 --- a/citrixadc/resource_citrixadc_sslpolicy.go +++ b/citrixadc/resource_citrixadc_sslpolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -68,7 +68,7 @@ func createSslpolicyFunc(d *schema.ResourceData, meta interface{}) error { Undefaction: d.Get("undefaction").(string), } - _, err := client.AddResource(netscaler.Sslpolicy.Type(), sslpolicyName, &sslpolicy) + _, err := client.AddResource(service.Sslpolicy.Type(), sslpolicyName, &sslpolicy) if err != nil { return err } @@ -88,7 +88,7 @@ func readSslpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client sslpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading sslpolicy state %s", sslpolicyName) - data, err := client.FindResource(netscaler.Sslpolicy.Type(), sslpolicyName) + data, err := client.FindResource(service.Sslpolicy.Type(), sslpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing sslpolicy state %s", sslpolicyName) d.SetId("") @@ -147,7 +147,7 @@ func updateSslpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Sslpolicy.Type(), sslpolicyName, &sslpolicy) + _, err := client.UpdateResource(service.Sslpolicy.Type(), sslpolicyName, &sslpolicy) if err != nil { return fmt.Errorf("Error updating sslpolicy %s", sslpolicyName) } @@ -159,7 +159,7 @@ func deleteSslpolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSslpolicyFunc") client := meta.(*NetScalerNitroClient).client sslpolicyName := d.Id() - err := client.DeleteResource(netscaler.Sslpolicy.Type(), sslpolicyName) + err := client.DeleteResource(service.Sslpolicy.Type(), sslpolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslpolicy_test.go b/citrixadc/resource_citrixadc_sslpolicy_test.go index d2667b02d..bbdf1abc7 100644 --- a/citrixadc/resource_citrixadc_sslpolicy_test.go +++ b/citrixadc/resource_citrixadc_sslpolicy_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -104,7 +104,7 @@ func testAccCheckSslpolicyExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Sslpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -130,7 +130,7 @@ func testAccCheckSslpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("SSL Policy %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_sslprofile.go b/citrixadc/resource_citrixadc_sslprofile.go index ab0a7c81b..8989f42c2 100644 --- a/citrixadc/resource_citrixadc_sslprofile.go +++ b/citrixadc/resource_citrixadc_sslprofile.go @@ -1,14 +1,14 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" - "bytes" "fmt" "log" "strconv" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/schema" ) @@ -512,7 +512,7 @@ func createSslprofileFunc(d *schema.ResourceData, meta interface{}) error { Alpnprotocol: d.Get("alpnprotocol").(string), } - _, err := client.AddResource(netscaler.Sslprofile.Type(), sslprofileName, &sslprofile) + _, err := client.AddResource(service.Sslprofile.Type(), sslprofileName, &sslprofile) if err != nil { return err } @@ -540,7 +540,7 @@ func readSslprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client sslprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading sslprofile state %s", sslprofileName) - data, err := client.FindResource(netscaler.Sslprofile.Type(), sslprofileName) + data, err := client.FindResource(service.Sslprofile.Type(), sslprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing sslprofile state %s", sslprofileName) d.SetId("") @@ -945,7 +945,7 @@ func updateSslprofileFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Sslprofile.Type(), sslprofileName, &sslprofile) + _, err := client.UpdateResource(service.Sslprofile.Type(), sslprofileName, &sslprofile) if err != nil { return fmt.Errorf("Error updating sslprofile %s", sslprofileName) } @@ -971,7 +971,7 @@ func deleteSslprofileFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSslprofileFunc") client := meta.(*NetScalerNitroClient).client sslprofileName := d.Id() - err := client.DeleteResource(netscaler.Sslprofile.Type(), sslprofileName) + err := client.DeleteResource(service.Sslprofile.Type(), sslprofileName) if err != nil { return err } @@ -993,7 +993,7 @@ func deleteSingleSslprofileEcccurveBinding(d *schema.ResourceData, meta interfac log.Printf("args is %v", args) - if err := client.DeleteResourceWithArgs(netscaler.Sslprofile_ecccurve_binding.Type(), sslprofileName, args); err != nil { + if err := client.DeleteResourceWithArgs(service.Sslprofile_ecccurve_binding.Type(), sslprofileName, args); err != nil { log.Printf("[DEBUG] citrixadc-provider: Error deleting EccCurve binding %v\n", sslprofileName) return err } @@ -1010,7 +1010,7 @@ func addSingleSslprofileEcccurveBinding(d *schema.ResourceData, meta interface{} bindingStruct.Ecccurvename = ecccurvename // We need to do a HTTP PUT hence the UpdateResource - if _, err := client.UpdateResource(netscaler.Sslprofile_ecccurve_binding.Type(), bindingStruct.Name, bindingStruct); err != nil { + if _, err := client.UpdateResource(service.Sslprofile_ecccurve_binding.Type(), bindingStruct.Name, bindingStruct); err != nil { return err } return nil @@ -1020,7 +1020,7 @@ func getDefaultSslprofileEcccurveBindings(d *schema.ResourceData, meta interface log.Printf("[DEBUG] citrixadc-provider: In getDefaultSslprofileEcccurveBindings") client := meta.(*NetScalerNitroClient).client sslprofileName := d.Get("name").(string) - bindings, _ := client.FindResourceArray(netscaler.Sslprofile_ecccurve_binding.Type(), sslprofileName) + bindings, _ := client.FindResourceArray(service.Sslprofile_ecccurve_binding.Type(), sslprofileName) log.Printf("bindings %v\n", bindings) defaultSslprofileEcccurveBindings := make([]string, len(bindings)) @@ -1087,7 +1087,7 @@ func readSslprofileEcccurvebindings(d *schema.ResourceData, meta interface{}) er log.Printf("[DEBUG] citrixadc-provider: In readSslprofileEcccurvebindings") client := meta.(*NetScalerNitroClient).client sslprofileName := d.Get("name").(string) - bindings, _ := client.FindResourceArray(netscaler.Sslprofile_ecccurve_binding.Type(), sslprofileName) + bindings, _ := client.FindResourceArray(service.Sslprofile_ecccurve_binding.Type(), sslprofileName) log.Printf("bindings %v\n", bindings) processedBindings := make([]interface{}, len(bindings)) @@ -1120,7 +1120,7 @@ func deleteSingleSslprofileCipherBinding(d *schema.ResourceData, meta interface{ log.Printf("args is %v", args) - if err := client.DeleteResourceWithArgs(netscaler.Sslprofile_sslcipher_binding.Type(), sslprofileName, args); err != nil { + if err := client.DeleteResourceWithArgs(service.Sslprofile_sslcipher_binding.Type(), sslprofileName, args); err != nil { log.Printf("[DEBUG] citrixadc-provider: Error deleting Cipher binding %v\n", binding) return err } @@ -1133,7 +1133,7 @@ func addSingleSslprofileCipherBinding(d *schema.ResourceData, meta interface{}, client := meta.(*NetScalerNitroClient).client log.Printf("Adding binding %v", binding) - bindingStruct := ssl.Sslprofilesslcipherbinding{} + bindingStruct := ssl.Sslprofilecipherbinding{} bindingStruct.Name = d.Get("name").(string) if d, ok := binding["ciphername"]; ok { @@ -1141,11 +1141,11 @@ func addSingleSslprofileCipherBinding(d *schema.ResourceData, meta interface{}, } if d, ok := binding["cipherpriority"]; ok { - bindingStruct.Cipherpriority = d.(int) + bindingStruct.Cipherpriority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource - if _, err := client.UpdateResource(netscaler.Sslprofile_sslcipher_binding.Type(), bindingStruct.Name, bindingStruct); err != nil { + if _, err := client.UpdateResource(service.Sslprofile_sslcipher_binding.Type(), bindingStruct.Name, bindingStruct); err != nil { return err } return nil @@ -1155,7 +1155,7 @@ func getDefaultSslprofileCipherBindings(d *schema.ResourceData, meta interface{} log.Printf("[DEBUG] citrixadc-provider: In getDefaultSslprofileCipherBindings") client := meta.(*NetScalerNitroClient).client sslprofileName := d.Get("name").(string) - bindings, _ := client.FindResourceArray(netscaler.Sslprofile_sslcipher_binding.Type(), sslprofileName) + bindings, _ := client.FindResourceArray(service.Sslprofile_sslcipher_binding.Type(), sslprofileName) log.Printf("bindings %v\n", bindings) defaultSslprofileCipherBindings := make([]interface{}, len(bindings)) @@ -1232,7 +1232,7 @@ func readSslprofileCipherbindings(d *schema.ResourceData, meta interface{}) erro return nil } sslprofileName := d.Get("name").(string) - bindings, _ := client.FindResourceArray(netscaler.Sslprofile_sslcipher_binding.Type(), sslprofileName) + bindings, _ := client.FindResourceArray(service.Sslprofile_sslcipher_binding.Type(), sslprofileName) log.Printf("bindings %v\n", bindings) processedBindings := make([]interface{}, len(bindings)) diff --git a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding.go b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding.go index f72bb71d4..3de0c6eef 100644 --- a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding.go +++ b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -49,13 +49,13 @@ func createSslprofile_sslcipher_bindingFunc(d *schema.ResourceData, meta interfa // Use `,` as the separator since it is invalid character for adc entity strings bindingId := fmt.Sprintf("%s,%s", profileName, cipherName) - sslprofile_sslcipher_binding := ssl.Sslprofilesslcipherbinding{ + sslprofile_sslcipher_binding := ssl.Sslprofilecipherbinding{ Ciphername: d.Get("ciphername").(string), - Cipherpriority: d.Get("cipherpriority").(int), + Cipherpriority: uint32(d.Get("cipherpriority").(int)), Name: d.Get("name").(string), } - err := client.UpdateUnnamedResource(netscaler.Sslprofile_sslcipher_binding.Type(), &sslprofile_sslcipher_binding) + err := client.UpdateUnnamedResource(service.Sslprofile_sslcipher_binding.Type(), &sslprofile_sslcipher_binding) if err != nil { return err } @@ -88,7 +88,7 @@ func readSslprofile_sslcipher_bindingFunc(d *schema.ResourceData, meta interface profileName := idSlice[0] cipherName := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslprofile_sslcipher_binding", ResourceName: profileName, ResourceMissingErrorCode: 3248, @@ -155,7 +155,7 @@ func deleteSslprofile_sslcipher_bindingFunc(d *schema.ResourceData, meta interfa args := make([]string, 0) args = append(args, fmt.Sprintf("ciphername:%v", cipherName)) - err := client.DeleteResourceWithArgs(netscaler.Sslprofile_sslcipher_binding.Type(), profileName, args) + err := client.DeleteResourceWithArgs(service.Sslprofile_sslcipher_binding.Type(), profileName, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go index b5c5b75b8..ced113080 100644 --- a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go +++ b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccSslprofile_sslcipher_binding_basic(t *testing.T) { @@ -85,7 +86,7 @@ func testAccCheckSslprofile_sslcipher_bindingExist(n string, id *string) resourc profileName := idSlice[0] cipherName := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslprofile_sslcipher_binding", ResourceName: profileName, ResourceMissingErrorCode: 3248, @@ -133,7 +134,7 @@ func testAccCheckSslprofile_sslcipher_bindingDestroy(s *terraform.State) error { profileName := idSlice[0] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslprofile_sslcipher_binding", ResourceName: profileName, ResourceMissingErrorCode: 3248, diff --git a/citrixadc/resource_citrixadc_sslprofile_test.go b/citrixadc/resource_citrixadc_sslprofile_test.go index 3e47c1807..599d7dba8 100644 --- a/citrixadc/resource_citrixadc_sslprofile_test.go +++ b/citrixadc/resource_citrixadc_sslprofile_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccSslprofile_add = ` @@ -168,7 +169,7 @@ func testAccCheckSslprofileExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Sslprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Sslprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -194,7 +195,7 @@ func testAccCheckSslprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("SSL Profile %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding.go b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding.go index 987646b4e..4b8b03b3a 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -72,7 +72,7 @@ func createSslvserver_sslcertkey_bindingFunc(d *schema.ResourceData, meta interf certkeyname := d.Get("certkeyname").(string) bindingId := fmt.Sprintf("%s,%s", vservername, certkeyname) - sslvserver_sslcertkey_binding := ssl.Sslvserversslcertkeybinding{ + sslvserver_sslcertkey_binding := ssl.Sslvservercertkeybinding{ Ca: d.Get("ca").(bool), Certkeyname: d.Get("certkeyname").(string), Crlcheck: d.Get("crlcheck").(string), @@ -82,7 +82,7 @@ func createSslvserver_sslcertkey_bindingFunc(d *schema.ResourceData, meta interf Vservername: d.Get("vservername").(string), } - err := client.UpdateUnnamedResource(netscaler.Sslvserver_sslcertkey_binding.Type(), &sslvserver_sslcertkey_binding) + err := client.UpdateUnnamedResource(service.Sslvserver_sslcertkey_binding.Type(), &sslvserver_sslcertkey_binding) if err != nil { return err } @@ -108,7 +108,7 @@ func readSslvserver_sslcertkey_bindingFunc(d *schema.ResourceData, meta interfac certkeyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading sslvserver_sslcertkey_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslcertkey_binding", ResourceName: vservername, ResourceMissingErrorCode: 461, @@ -190,7 +190,7 @@ func deleteSslvserver_sslcertkey_bindingFunc(d *schema.ResourceData, meta interf args = append(args, fmt.Sprintf("ocspcheck:%v", v)) } - err := client.DeleteResourceWithArgs(netscaler.Sslvserver_sslcertkey_binding.Type(), vservername, args) + err := client.DeleteResourceWithArgs(service.Sslvserver_sslcertkey_binding.Type(), vservername, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go index 54e754fb7..9e96bf318 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) const testAccSslvserver_sslcertkey_binding_lb_step1 = ` @@ -281,7 +282,7 @@ func testAccCheckSslvserver_sslcertkey_bindingExist(n string, id *string) resour vservername := idSlice[0] certkeyname := idSlice[1] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslcertkey_binding", ResourceName: vservername, ResourceMissingErrorCode: 461, @@ -322,7 +323,7 @@ func testAccCheckSslvserver_sslcertkey_bindingDestroy(s *terraform.State) error return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Sslvserver_sslcertkey_binding.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Sslvserver_sslcertkey_binding.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("sslvserver_sslcertkey_binding %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding.go b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding.go index 15088db23..33990011b 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -80,18 +80,18 @@ func createSslvserver_sslpolicy_bindingFunc(d *schema.ResourceData, meta interfa // Use `,` as the separator since it is invalid character for adc entity strings bindingId := fmt.Sprintf("%s,%s", vservername, policyname) - sslvserver_sslpolicy_binding := ssl.Sslvserversslpolicybinding{ + sslvserver_sslpolicy_binding := ssl.Sslvserverpolicybinding{ Gotopriorityexpression: d.Get("gotopriorityexpression").(string), Invoke: d.Get("invoke").(bool), Labelname: d.Get("labelname").(string), Labeltype: d.Get("labeltype").(string), Policyname: d.Get("policyname").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Type: d.Get("type").(string), Vservername: d.Get("vservername").(string), } - err := client.UpdateUnnamedResource(netscaler.Sslvserver_sslpolicy_binding.Type(), &sslvserver_sslpolicy_binding) + err := client.UpdateUnnamedResource(service.Sslvserver_sslpolicy_binding.Type(), &sslvserver_sslpolicy_binding) if err != nil { return err } @@ -125,7 +125,7 @@ func readSslvserver_sslpolicy_bindingFunc(d *schema.ResourceData, meta interface policyname := idSlice[1] log.Printf("[DEBUG] citrixadc-provider: Reading sslvserver_sslpolicy_binding state %s", bindingId) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslpolicy_binding", ResourceName: vservername, ResourceMissingErrorCode: 461, @@ -200,7 +200,7 @@ func deleteSslvserver_sslpolicy_bindingFunc(d *schema.ResourceData, meta interfa args = append(args, fmt.Sprintf("type:%v", v)) } - err := client.DeleteResourceWithArgs(netscaler.Sslvserver_sslpolicy_binding.Type(), vservername, args) + err := client.DeleteResourceWithArgs(service.Sslvserver_sslpolicy_binding.Type(), vservername, args) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go index 9b366b709..95f9ee15c 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccSslvserver_sslpolicy_binding_lbvserver(t *testing.T) { @@ -93,7 +94,7 @@ func testAccCheckSslvserver_sslpolicy_bindingExist(n string, id *string) resourc policyname := idSlice[1] client := testAccProvider.Meta().(*NetScalerNitroClient).client - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslpolicy_binding", ResourceName: vservername, ResourceMissingErrorCode: 461, @@ -139,7 +140,7 @@ func testAccCheckSslvserver_sslpolicy_bindingDestroy(s *terraform.State) error { vservername := idSlice[0] - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslpolicy_binding", ResourceName: vservername, ResourceMissingErrorCode: 461, diff --git a/citrixadc/resource_citrixadc_systemcmdpolicy.go b/citrixadc/resource_citrixadc_systemcmdpolicy.go index 0f5f6dde9..279022f78 100644 --- a/citrixadc/resource_citrixadc_systemcmdpolicy.go +++ b/citrixadc/resource_citrixadc_systemcmdpolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/system" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -48,7 +48,7 @@ func createSystemcmdpolicyFunc(d *schema.ResourceData, meta interface{}) error { Policyname: d.Get("policyname").(string), } - _, err := client.AddResource(netscaler.Systemcmdpolicy.Type(), systemcmdpolicyName, &systemcmdpolicy) + _, err := client.AddResource(service.Systemcmdpolicy.Type(), systemcmdpolicyName, &systemcmdpolicy) if err != nil { return err } @@ -68,7 +68,7 @@ func readSystemcmdpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client systemcmdpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading systemcmdpolicy state %s", systemcmdpolicyName) - data, err := client.FindResource(netscaler.Systemcmdpolicy.Type(), systemcmdpolicyName) + data, err := client.FindResource(service.Systemcmdpolicy.Type(), systemcmdpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing systemcmdpolicy state %s", systemcmdpolicyName) d.SetId("") @@ -106,7 +106,7 @@ func updateSystemcmdpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Systemcmdpolicy.Type(), systemcmdpolicyName, &systemcmdpolicy) + _, err := client.UpdateResource(service.Systemcmdpolicy.Type(), systemcmdpolicyName, &systemcmdpolicy) if err != nil { return fmt.Errorf("Error updating systemcmdpolicy %s:%s", systemcmdpolicyName, err.Error()) } @@ -118,7 +118,7 @@ func deleteSystemcmdpolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSystemcmdpolicyFunc") client := meta.(*NetScalerNitroClient).client systemcmdpolicyName := d.Id() - err := client.DeleteResource(netscaler.Systemcmdpolicy.Type(), systemcmdpolicyName) + err := client.DeleteResource(service.Systemcmdpolicy.Type(), systemcmdpolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_systemcmdpolicy_test.go b/citrixadc/resource_citrixadc_systemcmdpolicy_test.go index adde9c6fa..bf170cece 100644 --- a/citrixadc/resource_citrixadc_systemcmdpolicy_test.go +++ b/citrixadc/resource_citrixadc_systemcmdpolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccSystemcmdpolicy_basic(t *testing.T) { @@ -71,7 +72,7 @@ func testAccCheckSystemcmdpolicyExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Systemcmdpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Systemcmdpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -97,7 +98,7 @@ func testAccCheckSystemcmdpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Systemcmdpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Systemcmdpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_systemextramgmtcpu.go b/citrixadc/resource_citrixadc_systemextramgmtcpu.go index 7a29d189a..751241e7a 100644 --- a/citrixadc/resource_citrixadc_systemextramgmtcpu.go +++ b/citrixadc/resource_citrixadc_systemextramgmtcpu.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ns" - "github.com/chiradeep/go-nitro/config/system" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/ns" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" @@ -108,7 +108,7 @@ func readSystemextramgmtcpuFunc(d *schema.ResourceData, meta interface{}) error client := meta.(*NetScalerNitroClient).client systemextramgmtcpuName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading systemextramgmtcpu state %s", systemextramgmtcpuName) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "systemextramgmtcpu", } dataarray, err := client.FindResourceArrayWithParams(findParams) diff --git a/citrixadc/resource_citrixadc_systemfile.go b/citrixadc/resource_citrixadc_systemfile.go index 610a14646..6e49caa9d 100644 --- a/citrixadc/resource_citrixadc_systemfile.go +++ b/citrixadc/resource_citrixadc_systemfile.go @@ -1,10 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/system" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" - _ "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/helper/schema" "encoding/base64" @@ -81,7 +80,7 @@ func createSystemfileFunc(d *schema.ResourceData, meta interface{}) error { Filename: filename, } - _, err := client.AddResource(netscaler.Systemfile.Type(), "", &systemfile) + _, err := client.AddResource(service.Systemfile.Type(), "", &systemfile) if err != nil { return err } @@ -111,7 +110,7 @@ func readSystemfileFunc(d *schema.ResourceData, meta interface{}) error { if err != nil { return err } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "systemfile", ArgsMap: argsMap, } diff --git a/citrixadc/resource_citrixadc_systemfile_test.go b/citrixadc/resource_citrixadc_systemfile_test.go index 1bfbcddcf..08af19eb0 100644 --- a/citrixadc/resource_citrixadc_systemfile_test.go +++ b/citrixadc/resource_citrixadc_systemfile_test.go @@ -17,11 +17,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "net/url" "testing" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccSystemfile_basic(t *testing.T) { @@ -68,7 +69,7 @@ func testAccCheckSystemfileExist(n string, id *string, pathData []string) resour argsMap := make(map[string]string) argsMap["filelocation"] = url.QueryEscape(pathData[0]) argsMap["filename"] = url.QueryEscape(pathData[1]) - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "systemfile", ArgsMap: argsMap, } @@ -99,7 +100,7 @@ func testAccCheckSystemfileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Systemfile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Systemfile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_systemgroup.go b/citrixadc/resource_citrixadc_systemgroup.go index 4ea4ac72a..bc4d304b5 100644 --- a/citrixadc/resource_citrixadc_systemgroup.go +++ b/citrixadc/resource_citrixadc_systemgroup.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/system" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/schema" @@ -76,10 +76,10 @@ func createSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { systemgroup := system.Systemgroup{ Groupname: d.Get("groupname").(string), Promptstring: d.Get("promptstring").(string), - Timeout: d.Get("timeout").(int), + Timeout: uint64(d.Get("timeout").(int)), } - _, err := client.AddResource(netscaler.Systemgroup.Type(), systemgroupName, &systemgroup) + _, err := client.AddResource(service.Systemgroup.Type(), systemgroupName, &systemgroup) if err != nil { return err } @@ -109,7 +109,7 @@ func readSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client systemgroupName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading systemgroup state %s", systemgroupName) - data, err := client.FindResource(netscaler.Systemgroup.Type(), systemgroupName) + data, err := client.FindResource(service.Systemgroup.Type(), systemgroupName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing systemgroup state %s", systemgroupName) d.SetId("") @@ -151,12 +151,12 @@ func updateSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] citrixadc-provider: Timeout has changed for systemgroup %s, starting update", systemgroupName) - systemgroup.Timeout = d.Get("timeout").(int) + systemgroup.Timeout = uint64(d.Get("timeout").(int)) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Systemgroup.Type(), systemgroupName, &systemgroup) + _, err := client.UpdateResource(service.Systemgroup.Type(), systemgroupName, &systemgroup) if err != nil { return fmt.Errorf("Error updating systemgroup %s", systemgroupName) } @@ -181,7 +181,7 @@ func deleteSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSystemgroupFunc") client := meta.(*NetScalerNitroClient).client systemgroupName := d.Id() - err := client.DeleteResource(netscaler.Systemgroup.Type(), systemgroupName) + err := client.DeleteResource(service.Systemgroup.Type(), systemgroupName) if err != nil { return err } @@ -219,7 +219,7 @@ func addSingleSystemgroupCmdpolicyBinding(d *schema.ResourceData, meta interface client := meta.(*NetScalerNitroClient).client log.Printf("Adding binding %v", binding) - bindingStruct := system.Systemgroupsystemcmdpolicybinding{} + bindingStruct := system.Systemgroupcmdpolicybinding{} bindingStruct.Groupname = d.Get("groupname").(string) if d, ok := binding["policyname"]; ok { @@ -227,7 +227,7 @@ func addSingleSystemgroupCmdpolicyBinding(d *schema.ResourceData, meta interface } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource @@ -318,7 +318,7 @@ func addSingleSystemgroupSystemuserBinding(d *schema.ResourceData, meta interfac log.Printf("[DEBUG] citrixadc-provider: In addSingleSystemgroupSystemuserBinding") client := meta.(*NetScalerNitroClient).client - bindingStruct := system.Systemgroupsystemuserbinding{} + bindingStruct := system.Systemgroupuserbinding{} bindingStruct.Groupname = d.Get("groupname").(string) bindingStruct.Username = username diff --git a/citrixadc/resource_citrixadc_systemgroup_test.go b/citrixadc/resource_citrixadc_systemgroup_test.go index 92f172edb..05cc27cd3 100644 --- a/citrixadc/resource_citrixadc_systemgroup_test.go +++ b/citrixadc/resource_citrixadc_systemgroup_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccSystemgroup_basic(t *testing.T) { @@ -71,7 +72,7 @@ func testAccCheckSystemgroupExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Systemgroup.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Systemgroup.Type(), rs.Primary.ID) if err != nil { return err @@ -97,7 +98,7 @@ func testAccCheckSystemgroupDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Systemgroup.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Systemgroup.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_systemuser.go b/citrixadc/resource_citrixadc_systemuser.go index 95996d23e..9aefe2322 100644 --- a/citrixadc/resource_citrixadc_systemuser.go +++ b/citrixadc/resource_citrixadc_systemuser.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/system" + "github.com/citrix/adc-nitro-go/resource/config/system" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/schema" @@ -98,14 +98,14 @@ func createSystemuserFunc(d *schema.ResourceData, meta interface{}) error { systemuser := system.Systemuser{ Externalauth: d.Get("externalauth").(string), Logging: d.Get("logging").(string), - Maxsession: d.Get("maxsession").(int), + Maxsession: uint32(d.Get("maxsession").(int)), Password: d.Get("password").(string), Promptstring: d.Get("promptstring").(string), - Timeout: d.Get("timeout").(int), + Timeout: uint64(d.Get("timeout").(int)), Username: username, } - _, err := client.AddResource(netscaler.Systemuser.Type(), username, &systemuser) + _, err := client.AddResource(service.Systemuser.Type(), username, &systemuser) if err != nil { return err } @@ -130,7 +130,7 @@ func readSystemuserFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client systemuserName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading systemuser state %s", systemuserName) - data, err := client.FindResource(netscaler.Systemuser.Type(), systemuserName) + data, err := client.FindResource(service.Systemuser.Type(), systemuserName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing systemuser state %s", systemuserName) d.SetId("") @@ -189,7 +189,7 @@ func updateSystemuserFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxsession") { log.Printf("[DEBUG] citrixadc-provider: Maxsession has changed for systemuser %s, starting update", systemuserName) - systemuser.Maxsession = d.Get("maxsession").(int) + systemuser.Maxsession = uint32(d.Get("maxsession").(int)) hasChange = true } if d.HasChange("password") { @@ -204,12 +204,12 @@ func updateSystemuserFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] citrixadc-provider: Timeout has changed for systemuser %s, starting update", systemuserName) - systemuser.Timeout = d.Get("timeout").(int) + systemuser.Timeout = uint64(d.Get("timeout").(int)) hasChange = true } if hasChange { - _, err := client.UpdateResource(netscaler.Systemuser.Type(), systemuserName, &systemuser) + _, err := client.UpdateResource(service.Systemuser.Type(), systemuserName, &systemuser) if err != nil { return fmt.Errorf("Error updating systemuser %s", systemuserName) } @@ -226,7 +226,7 @@ func deleteSystemuserFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteSystemuserFunc") client := meta.(*NetScalerNitroClient).client systemuserName := d.Id() - err := client.DeleteResource(netscaler.Systemuser.Type(), systemuserName) + err := client.DeleteResource(service.Systemuser.Type(), systemuserName) if err != nil { return err } @@ -264,7 +264,7 @@ func addSingleCmdpolicyBinding(d *schema.ResourceData, meta interface{}, binding client := meta.(*NetScalerNitroClient).client log.Printf("Adding binding %v", binding) - bindingStruct := system.Systemusersystemcmdpolicybinding{} + bindingStruct := system.Systemusercmdpolicybinding{} bindingStruct.Username = d.Get("username").(string) if d, ok := binding["policyname"]; ok { @@ -272,7 +272,7 @@ func addSingleCmdpolicyBinding(d *schema.ResourceData, meta interface{}, binding } if d, ok := binding["priority"]; ok { - bindingStruct.Priority = d.(int) + bindingStruct.Priority = uint32(d.(int)) } // We need to do a HTTP PUT hence the UpdateResource diff --git a/citrixadc/resource_citrixadc_systemuser_test.go b/citrixadc/resource_citrixadc_systemuser_test.go index eca9baf91..bd7cbfb0c 100644 --- a/citrixadc/resource_citrixadc_systemuser_test.go +++ b/citrixadc/resource_citrixadc_systemuser_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccSystemuser_basic(t *testing.T) { @@ -65,7 +66,7 @@ func testAccCheckSystemuserExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Systemuser.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Systemuser.Type(), rs.Primary.ID) if err != nil { return err @@ -91,7 +92,7 @@ func testAccCheckSystemuserDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Systemuser.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Systemuser.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("LB vserver %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_transformaction.go b/citrixadc/resource_citrixadc_transformaction.go index 615bfe5e1..af6ca4887 100644 --- a/citrixadc/resource_citrixadc_transformaction.go +++ b/citrixadc/resource_citrixadc_transformaction.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/transform" + "github.com/citrix/adc-nitro-go/resource/config/transform" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -89,12 +89,12 @@ func createTransformactionFunc(d *schema.ResourceData, meta interface{}) error { // Create does not support all attributes transformactionNew := transform.Transformaction{ Name: d.Get("name").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Profilename: d.Get("profilename").(string), State: d.Get("state").(string), } - _, err := client.AddResource(netscaler.Transformaction.Type(), transformactionName, &transformactionNew) + _, err := client.AddResource(service.Transformaction.Type(), transformactionName, &transformactionNew) if err != nil { return err } @@ -105,7 +105,7 @@ func createTransformactionFunc(d *schema.ResourceData, meta interface{}) error { Cookiedomainfrom: d.Get("cookiedomainfrom").(string), Cookiedomaininto: d.Get("cookiedomaininto").(string), Name: d.Get("name").(string), - Priority: d.Get("priority").(int), + Priority: uint32(d.Get("priority").(int)), Requrlfrom: d.Get("requrlfrom").(string), Requrlinto: d.Get("requrlinto").(string), Resurlfrom: d.Get("resurlfrom").(string), @@ -113,7 +113,7 @@ func createTransformactionFunc(d *schema.ResourceData, meta interface{}) error { State: d.Get("state").(string), } - _, err = client.UpdateResource(netscaler.Transformaction.Type(), transformactionName, &transformaction) + _, err = client.UpdateResource(service.Transformaction.Type(), transformactionName, &transformaction) if err != nil { return err } @@ -133,7 +133,7 @@ func readTransformactionFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client transformactionName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading transformaction state %s", transformactionName) - data, err := client.FindResource(netscaler.Transformaction.Type(), transformactionName) + data, err := client.FindResource(service.Transformaction.Type(), transformactionName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing transformaction state %s", transformactionName) d.SetId("") @@ -187,7 +187,7 @@ func updateTransformactionFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] citrixadc-provider: Priority has changed for transformaction %s, starting update", transformactionName) - transformaction.Priority = d.Get("priority").(int) + transformaction.Priority = uint32(d.Get("priority").(int)) hasChange = true } if d.HasChange("profilename") { @@ -222,7 +222,7 @@ func updateTransformactionFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Transformaction.Type(), transformactionName, &transformaction) + _, err := client.UpdateResource(service.Transformaction.Type(), transformactionName, &transformaction) if err != nil { return fmt.Errorf("Error updating transformaction %s", transformactionName) } @@ -234,7 +234,7 @@ func deleteTransformactionFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteTransformactionFunc") client := meta.(*NetScalerNitroClient).client transformactionName := d.Id() - err := client.DeleteResource(netscaler.Transformaction.Type(), transformactionName) + err := client.DeleteResource(service.Transformaction.Type(), transformactionName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_transformaction_test.go b/citrixadc/resource_citrixadc_transformaction_test.go index 2eab6eb94..47ed3c3c4 100644 --- a/citrixadc/resource_citrixadc_transformaction_test.go +++ b/citrixadc/resource_citrixadc_transformaction_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccTransformaction_basic_step1 = ` @@ -131,7 +132,7 @@ func testAccCheckTransformactionExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Transformaction.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Transformaction.Type(), rs.Primary.ID) if err != nil { return err @@ -157,7 +158,7 @@ func testAccCheckTransformactionDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Transformaction.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Transformaction.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("transformaction %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_transformpolicy.go b/citrixadc/resource_citrixadc_transformpolicy.go index 570160d70..0565eea0e 100644 --- a/citrixadc/resource_citrixadc_transformpolicy.go +++ b/citrixadc/resource_citrixadc_transformpolicy.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/transform" + "github.com/citrix/adc-nitro-go/resource/config/transform" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -62,7 +62,7 @@ func createTransformpolicyFunc(d *schema.ResourceData, meta interface{}) error { Rule: d.Get("rule").(string), } - _, err := client.AddResource(netscaler.Transformpolicy.Type(), transformpolicyName, &transformpolicy) + _, err := client.AddResource(service.Transformpolicy.Type(), transformpolicyName, &transformpolicy) if err != nil { return err } @@ -82,7 +82,7 @@ func readTransformpolicyFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client transformpolicyName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading transformpolicy state %s", transformpolicyName) - data, err := client.FindResource(netscaler.Transformpolicy.Type(), transformpolicyName) + data, err := client.FindResource(service.Transformpolicy.Type(), transformpolicyName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing transformpolicy state %s", transformpolicyName) d.SetId("") @@ -134,7 +134,7 @@ func updateTransformpolicyFunc(d *schema.ResourceData, meta interface{}) error { } if hasChange { - _, err := client.UpdateResource(netscaler.Transformpolicy.Type(), transformpolicyName, &transformpolicy) + _, err := client.UpdateResource(service.Transformpolicy.Type(), transformpolicyName, &transformpolicy) if err != nil { return fmt.Errorf("Error updating transformpolicy %s", transformpolicyName) } @@ -146,7 +146,7 @@ func deleteTransformpolicyFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteTransformpolicyFunc") client := meta.(*NetScalerNitroClient).client transformpolicyName := d.Id() - err := client.DeleteResource(netscaler.Transformpolicy.Type(), transformpolicyName) + err := client.DeleteResource(service.Transformpolicy.Type(), transformpolicyName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_transformpolicy_test.go b/citrixadc/resource_citrixadc_transformpolicy_test.go index 33f0c45ac..77a602a72 100644 --- a/citrixadc/resource_citrixadc_transformpolicy_test.go +++ b/citrixadc/resource_citrixadc_transformpolicy_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccTransformpolicy_basic_step1 = ` @@ -97,7 +98,7 @@ func testAccCheckTransformpolicyExist(n string, id *string) resource.TestCheckFu } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Transformpolicy.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Transformpolicy.Type(), rs.Primary.ID) if err != nil { return err @@ -123,7 +124,7 @@ func testAccCheckTransformpolicyDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Transformpolicy.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Transformpolicy.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("transformpolicy %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_transformprofile.go b/citrixadc/resource_citrixadc_transformprofile.go index 76eeb0e76..f306d520e 100644 --- a/citrixadc/resource_citrixadc_transformprofile.go +++ b/citrixadc/resource_citrixadc_transformprofile.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/transform" + "github.com/citrix/adc-nitro-go/resource/config/transform" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -54,7 +54,7 @@ func createTransformprofileFunc(d *schema.ResourceData, meta interface{}) error Type: d.Get("type").(string), } - _, err := client.AddResource(netscaler.Transformprofile.Type(), transformprofileName, &transformprofileNew) + _, err := client.AddResource(service.Transformprofile.Type(), transformprofileName, &transformprofileNew) if err != nil { return err } @@ -80,7 +80,7 @@ func createTransformprofileFunc(d *schema.ResourceData, meta interface{}) error doUpdate = true } if doUpdate { - _, err := client.UpdateResource(netscaler.Transformprofile.Type(), transformprofileName, &transformprofile) + _, err := client.UpdateResource(service.Transformprofile.Type(), transformprofileName, &transformprofile) if err != nil { return err } @@ -101,7 +101,7 @@ func readTransformprofileFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client transformprofileName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading transformprofile state %s", transformprofileName) - data, err := client.FindResource(netscaler.Transformprofile.Type(), transformprofileName) + data, err := client.FindResource(service.Transformprofile.Type(), transformprofileName) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing transformprofile state %s", transformprofileName) d.SetId("") @@ -147,7 +147,7 @@ func updateTransformprofileFunc(d *schema.ResourceData, meta interface{}) error } if hasChange { - _, err := client.UpdateResource(netscaler.Transformprofile.Type(), transformprofileName, &transformprofile) + _, err := client.UpdateResource(service.Transformprofile.Type(), transformprofileName, &transformprofile) if err != nil { return fmt.Errorf("Error updating transformprofile %s", transformprofileName) } @@ -159,7 +159,7 @@ func deleteTransformprofileFunc(d *schema.ResourceData, meta interface{}) error log.Printf("[DEBUG] citrixadc-provider: In deleteTransformprofileFunc") client := meta.(*NetScalerNitroClient).client transformprofileName := d.Id() - err := client.DeleteResource(netscaler.Transformprofile.Type(), transformprofileName) + err := client.DeleteResource(service.Transformprofile.Type(), transformprofileName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_transformprofile_test.go b/citrixadc/resource_citrixadc_transformprofile_test.go index 1fec00b29..cf376cf90 100644 --- a/citrixadc/resource_citrixadc_transformprofile_test.go +++ b/citrixadc/resource_citrixadc_transformprofile_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccTransformprofile_basic_step1 = ` @@ -103,7 +104,7 @@ func testAccCheckTransformprofileExist(n string, id *string) resource.TestCheckF } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Transformprofile.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Transformprofile.Type(), rs.Primary.ID) if err != nil { return err @@ -129,7 +130,7 @@ func testAccCheckTransformprofileDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Transformprofile.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Transformprofile.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("transformprofile %s still exists", rs.Primary.ID) } diff --git a/citrixadc/resource_citrixadc_vlan.go b/citrixadc/resource_citrixadc_vlan.go index 7dab11e17..d9fbf791d 100644 --- a/citrixadc/resource_citrixadc_vlan.go +++ b/citrixadc/resource_citrixadc_vlan.go @@ -1,9 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/network" + "github.com/citrix/adc-nitro-go/resource/config/network" + "github.com/citrix/adc-nitro-go/service" - "github.com/chiradeep/go-nitro/netscaler" "github.com/hashicorp/terraform/helper/schema" "fmt" @@ -64,14 +64,14 @@ func createVlanFunc(d *schema.ResourceData, meta interface{}) error { vlan := network.Vlan{ Aliasname: d.Get("aliasname").(string), Dynamicrouting: d.Get("dynamicrouting").(string), - Id: d.Get("vlanid").(int), + Id: uint32(d.Get("vlanid").(int)), Ipv6dynamicrouting: d.Get("ipv6dynamicrouting").(string), - Mtu: d.Get("mtu").(int), + Mtu: uint32(d.Get("mtu").(int)), Sharing: d.Get("sharing").(string), } vlanIdStr := strconv.Itoa(vlanId) - _, err := client.AddResource(netscaler.Vlan.Type(), vlanIdStr, &vlan) + _, err := client.AddResource(service.Vlan.Type(), vlanIdStr, &vlan) if err != nil { return err } @@ -91,7 +91,7 @@ func readVlanFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client vlanIdStr := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading vlan state %s", vlanIdStr) - data, err := client.FindResource(netscaler.Vlan.Type(), vlanIdStr) + data, err := client.FindResource(service.Vlan.Type(), vlanIdStr) if err != nil { log.Printf("[WARN] citrixadc-provider: Clearing vlan state %s", vlanIdStr) d.SetId("") @@ -114,7 +114,7 @@ func updateVlanFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client vlanId := d.Get("vlanid").(int) vlan := network.Vlan{ - Id: d.Get("vlanid").(int), + Id: uint32(d.Get("vlanid").(int)), } hasChange := false if d.HasChange("aliasname") { @@ -134,7 +134,7 @@ func updateVlanFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("mtu") { log.Printf("[DEBUG] citrixadc-provider: Mtu has changed for vlan %d, starting update", vlanId) - vlan.Mtu = d.Get("mtu").(int) + vlan.Mtu = uint32(d.Get("mtu").(int)) hasChange = true } if d.HasChange("sharing") { @@ -145,7 +145,7 @@ func updateVlanFunc(d *schema.ResourceData, meta interface{}) error { vlanIdStr := strconv.Itoa(vlanId) if hasChange { - _, err := client.UpdateResource(netscaler.Vlan.Type(), vlanIdStr, &vlan) + _, err := client.UpdateResource(service.Vlan.Type(), vlanIdStr, &vlan) if err != nil { return fmt.Errorf("Error updating vlan %d", vlanId) } @@ -157,7 +157,7 @@ func deleteVlanFunc(d *schema.ResourceData, meta interface{}) error { log.Printf("[DEBUG] citrixadc-provider: In deleteVlanFunc") client := meta.(*NetScalerNitroClient).client vlanName := d.Id() - err := client.DeleteResource(netscaler.Vlan.Type(), vlanName) + err := client.DeleteResource(service.Vlan.Type(), vlanName) if err != nil { return err } diff --git a/citrixadc/resource_citrixadc_vlan_test.go b/citrixadc/resource_citrixadc_vlan_test.go index f58e9bda1..a9229bd94 100644 --- a/citrixadc/resource_citrixadc_vlan_test.go +++ b/citrixadc/resource_citrixadc_vlan_test.go @@ -17,10 +17,11 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" + "testing" + + "github.com/citrix/adc-nitro-go/service" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccVlan_basic_step1 = ` @@ -79,7 +80,7 @@ func testAccCheckVlanExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - data, err := nsClient.FindResource(netscaler.Vlan.Type(), rs.Primary.ID) + data, err := nsClient.FindResource(service.Vlan.Type(), rs.Primary.ID) if err != nil { return err @@ -105,7 +106,7 @@ func testAccCheckVlanDestroy(s *terraform.State) error { return fmt.Errorf("No name is set") } - _, err := nsClient.FindResource(netscaler.Vlan.Type(), rs.Primary.ID) + _, err := nsClient.FindResource(service.Vlan.Type(), rs.Primary.ID) if err == nil { return fmt.Errorf("vlan %s still exists", rs.Primary.ID) } diff --git a/citrixadc/sslvserver_utils.go b/citrixadc/sslvserver_utils.go index 114ba0e1b..89c8d1dc7 100644 --- a/citrixadc/sslvserver_utils.go +++ b/citrixadc/sslvserver_utils.go @@ -1,8 +1,9 @@ package citrixadc import ( - "github.com/chiradeep/go-nitro/config/ssl" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/resource/config/ssl" + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform-plugin-sdk/helper/hashcode" "github.com/hashicorp/terraform/helper/schema" @@ -24,7 +25,7 @@ func syncCiphersuites(d *schema.ResourceData, meta interface{}, vserverName stri log.Printf("Configured ciphersuites %v", ciphersuites) } - ciphersuiteBindings, err = client.FindResourceArray(netscaler.Sslvserver_sslciphersuite_binding.Type(), vserverName) + ciphersuiteBindings, err = client.FindResourceArray(service.Sslvserver_sslciphersuite_binding.Type(), vserverName) // When cipher suites are not set and they do not exist there is no sync if !ok && len(ciphersuiteBindings) == 0 { @@ -55,7 +56,7 @@ func syncCiphersuites(d *schema.ResourceData, meta interface{}, vserverName stri ciphername := ciphersuiteBinding["ciphername"].(string) argsMap := map[string]string{"ciphername": ciphername} log.Printf("Will delete ciphername %v from vserver %v", ciphername, vserverName) - err := client.DeleteResourceWithArgsMap(netscaler.Sslvserver_sslciphersuite_binding.Type(), vserverName, argsMap) + err := client.DeleteResourceWithArgsMap(service.Sslvserver_sslciphersuite_binding.Type(), vserverName, argsMap) if err != nil { log.Printf("Error deleting ciphersuite %v from vserver %v", ciphername, vserverName) return err @@ -65,11 +66,11 @@ func syncCiphersuites(d *schema.ResourceData, meta interface{}, vserverName stri // Then add all configured bindings ciphersuiteslice := ciphersuites.([]interface{}) for _, ciphername := range ciphersuiteslice { - resource := ssl.Sslvserversslciphersuitebinding{ + resource := ssl.Sslvserverciphersuitebinding{ Vservername: vserverName, Ciphername: ciphername.(string), } - _, err = client.AddResource(netscaler.Sslvserver_sslciphersuite_binding.Type(), vserverName, resource) + _, err = client.AddResource(service.Sslvserver_sslciphersuite_binding.Type(), vserverName, resource) if err != nil { log.Printf("Error binding ciphersuite %v to vserver %v", ciphername, vserverName) return err @@ -83,7 +84,7 @@ func setCiphersuiteData(d *schema.ResourceData, meta interface{}, vserverName st client := meta.(*NetScalerNitroClient).client log.Printf("[DEBUG] In setCiphersuiteData") - ciphersuiteBindings, err := client.FindResourceArray(netscaler.Sslvserver_sslciphersuite_binding.Type(), vserverName) + ciphersuiteBindings, err := client.FindResourceArray(service.Sslvserver_sslciphersuite_binding.Type(), vserverName) if err != nil && len(ciphersuiteBindings) != 0 { log.Printf("Error retrieving ciphersuite resource array") return err @@ -109,7 +110,7 @@ func syncCiphers(d *schema.ResourceData, meta interface{}, vserverName string) e log.Printf("Configured ciphers %v", ciphers) } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslcipher_binding", ResourceName: vserverName, ResourceMissingErrorCode: 258, @@ -149,7 +150,7 @@ func syncCiphers(d *schema.ResourceData, meta interface{}, vserverName string) e cipheraliasname := cipherBinding["cipheraliasname"].(string) argsMap := map[string]string{"ciphername": cipheraliasname} log.Printf("Will delete cipheraliasname %v from vserver %v", cipheraliasname, vserverName) - err := client.DeleteResourceWithArgsMap(netscaler.Sslvserver_sslcipher_binding.Type(), vserverName, argsMap) + err := client.DeleteResourceWithArgsMap(service.Sslvserver_sslcipher_binding.Type(), vserverName, argsMap) if err != nil { log.Printf("Error deleting cipheraliasname %v from vserver %v", cipheraliasname, vserverName) return err @@ -159,11 +160,11 @@ func syncCiphers(d *schema.ResourceData, meta interface{}, vserverName string) e // Then add all configured bindings cipherslice := ciphers.([]interface{}) for _, cipheraliasname := range cipherslice { - resource := ssl.Sslvserversslciphersuitebinding{ + resource := ssl.Sslvserverciphersuitebinding{ Vservername: vserverName, Ciphername: cipheraliasname.(string), } - _, err = client.AddResource(netscaler.Sslvserver_sslcipher_binding.Type(), vserverName, resource) + _, err = client.AddResource(service.Sslvserver_sslcipher_binding.Type(), vserverName, resource) if err != nil { log.Printf("Error binding cipher %v to vserver %v", cipheraliasname, vserverName) return err @@ -177,7 +178,7 @@ func setCipherData(d *schema.ResourceData, meta interface{}, vserverName string) client := meta.(*NetScalerNitroClient).client log.Printf("[DEBUG] In setCipherData") - cipherBindings, err := client.FindResourceArray(netscaler.Sslvserver_sslcipher_binding.Type(), vserverName) + cipherBindings, err := client.FindResourceArray(service.Sslvserver_sslcipher_binding.Type(), vserverName) if err != nil && len(cipherBindings) != 0 { log.Printf("Error retrieving cipher resource array") return err @@ -267,7 +268,7 @@ func syncSnisslcert(d *schema.ResourceData, meta interface{}, sslvserverName str for _, snisslcertkey := range todelete { args := map[string]string{"certkeyname": snisslcertkey, "snicert": "true"} - err := client.DeleteResourceWithArgsMap(netscaler.Sslvserver_sslcertkey_binding.Type(), sslvserverName, args) + err := client.DeleteResourceWithArgsMap(service.Sslvserver_sslcertkey_binding.Type(), sslvserverName, args) if err != nil { return fmt.Errorf("[ERROR] netscaler-provider: Error unbinding sni sslcertkey from sslvserver %s", snisslcertkey) } @@ -276,16 +277,16 @@ func syncSnisslcert(d *schema.ResourceData, meta interface{}, sslvserverName str // Do the bindings for _, snisslcertkey := range toadd { - binding := ssl.Sslvserversslcertkeybinding{ + binding := ssl.Sslvservercertkeybinding{ Vservername: sslvserverName, Certkeyname: snisslcertkey, Snicert: true, } log.Printf("[INFO] netscaler-provider: Binding sni ssl cert %s to sslvserver %s", snisslcertkey, sslvserverName) - err := client.BindResource(netscaler.Sslvserver.Type(), sslvserverName, netscaler.Sslcertkey.Type(), snisslcertkey, &binding) + err := client.BindResource(service.Sslvserver.Type(), sslvserverName, service.Sslcertkey.Type(), snisslcertkey, &binding) if err != nil { log.Printf("[ERROR] netscaler-provider: Failed to bind sni ssl cert %s to sslvserver %s", snisslcertkey, sslvserverName) - err2 := client.DeleteResource(netscaler.Lbvserver.Type(), sslvserverName) + err2 := client.DeleteResource(service.Lbvserver.Type(), sslvserverName) if err2 != nil { log.Printf("[ERROR] netscaler-provider: Failed to delete sslvserver %s after bind to sni ssl cert failed", sslvserverName) return fmt.Errorf("[ERROR] netscaler-provider: Failed to delete sslvserver %s after bind to sni ssl cert failed", sslvserverName) @@ -304,7 +305,7 @@ func snisslcertkeysExist(snisslcertkeys, meta interface{}) error { missingKeys := make([]string, 0, len(allkeys)) for _, certkey := range allkeys { log.Printf("[DEBUG] checking existence of sslcertkey %v", certkey) - exists := client.ResourceExists(netscaler.Sslcertkey.Type(), certkey.(string)) + exists := client.ResourceExists(service.Sslcertkey.Type(), certkey.(string)) if !exists { missingKeys = append(missingKeys, certkey.(string)) } @@ -319,7 +320,7 @@ func snisslcertkeysExist(snisslcertkeys, meta interface{}) error { func readSslcerts(d *schema.ResourceData, meta interface{}, sslvserverName string) error { log.Printf("[DEBUG] citrixadc-provider: In readSslcerts") client := meta.(*NetScalerNitroClient).client - bindings, err := client.FindAllBoundResources(netscaler.Sslvserver.Type(), sslvserverName, netscaler.Sslcertkey.Type()) + bindings, err := client.FindAllBoundResources(service.Sslvserver.Type(), sslvserverName, service.Sslcertkey.Type()) if err != nil { log.Printf("[WARN] netscaler-provider: sslvserver binding to ssl error %s", sslvserverName) return nil @@ -389,7 +390,7 @@ func readSslpolicyBindings(d *schema.ResourceData, meta interface{}, sslvserverN return nil } - findParams := netscaler.FindParams{ + findParams := service.FindParams{ ResourceType: "sslvserver_sslpolicy_binding", ResourceName: sslvserverName, ResourceMissingErrorCode: 258, @@ -471,7 +472,7 @@ func addSingleSslpolicyBinding(d *schema.ResourceData, meta interface{}, binding client := meta.(*NetScalerNitroClient).client - bindingStruct := ssl.Sslvserversslpolicybinding{} + bindingStruct := ssl.Sslvserverpolicybinding{} bindingStruct.Vservername = sslvserverName if val, ok := binding["gotopriorityexpression"]; ok { @@ -495,7 +496,7 @@ func addSingleSslpolicyBinding(d *schema.ResourceData, meta interface{}, binding } if val, ok := binding["priority"]; ok { - bindingStruct.Priority = val.(int) + bindingStruct.Priority = uint32(val.(int)) } if val, ok := binding["type"]; ok { diff --git a/citrixadc/sslvserver_utils_test.go b/citrixadc/sslvserver_utils_test.go index 08c403696..9c70cd810 100644 --- a/citrixadc/sslvserver_utils_test.go +++ b/citrixadc/sslvserver_utils_test.go @@ -2,11 +2,12 @@ package citrixadc import ( "fmt" - "github.com/chiradeep/go-nitro/netscaler" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "log" "strings" + + "github.com/citrix/adc-nitro-go/service" + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func testCiphersConfig(resourceTemplate string, ciphers []string) string { @@ -43,7 +44,7 @@ func testCheckCiphersEqualToActual(ciphers []string, vserverName string) resourc return func(s *terraform.State) error { nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client // Check existence of ciphers in correct order - cipherBindings, err := nsClient.FindResourceArray(netscaler.Sslvserver_sslcipher_binding.Type(), vserverName) + cipherBindings, err := nsClient.FindResourceArray(service.Sslvserver_sslcipher_binding.Type(), vserverName) if err != nil && len(cipherBindings) != 0 { log.Printf("Error retrieving cipher resource array") return err @@ -70,7 +71,7 @@ func testCheckCiphersuitesEqualToActual(ciphersuites []string, vserverName strin return func(s *terraform.State) error { nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client // Check existence of ciphers in correct order - ciphersuiteBindings, err := nsClient.FindResourceArray(netscaler.Sslvserver_sslciphersuite_binding.Type(), vserverName) + ciphersuiteBindings, err := nsClient.FindResourceArray(service.Sslvserver_sslciphersuite_binding.Type(), vserverName) if err != nil && len(ciphersuiteBindings) != 0 { log.Printf("Error retrieving ciphersuite resource array") return err diff --git a/citrixadc/utils.go b/citrixadc/utils.go index cb5edd5f2..8fe863e81 100644 --- a/citrixadc/utils.go +++ b/citrixadc/utils.go @@ -3,13 +3,13 @@ package citrixadc import ( "log" - "github.com/chiradeep/go-nitro/netscaler" + "github.com/citrix/adc-nitro-go/service" ) -func isTargetAdcCluster(nsClient *netscaler.NitroClient) bool { +func isTargetAdcCluster(nsClient *service.NitroClient) bool { log.Printf("[DEBUG] citrixadc-provider-test: In isTargetAdcCluster") - datalist, err := nsClient.FindAllResources(netscaler.Clusterinstance.Type()) + datalist, err := nsClient.FindAllResources(service.Clusterinstance.Type()) if err != nil { //lintignore:R009 panic(err) @@ -21,3 +21,11 @@ func isTargetAdcCluster(nsClient *netscaler.NitroClient) bool { return true } } + +func toStringList(in []interface{}) []string { + out := make([]string, 0, len(in)) + for _, val := range in { + out = append(out, val.(string)) + } + return out +} From f18f20ba15d0d77ffa66b1d5376912644bdc548d Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Fri, 2 Jul 2021 11:26:37 +0300 Subject: [PATCH 2/5] Update dependencies --- go.mod | 2 +- .../go-nitro/config/appfw/appfwarchive.go | 9 - .../go-nitro/config/appfw/appfwconfidfield.go | 9 - .../config/appfw/appfwcustomsettings.go | 6 - .../go-nitro/config/appfw/appfwfieldtype.go | 11 - .../appfw/appfwglobal_appfwpolicy_binding.go | 16 - .../appfwglobal_auditnslogpolicy_binding.go | 13 - .../appfwglobal_auditsyslogpolicy_binding.go | 13 - .../config/appfw/appfwglobal_binding.go | 1 - .../config/appfw/appfwhtmlerrorpage.go | 9 - .../config/appfw/appfwjsoncontenttype.go | 8 - .../config/appfw/appfwjsonerrorpage.go | 9 - .../config/appfw/appfwlearningdata.go | 42 - .../config/appfw/appfwlearningsettings.go | 31 - .../go-nitro/config/appfw/appfwpolicy.go | 15 - .../appfw/appfwpolicy_appfwglobal_binding.go | 11 - .../appfwpolicy_appfwpolicylabel_binding.go | 11 - .../config/appfw/appfwpolicy_binding.go | 5 - .../appfw/appfwpolicy_csvserver_binding.go | 11 - .../appfw/appfwpolicy_lbvserver_binding.go | 11 - .../go-nitro/config/appfw/appfwpolicylabel.go | 15 - .../appfwpolicylabel_appfwpolicy_binding.go | 11 - .../config/appfw/appfwpolicylabel_binding.go | 5 - .../appfwpolicylabel_policybinding_binding.go | 11 - .../go-nitro/config/appfw/appfwprofile.go | 100 --- .../config/appfw/appfwprofile_binding.go | 5 - .../appfw/appfwprofile_contenttype_binding.go | 10 - .../appfwprofile_cookieconsistency_binding.go | 11 - .../appfwprofile_creditcardnumber_binding.go | 11 - ...appfwprofile_crosssitescripting_binding.go | 16 - .../appfw/appfwprofile_csrftag_binding.go | 11 - .../appfw/appfwprofile_denyurl_binding.go | 10 - ...fwprofile_excluderescontenttype_binding.go | 10 - .../appfwprofile_fieldconsistency_binding.go | 12 - .../appfw/appfwprofile_fieldformat_binding.go | 15 - .../appfwprofile_fileuploadtype_binding.go | 13 - .../appfw/appfwprofile_jsondosurl_binding.go | 22 - .../appfw/appfwprofile_jsonsqlurl_binding.go | 10 - .../appfw/appfwprofile_jsonxssurl_binding.go | 10 - .../appfwprofile_logexpression_binding.go | 11 - .../appfw/appfwprofile_safeobject_binding.go | 13 - .../appfwprofile_sqlinjection_binding.go | 16 - .../appfw/appfwprofile_starturl_binding.go | 10 - ...wprofile_trustedlearningclients_binding.go | 10 - .../appfwprofile_xmlattachmenturl_binding.go | 14 - .../appfw/appfwprofile_xmldosurl_binding.go | 46 -- .../appfwprofile_xmlsqlinjection_binding.go | 12 - .../appfwprofile_xmlvalidationurl_binding.go | 17 - .../appfw/appfwprofile_xmlwsiurl_binding.go | 11 - .../appfw/appfwprofile_xmlxss_binding.go | 12 - .../go-nitro/config/appfw/appfwsettings.go | 24 - .../go-nitro/config/appfw/appfwsignatures.go | 14 - .../config/appfw/appfwtransactionrecords.go | 20 - .../go-nitro/config/appfw/appfwwsdl.go | 9 - .../config/appfw/appfwxmlcontenttype.go | 8 - .../config/appfw/appfwxmlerrorpage.go | 9 - .../go-nitro/config/appfw/appfwxmlschema.go | 9 - .../config/audit/auditmessageaction.go | 13 - .../go-nitro/config/audit/auditmessages.go | 7 - .../go-nitro/config/audit/auditnslogaction.go | 27 - ...ditnslogglobal_auditnslogpolicy_binding.go | 9 - .../config/audit/auditnslogglobal_binding.go | 1 - .../go-nitro/config/audit/auditnslogparams.go | 22 - .../go-nitro/config/audit/auditnslogpolicy.go | 10 - .../auditnslogpolicy_aaagroup_binding.go | 8 - .../audit/auditnslogpolicy_aaauser_binding.go | 8 - .../auditnslogpolicy_appfwglobal_binding.go | 8 - ...ditnslogpolicy_auditnslogglobal_binding.go | 8 - ...logpolicy_authenticationvserver_binding.go | 8 - .../config/audit/auditnslogpolicy_binding.go | 5 - .../auditnslogpolicy_csvserver_binding.go | 8 - .../auditnslogpolicy_lbvserver_binding.go | 8 - .../auditnslogpolicy_systemglobal_binding.go | 8 - .../auditnslogpolicy_tmglobal_binding.go | 8 - .../auditnslogpolicy_vpnglobal_binding.go | 8 - .../auditnslogpolicy_vpnvserver_binding.go | 8 - .../config/audit/auditsyslogaction.go | 33 - ...tsyslogglobal_auditsyslogpolicy_binding.go | 10 - .../config/audit/auditsyslogglobal_binding.go | 1 - .../config/audit/auditsyslogparams.go | 23 - .../config/audit/auditsyslogpolicy.go | 10 - .../auditsyslogpolicy_aaagroup_binding.go | 8 - .../auditsyslogpolicy_aaauser_binding.go | 8 - ...tsyslogpolicy_auditsyslogglobal_binding.go | 8 - ...logpolicy_authenticationvserver_binding.go | 8 - .../config/audit/auditsyslogpolicy_binding.go | 5 - .../auditsyslogpolicy_csvserver_binding.go | 8 - .../auditsyslogpolicy_lbvserver_binding.go | 8 - .../auditsyslogpolicy_rnatglobal_binding.go | 8 - .../auditsyslogpolicy_systemglobal_binding.go | 8 - .../auditsyslogpolicy_tmglobal_binding.go | 8 - .../auditsyslogpolicy_vpnglobal_binding.go | 8 - .../auditsyslogpolicy_vpnvserver_binding.go | 8 - .../go-nitro/config/basic/configstatus.go | 9 - .../go-nitro/config/basic/dbsmonitors.go | 1 - .../config/basic/extendedmemoryparam.go | 8 - .../go-nitro/config/basic/location.go | 15 - .../go-nitro/config/basic/locationdata.go | 1 - .../go-nitro/config/basic/locationfile.go | 7 - .../go-nitro/config/basic/locationfile6.go | 7 - .../config/basic/locationparameter.go | 35 - .../go-nitro/config/basic/nstrace.go | 28 - .../go-nitro/config/basic/radiusnode.go | 6 - .../go-nitro/config/basic/reporting.go | 5 - .../chiradeep/go-nitro/config/basic/server.go | 30 - .../go-nitro/config/basic/server_binding.go | 5 - .../basic/server_gslbservice_binding.go | 11 - .../basic/server_gslbservicegroup_binding.go | 26 - .../config/basic/server_service_binding.go | 11 - .../basic/server_servicegroup_binding.go | 38 - .../go-nitro/config/basic/service.go | 83 -- .../go-nitro/config/basic/service_binding.go | 5 - .../config/basic/service_dospolicy_binding.go | 6 - .../config/basic/service_lbmonitor_binding.go | 24 - .../config/basic/service_scpolicy_binding.go | 6 - .../go-nitro/config/basic/servicegroup.go | 75 -- .../config/basic/servicegroup_binding.go | 5 - .../basic/servicegroup_lbmonitor_binding.go | 17 - ...p_servicegroupentitymonbindings_binding.go | 22 - ...servicegroup_servicegroupmember_binding.go | 22 - ...icegroup_servicegroupmemberlist_binding.go | 13 - .../config/basic/servicegroupbindings.go | 10 - .../go-nitro/config/basic/svcbindings.go | 9 - .../go-nitro/config/basic/vserver.go | 14 - .../go-nitro/config/cluster/cluster.go | 6 - .../go-nitro/config/cluster/clusterfiles.go | 5 - .../config/cluster/clusterinstance.go | 30 - .../config/cluster/clusterinstance_binding.go | 5 - .../clusterinstance_clusternode_binding.go | 17 - .../go-nitro/config/cluster/clusternode.go | 34 - .../config/cluster/clusternode_binding.go | 5 - .../clusternode_routemonitor_binding.go | 8 - .../config/cluster/clusternodegroup.go | 14 - ...nodegroup_authenticationvserver_binding.go | 6 - .../cluster/clusternodegroup_binding.go | 5 - .../clusternodegroup_clusternode_binding.go | 6 - .../clusternodegroup_crvserver_binding.go | 6 - .../clusternodegroup_csvserver_binding.go | 6 - .../clusternodegroup_gslbsite_binding.go | 6 - .../clusternodegroup_gslbvserver_binding.go | 6 - .../clusternodegroup_lbvserver_binding.go | 6 - ...sternodegroup_nslimitidentifier_binding.go | 6 - .../clusternodegroup_service_binding.go | 6 - ...usternodegroup_streamidentifier_binding.go | 6 - .../clusternodegroup_vpnvserver_binding.go | 6 - .../config/cluster/clusterpropstatus.go | 7 - .../go-nitro/config/cluster/clustersync.go | 1 - .../go-nitro/config/cmp/cmpaction.go | 13 - .../go-nitro/config/cmp/cmpglobal_binding.go | 1 - .../config/cmp/cmpglobal_cmppolicy_binding.go | 15 - .../go-nitro/config/cmp/cmpparameter.go | 19 - .../go-nitro/config/cmp/cmppolicy.go | 21 - .../go-nitro/config/cmp/cmppolicy_binding.go | 5 - .../config/cmp/cmppolicy_cmpglobal_binding.go | 11 - .../cmp/cmppolicy_cmppolicylabel_binding.go | 11 - .../config/cmp/cmppolicy_crvserver_binding.go | 8 - .../config/cmp/cmppolicy_csvserver_binding.go | 11 - .../config/cmp/cmppolicy_lbvserver_binding.go | 11 - .../go-nitro/config/cmp/cmppolicylabel.go | 15 - .../config/cmp/cmppolicylabel_binding.go | 5 - .../cmp/cmppolicylabel_cmppolicy_binding.go | 11 - .../cmppolicylabel_policybinding_binding.go | 11 - .../chiradeep/go-nitro/config/cs/csaction.go | 15 - .../go-nitro/config/cs/csparameter.go | 7 - .../chiradeep/go-nitro/config/cs/cspolicy.go | 19 - .../go-nitro/config/cs/cspolicy_binding.go | 5 - .../config/cs/cspolicy_crvserver_binding.go | 11 - .../cs/cspolicy_cspolicylabel_binding.go | 11 - .../config/cs/cspolicy_csvserver_binding.go | 14 - .../go-nitro/config/cs/cspolicylabel.go | 15 - .../config/cs/cspolicylabel_binding.go | 5 - .../cs/cspolicylabel_cspolicy_binding.go | 12 - .../chiradeep/go-nitro/config/cs/csvserver.go | 103 --- .../cs/csvserver_analyticsprofile_binding.go | 6 - .../cs/csvserver_appflowpolicy_binding.go | 13 - .../cs/csvserver_appfwpolicy_binding.go | 14 - .../cs/csvserver_appqoepolicy_binding.go | 13 - .../cs/csvserver_auditnslogpolicy_binding.go | 14 - .../cs/csvserver_auditsyslogpolicy_binding.go | 14 - .../csvserver_authorizationpolicy_binding.go | 14 - .../go-nitro/config/cs/csvserver_binding.go | 5 - .../config/cs/csvserver_botpolicy_binding.go | 13 - .../cs/csvserver_cachepolicy_binding.go | 13 - .../config/cs/csvserver_cmppolicy_binding.go | 14 - ...vserver_contentinspectionpolicy_binding.go | 13 - .../config/cs/csvserver_copolicy_binding.go | 13 - .../config/cs/csvserver_cspolicy_binding.go | 18 - .../config/cs/csvserver_domain_binding.go | 12 - .../config/cs/csvserver_feopolicy_binding.go | 13 - .../cs/csvserver_filterpolicy_binding.go | 14 - .../cs/csvserver_gslbvserver_binding.go | 7 - .../config/cs/csvserver_lbvserver_binding.go | 10 - .../cs/csvserver_responderpolicy_binding.go | 13 - .../cs/csvserver_rewritepolicy_binding.go | 13 - .../cs/csvserver_spilloverpolicy_binding.go | 13 - .../cs/csvserver_tmtrafficpolicy_binding.go | 13 - .../cs/csvserver_transformpolicy_binding.go | 13 - .../config/cs/csvserver_vpnvserver_binding.go | 7 - .../go-nitro/config/dns/dnsaaaarec.go | 12 - .../go-nitro/config/dns/dnsaction.go | 15 - .../go-nitro/config/dns/dnsaction64.go | 10 - .../go-nitro/config/dns/dnsaddrec.go | 12 - .../go-nitro/config/dns/dnscnamerec.go | 12 - .../go-nitro/config/dns/dnsglobal_binding.go | 1 - .../config/dns/dnsglobal_dnspolicy_binding.go | 14 - .../chiradeep/go-nitro/config/dns/dnskey.go | 19 - .../chiradeep/go-nitro/config/dns/dnsmxrec.go | 12 - .../go-nitro/config/dns/dnsnameserver.go | 15 - .../go-nitro/config/dns/dnsnaptrrec.go | 18 - .../go-nitro/config/dns/dnsnsecrec.go | 10 - .../chiradeep/go-nitro/config/dns/dnsnsrec.go | 11 - .../go-nitro/config/dns/dnsparameter.go | 26 - .../go-nitro/config/dns/dnspolicy.go | 18 - .../go-nitro/config/dns/dnspolicy64.go | 12 - .../config/dns/dnspolicy64_binding.go | 5 - .../dns/dnspolicy64_lbvserver_binding.go | 8 - .../go-nitro/config/dns/dnspolicy_binding.go | 5 - .../config/dns/dnspolicy_dnsglobal_binding.go | 11 - .../dns/dnspolicy_dnspolicylabel_binding.go | 11 - .../go-nitro/config/dns/dnspolicylabel.go | 16 - .../config/dns/dnspolicylabel_binding.go | 5 - .../dns/dnspolicylabel_dnspolicy_binding.go | 11 - .../dnspolicylabel_policybinding_binding.go | 11 - .../go-nitro/config/dns/dnsprofile.go | 14 - .../go-nitro/config/dns/dnsproxyrecords.go | 6 - .../go-nitro/config/dns/dnsptrrec.go | 11 - .../go-nitro/config/dns/dnssoarec.go | 17 - .../go-nitro/config/dns/dnssrvrec.go | 14 - .../go-nitro/config/dns/dnssubnetcache.go | 9 - .../go-nitro/config/dns/dnssuffix.go | 5 - .../go-nitro/config/dns/dnstxtrec.go | 12 - .../chiradeep/go-nitro/config/dns/dnsview.go | 6 - .../go-nitro/config/dns/dnsview_binding.go | 5 - .../config/dns/dnsview_dnspolicy_binding.go | 6 - .../config/dns/dnsview_gslbservice_binding.go | 7 - .../chiradeep/go-nitro/config/dns/dnszone.go | 11 - .../go-nitro/config/dns/dnszone_binding.go | 5 - .../config/dns/dnszone_dnskey_binding.go | 9 - .../config/dns/dnszone_domain_binding.go | 7 - .../go-nitro/config/filter/filteraction.go | 13 - .../config/filter/filterglobal_binding.go | 1 - .../filterglobal_filterpolicy_binding.go | 7 - .../filter/filterhtmlinjectionparameter.go | 10 - .../filter/filterhtmlinjectionvariable.go | 9 - .../go-nitro/config/filter/filterpolicy.go | 9 - .../config/filter/filterpolicy_binding.go | 5 - .../filter/filterpolicy_crvserver_binding.go | 8 - .../filter/filterpolicy_csvserver_binding.go | 8 - .../filterpolicy_filterglobal_binding.go | 8 - .../filter/filterpolicy_lbvserver_binding.go | 8 - .../config/filter/filterpostbodyinjection.go | 6 - .../config/filter/filterprebodyinjection.go | 6 - .../go-nitro/config/gslb/gslbconfig.go | 10 - .../go-nitro/config/gslb/gslbdomain.go | 5 - .../config/gslb/gslbdomain_binding.go | 5 - .../gslb/gslbdomain_gslbservice_binding.go | 17 - .../gslbdomain_gslbservicegroup_binding.go | 6 - ...lbdomain_gslbservicegroupmember_binding.go | 12 - .../gslb/gslbdomain_gslbvserver_binding.go | 26 - .../gslb/gslbdomain_lbmonitor_binding.go | 19 - .../go-nitro/config/gslb/gslbldnsentries.go | 11 - .../go-nitro/config/gslb/gslbldnsentry.go | 5 - .../go-nitro/config/gslb/gslbparameter.go | 15 - .../go-nitro/config/gslb/gslbrunningconfig.go | 5 - .../go-nitro/config/gslb/gslbservice.go | 57 -- .../config/gslb/gslbservice_binding.go | 5 - .../gslb/gslbservice_dnsview_binding.go | 7 - .../gslb/gslbservice_lbmonitor_binding.go | 20 - .../go-nitro/config/gslb/gslbservicegroup.go | 53 -- .../config/gslb/gslbservicegroup_binding.go | 5 - ...icegroup_gslbservicegroupmember_binding.go | 22 - .../gslbservicegroup_lbmonitor_binding.go | 16 - ...p_servicegroupentitymonbindings_binding.go | 20 - .../go-nitro/config/gslb/gslbsite.go | 21 - .../go-nitro/config/gslb/gslbsite_binding.go | 5 - .../gslb/gslbsite_gslbservice_binding.go | 11 - .../gslb/gslbsite_gslbservicegroup_binding.go | 7 - ...gslbsite_gslbservicegroupmember_binding.go | 10 - .../go-nitro/config/gslb/gslbsyncstatus.go | 6 - .../go-nitro/config/gslb/gslbvserver.go | 64 -- .../config/gslb/gslbvserver_binding.go | 5 - .../config/gslb/gslbvserver_domain_binding.go | 13 - .../gslb/gslbvserver_gslbservice_binding.go | 22 - .../gslbvserver_gslbservicegroup_binding.go | 6 - ...bvserver_gslbservicegroupmember_binding.go | 18 - .../gslbvserver_spilloverpolicy_binding.go | 9 - .../chiradeep/go-nitro/config/lb/lbgroup.go | 18 - .../go-nitro/config/lb/lbgroup_binding.go | 5 - .../config/lb/lbgroup_lbvserver_binding.go | 6 - .../go-nitro/config/lb/lbmetrictable.go | 10 - .../config/lb/lbmetrictable_binding.go | 5 - .../config/lb/lbmetrictable_metric_binding.go | 8 - .../go-nitro/config/lb/lbmonbindings.go | 8 - .../config/lb/lbmonbindings_binding.go | 5 - .../lbmonbindings_gslbservicegroup_binding.go | 9 - .../lb/lbmonbindings_service_binding.go | 11 - .../lb/lbmonbindings_servicegroup_binding.go | 9 - .../chiradeep/go-nitro/config/lb/lbmonitor.go | 116 --- .../go-nitro/config/lb/lbmonitor_binding.go | 5 - .../config/lb/lbmonitor_metric_binding.go | 10 - .../config/lb/lbmonitor_service_binding.go | 11 - .../lb/lbmonitor_servicegroup_binding.go | 11 - .../config/lb/lbmonitor_sslcertkey_binding.go | 9 - .../go-nitro/config/lb/lbparameter.go | 22 - .../config/lb/lbpersistentsessions.go | 20 - .../chiradeep/go-nitro/config/lb/lbprofile.go | 12 - .../chiradeep/go-nitro/config/lb/lbroute.go | 9 - .../chiradeep/go-nitro/config/lb/lbroute6.go | 8 - .../go-nitro/config/lb/lbsipparameters.go | 13 - .../chiradeep/go-nitro/config/lb/lbvserver.go | 137 ---- .../lb/lbvserver_analyticsprofile_binding.go | 6 - .../lb/lbvserver_appflowpolicy_binding.go | 12 - .../lb/lbvserver_appfwpolicy_binding.go | 13 - .../lb/lbvserver_appqoepolicy_binding.go | 12 - .../lb/lbvserver_auditnslogpolicy_binding.go | 13 - .../lb/lbvserver_auditsyslogpolicy_binding.go | 13 - .../lbvserver_authorizationpolicy_binding.go | 13 - .../go-nitro/config/lb/lbvserver_binding.go | 5 - .../config/lb/lbvserver_botpolicy_binding.go | 12 - .../lb/lbvserver_cachepolicy_binding.go | 12 - .../config/lb/lbvserver_capolicy_binding.go | 12 - .../config/lb/lbvserver_cmppolicy_binding.go | 13 - ...vserver_contentinspectionpolicy_binding.go | 12 - .../config/lb/lbvserver_copolicy_binding.go | 12 - .../config/lb/lbvserver_csvserver_binding.go | 12 - .../lb/lbvserver_dnspolicy64_binding.go | 12 - .../config/lb/lbvserver_dospolicy_binding.go | 7 - .../config/lb/lbvserver_feopolicy_binding.go | 12 - .../lb/lbvserver_filterpolicy_binding.go | 13 - .../config/lb/lbvserver_pqpolicy_binding.go | 12 - .../lb/lbvserver_responderpolicy_binding.go | 12 - .../lb/lbvserver_rewritepolicy_binding.go | 12 - .../config/lb/lbvserver_scpolicy_binding.go | 12 - .../config/lb/lbvserver_service_binding.go | 18 - .../lb/lbvserver_servicegroup_binding.go | 8 - .../lbvserver_servicegroupmember_binding.go | 16 - .../lb/lbvserver_spilloverpolicy_binding.go | 12 - .../lb/lbvserver_tmtrafficpolicy_binding.go | 12 - .../lb/lbvserver_transformpolicy_binding.go | 12 - ...ideooptimizationdetectionpolicy_binding.go | 12 - ...r_videooptimizationpacingpolicy_binding.go | 12 - .../chiradeep/go-nitro/config/lb/lbwlm.go | 11 - .../go-nitro/config/lb/lbwlm_binding.go | 5 - .../config/lb/lbwlm_lbvserver_binding.go | 6 - .../go-nitro/config/network/Interface.go | 115 --- .../go-nitro/config/network/appalgparam.go | 5 - .../chiradeep/go-nitro/config/network/arp.go | 20 - .../go-nitro/config/network/arpparam.go | 6 - .../go-nitro/config/network/bridgegroup.go | 14 - .../config/network/bridgegroup_binding.go | 5 - .../network/bridgegroup_nsip6_binding.go | 10 - .../network/bridgegroup_nsip_binding.go | 10 - .../network/bridgegroup_vlan_binding.go | 7 - .../go-nitro/config/network/bridgetable.go | 17 - .../go-nitro/config/network/channel.go | 98 --- .../config/network/channel_binding.go | 5 - .../network/channel_interface_binding.go | 15 - .../chiradeep/go-nitro/config/network/ci.go | 5 - .../chiradeep/go-nitro/config/network/fis.go | 7 - .../go-nitro/config/network/fis_binding.go | 5 - .../config/network/fis_channel_binding.go | 7 - .../config/network/fis_interface_binding.go | 7 - .../config/network/forwardingsession.go | 13 - .../chiradeep/go-nitro/config/network/inat.go | 17 - .../go-nitro/config/network/inatparam.go | 10 - .../go-nitro/config/network/interfacepair.go | 7 - .../go-nitro/config/network/ip6tunnel.go | 11 - .../go-nitro/config/network/ip6tunnelparam.go | 9 - .../go-nitro/config/network/ipset.go | 6 - .../go-nitro/config/network/ipset_binding.go | 5 - .../config/network/ipset_nsip6_binding.go | 6 - .../config/network/ipset_nsip_binding.go | 6 - .../go-nitro/config/network/iptunnel.go | 20 - .../go-nitro/config/network/iptunnelparam.go | 12 - .../chiradeep/go-nitro/config/network/ipv6.go | 16 - .../go-nitro/config/network/l2param.go | 19 - .../go-nitro/config/network/l3param.go | 19 - .../go-nitro/config/network/l4param.go | 6 - .../chiradeep/go-nitro/config/network/lacp.go | 12 - .../go-nitro/config/network/linkset.go | 6 - .../config/network/linkset_binding.go | 5 - .../config/network/linkset_channel_binding.go | 6 - .../network/linkset_interface_binding.go | 6 - .../go-nitro/config/network/mapbmr.go | 9 - .../go-nitro/config/network/mapbmr_binding.go | 5 - .../network/mapbmr_bmrv4network_binding.go | 7 - .../go-nitro/config/network/mapdmr.go | 6 - .../go-nitro/config/network/mapdomain.go | 6 - .../config/network/mapdomain_binding.go | 5 - .../network/mapdomain_mapbmr_binding.go | 6 - .../go-nitro/config/network/nat64.go | 7 - .../go-nitro/config/network/nat64param.go | 9 - .../chiradeep/go-nitro/config/network/nd6.go | 17 - .../go-nitro/config/network/nd6ravariables.go | 20 - .../config/network/nd6ravariables_binding.go | 5 - ...nd6ravariables_onlinkipv6prefix_binding.go | 6 - .../go-nitro/config/network/netbridge.go | 6 - .../config/network/netbridge_binding.go | 5 - .../network/netbridge_iptunnel_binding.go | 6 - .../config/network/netbridge_nsip6_binding.go | 7 - .../config/network/netbridge_nsip_binding.go | 7 - .../config/network/netbridge_vlan_binding.go | 6 - .../go-nitro/config/network/netprofile.go | 12 - .../config/network/netprofile_binding.go | 5 - .../network/netprofile_natrule_binding.go | 8 - .../network/netprofile_srcportset_binding.go | 6 - .../config/network/onlinkipv6prefix.go | 13 - .../chiradeep/go-nitro/config/network/ptp.go | 5 - .../chiradeep/go-nitro/config/network/rnat.go | 16 - .../go-nitro/config/network/rnat6.go | 11 - .../go-nitro/config/network/rnat6_binding.go | 5 - .../config/network/rnat6_nsip6_binding.go | 8 - .../go-nitro/config/network/rnat_binding.go | 5 - .../config/network/rnat_nsip_binding.go | 8 - .../rnat_retainsourceportset_binding.go | 6 - .../rnatglobal_auditsyslogpolicy_binding.go | 7 - .../config/network/rnatglobal_binding.go | 1 - .../go-nitro/config/network/rnatparam.go | 6 - .../go-nitro/config/network/rnatsession.go | 8 - .../go-nitro/config/network/route.go | 52 -- .../go-nitro/config/network/route6.go | 43 - .../go-nitro/config/network/rsskeytype.go | 5 - .../chiradeep/go-nitro/config/network/vlan.go | 24 - .../go-nitro/config/network/vlan_binding.go | 5 - .../config/network/vlan_channel_binding.go | 8 - .../config/network/vlan_interface_binding.go | 8 - .../config/network/vlan_linkset_binding.go | 8 - .../config/network/vlan_nsip6_binding.go | 9 - .../config/network/vlan_nsip_binding.go | 9 - .../go-nitro/config/network/vpath.go | 7 - .../go-nitro/config/network/vpathparam.go | 6 - .../chiradeep/go-nitro/config/network/vrid.go | 20 - .../go-nitro/config/network/vrid6.go | 21 - .../go-nitro/config/network/vrid6_binding.go | 5 - .../config/network/vrid6_channel_binding.go | 8 - .../config/network/vrid6_interface_binding.go | 8 - .../config/network/vrid6_nsip6_binding.go | 7 - .../config/network/vrid6_nsip_binding.go | 7 - .../network/vrid6_trackinterface_binding.go | 7 - .../go-nitro/config/network/vrid_binding.go | 5 - .../config/network/vrid_channel_binding.go | 8 - .../config/network/vrid_interface_binding.go | 8 - .../config/network/vrid_nsip6_binding.go | 7 - .../config/network/vrid_nsip_binding.go | 7 - .../network/vrid_trackinterface_binding.go | 7 - .../go-nitro/config/network/vridparam.go | 7 - .../go-nitro/config/network/vxlan.go | 14 - .../go-nitro/config/network/vxlan_binding.go | 5 - .../config/network/vxlan_iptunnel_binding.go | 6 - .../config/network/vxlan_nsip6_binding.go | 7 - .../config/network/vxlan_nsip_binding.go | 7 - .../config/network/vxlan_srcip_binding.go | 6 - .../go-nitro/config/network/vxlanvlanmap.go | 5 - .../config/network/vxlanvlanmap_binding.go | 5 - .../network/vxlanvlanmap_vxlan_binding.go | 7 - .../chiradeep/go-nitro/config/ns/nsacl.go | 41 - .../chiradeep/go-nitro/config/ns/nsacl6.go | 43 - .../chiradeep/go-nitro/config/ns/nsacls.go | 5 - .../chiradeep/go-nitro/config/ns/nsacls6.go | 5 - .../go-nitro/config/ns/nsappflowcollector.go | 7 - .../go-nitro/config/ns/nsappflowparam.go | 13 - .../go-nitro/config/ns/nsaptlicense.go | 19 - .../go-nitro/config/ns/nsassignment.go | 16 - .../go-nitro/config/ns/nscapacity.go | 16 - .../config/ns/nscentralmanagementserver.go | 9 - .../chiradeep/go-nitro/config/ns/nsconfig.go | 49 -- .../go-nitro/config/ns/nsconnectiontable.go | 126 --- .../config/ns/nsconsoleloginprompt.go | 5 - .../go-nitro/config/ns/nscqaparam.go | 24 - .../chiradeep/go-nitro/config/ns/nsdhcpip.go | 1 - .../go-nitro/config/ns/nsdhcpparams.go | 10 - .../go-nitro/config/ns/nsdiameter.go | 8 - .../go-nitro/config/ns/nsencryptionkey.go | 10 - .../go-nitro/config/ns/nsencryptionparams.go | 6 - .../chiradeep/go-nitro/config/ns/nsevents.go | 14 - .../go-nitro/config/ns/nsextension.go | 16 - .../go-nitro/config/ns/nsextension_binding.go | 5 - .../nsextension_extensionfunction_binding.go | 17 - .../chiradeep/go-nitro/config/ns/nsfeature.go | 48 -- .../go-nitro/config/ns/nshardware.go | 16 - .../chiradeep/go-nitro/config/ns/nshmackey.go | 8 - .../go-nitro/config/ns/nshostname.go | 6 - .../go-nitro/config/ns/nshttpparam.go | 16 - .../go-nitro/config/ns/nshttpprofile.go | 43 - .../go-nitro/config/ns/nsicapprofile.go | 19 - .../chiradeep/go-nitro/config/ns/nsip.go | 52 -- .../chiradeep/go-nitro/config/ns/nsip6.go | 41 - .../chiradeep/go-nitro/config/ns/nslicense.go | 67 -- .../config/ns/nslicenseproxyserver.go | 7 - .../go-nitro/config/ns/nslicenseserver.go | 12 - .../go-nitro/config/ns/nslicenseserverpool.go | 122 --- .../go-nitro/config/ns/nslimitidentifier.go | 21 - .../config/ns/nslimitidentifier_binding.go | 5 - ...limitidentifier_nslimitsessions_binding.go | 5 - .../go-nitro/config/ns/nslimitselector.go | 6 - .../go-nitro/config/ns/nslimitsessions.go | 18 - .../go-nitro/config/ns/nsmigration.go | 8 - .../chiradeep/go-nitro/config/ns/nsmode.go | 25 - .../chiradeep/go-nitro/config/ns/nsparam.go | 31 - .../go-nitro/config/ns/nspartition.go | 13 - .../go-nitro/config/ns/nspartition_binding.go | 5 - .../ns/nspartition_bridgegroup_binding.go | 6 - .../config/ns/nspartition_vlan_binding.go | 6 - .../config/ns/nspartition_vxlan_binding.go | 6 - .../go-nitro/config/ns/nspartitionmac.go | 6 - .../chiradeep/go-nitro/config/ns/nspbr.go | 48 -- .../chiradeep/go-nitro/config/ns/nspbr6.go | 48 -- .../chiradeep/go-nitro/config/ns/nspbrs.go | 1 - .../go-nitro/config/ns/nsratecontrol.go | 8 - .../go-nitro/config/ns/nsrollbackcmd.go | 6 - .../chiradeep/go-nitro/config/ns/nsrpcnode.go | 8 - .../go-nitro/config/ns/nsrunningconfig.go | 6 - .../go-nitro/config/ns/nssavedconfig.go | 5 - .../go-nitro/config/ns/nsservicefunction.go | 6 - .../go-nitro/config/ns/nsservicepath.go | 5 - .../config/ns/nsservicepath_binding.go | 5 - ...nsservicepath_nsservicefunction_binding.go | 7 - .../go-nitro/config/ns/nssimpleacl.go | 13 - .../go-nitro/config/ns/nssimpleacl6.go | 13 - .../config/ns/nssourceroutecachetable.go | 8 - .../go-nitro/config/ns/nsspparams.go | 9 - .../chiradeep/go-nitro/config/ns/nsstats.go | 5 - .../chiradeep/go-nitro/config/ns/nssurgeq.go | 7 - .../go-nitro/config/ns/nstcpbufparam.go | 8 - .../go-nitro/config/ns/nstcpparam.go | 50 -- .../go-nitro/config/ns/nstcpprofile.go | 62 -- .../chiradeep/go-nitro/config/ns/nstimeout.go | 20 - .../chiradeep/go-nitro/config/ns/nstimer.go | 9 - .../ns/nstimer_autoscalepolicy_binding.go | 11 - .../go-nitro/config/ns/nstimer_binding.go | 5 - .../go-nitro/config/ns/nstimezone.go | 5 - .../go-nitro/config/ns/nstrafficdomain.go | 8 - .../config/ns/nstrafficdomain_binding.go | 5 - .../ns/nstrafficdomain_bridgegroup_binding.go | 6 - .../config/ns/nstrafficdomain_vlan_binding.go | 6 - .../ns/nstrafficdomain_vxlan_binding.go | 6 - .../go-nitro/config/ns/nsvariable.go | 14 - .../chiradeep/go-nitro/config/ns/nsversion.go | 7 - .../go-nitro/config/ns/nsvpxparam.go | 7 - .../go-nitro/config/ns/nsweblogparam.go | 9 - .../go-nitro/config/ns/nsxmlnamespace.go | 7 - .../chiradeep/go-nitro/config/ns/reboot.go | 5 - .../chiradeep/go-nitro/config/ns/shutdown.go | 1 - .../go-nitro/config/policy/policydataset.go | 9 - .../config/policy/policydataset_binding.go | 5 - .../policy/policydataset_value_binding.go | 8 - .../config/policy/policyevaluation.go | 35 - .../config/policy/policyexpression.go | 16 - .../config/policy/policyhttpcallout.go | 26 - .../go-nitro/config/policy/policymap.go | 10 - .../go-nitro/config/policy/policyparam.go | 5 - .../go-nitro/config/policy/policypatset.go | 8 - .../config/policy/policypatset_binding.go | 5 - .../policy/policypatset_pattern_binding.go | 11 - .../go-nitro/config/policy/policystringmap.go | 6 - .../config/policy/policystringmap_binding.go | 5 - .../policy/policystringmap_pattern_binding.go | 7 - .../go-nitro/config/policy/policyurlset.go | 16 - .../config/responder/responderaction.go | 19 - .../responder/responderglobal_binding.go | 1 - ...responderglobal_responderpolicy_binding.go | 14 - .../config/responder/responderhtmlpage.go | 9 - .../config/responder/responderparam.go | 5 - .../config/responder/responderpolicy.go | 16 - .../responder/responderpolicy_binding.go | 5 - .../responderpolicy_crvserver_binding.go | 11 - .../responderpolicy_csvserver_binding.go | 11 - .../responderpolicy_lbvserver_binding.go | 11 - ...responderpolicy_responderglobal_binding.go | 11 - ...nderpolicy_responderpolicylabel_binding.go | 11 - .../config/responder/responderpolicylabel.go | 14 - .../responder/responderpolicylabel_binding.go | 5 - ...ponderpolicylabel_policybinding_binding.go | 11 - ...nderpolicylabel_responderpolicy_binding.go | 11 - .../go-nitro/config/rewrite/rewriteaction.go | 21 - .../config/rewrite/rewriteglobal_binding.go | 1 - .../rewriteglobal_rewritepolicy_binding.go | 14 - .../go-nitro/config/rewrite/rewriteparam.go | 6 - .../go-nitro/config/rewrite/rewritepolicy.go | 17 - .../config/rewrite/rewritepolicy_binding.go | 5 - .../rewritepolicy_csvserver_binding.go | 11 - .../rewritepolicy_lbvserver_binding.go | 11 - .../rewritepolicy_rewriteglobal_binding.go | 11 - ...ewritepolicy_rewritepolicylabel_binding.go | 11 - .../config/rewrite/rewritepolicylabel.go | 19 - .../rewrite/rewritepolicylabel_binding.go | 5 - ...ewritepolicylabel_policybinding_binding.go | 11 - ...ewritepolicylabel_rewritepolicy_binding.go | 11 - .../config/router/routerdynamicrouting.go | 7 - .../go-nitro/config/ssl/sslaction.go | 38 - .../go-nitro/config/ssl/sslcacertgroup.go | 8 - .../config/ssl/sslcacertgroup_binding.go | 5 - .../ssl/sslcacertgroup_sslcertkey_binding.go | 8 - .../chiradeep/go-nitro/config/ssl/sslcert.go | 18 - .../go-nitro/config/ssl/sslcertbundle.go | 7 - .../go-nitro/config/ssl/sslcertchain.go | 5 - .../config/ssl/sslcertchain_binding.go | 5 - .../ssl/sslcertchain_sslcertkey_binding.go | 9 - .../go-nitro/config/ssl/sslcertfile.go | 6 - .../config/ssl/sslcertificatechain.go | 9 - .../go-nitro/config/ssl/sslcertkey.go | 38 - .../go-nitro/config/ssl/sslcertkey_binding.go | 5 - .../ssl/sslcertkey_crldistribution_binding.go | 7 - .../config/ssl/sslcertkey_service_binding.go | 11 - .../sslcertkey_sslocspresponder_binding.go | 8 - .../ssl/sslcertkey_sslprofile_binding.go | 7 - .../ssl/sslcertkey_sslvserver_binding.go | 11 - .../go-nitro/config/ssl/sslcertlink.go | 6 - .../go-nitro/config/ssl/sslcertreq.go | 20 - .../go-nitro/config/ssl/sslcipher.go | 9 - .../go-nitro/config/ssl/sslcipher_binding.go | 5 - .../ssl/sslcipher_individualcipher_binding.go | 10 - .../config/ssl/sslcipher_service_binding.go | 12 - .../ssl/sslcipher_servicegroup_binding.go | 12 - .../ssl/sslcipher_sslciphersuite_binding.go | 10 - .../ssl/sslcipher_sslprofile_binding.go | 10 - .../ssl/sslcipher_sslvserver_binding.go | 10 - .../go-nitro/config/ssl/sslciphersuite.go | 6 - .../chiradeep/go-nitro/config/ssl/sslcrl.go | 34 - .../go-nitro/config/ssl/sslcrl_binding.go | 5 - .../config/ssl/sslcrl_serialnumber_binding.go | 7 - .../go-nitro/config/ssl/sslcrlfile.go | 6 - .../go-nitro/config/ssl/ssldhfile.go | 6 - .../go-nitro/config/ssl/ssldhparam.go | 7 - .../go-nitro/config/ssl/ssldsakey.go | 12 - .../go-nitro/config/ssl/ssldtlsprofile.go | 13 - .../go-nitro/config/ssl/sslecdsakey.go | 12 - .../chiradeep/go-nitro/config/ssl/sslfips.go | 29 - .../go-nitro/config/ssl/sslfipskey.go | 14 - .../go-nitro/config/ssl/sslfipssimsource.go | 7 - .../go-nitro/config/ssl/sslfipssimtarget.go | 8 - .../go-nitro/config/ssl/sslglobal_binding.go | 1 - .../config/ssl/sslglobal_sslpolicy_binding.go | 12 - .../go-nitro/config/ssl/sslhsmkey.go | 11 - .../go-nitro/config/ssl/sslkeyfile.go | 7 - .../go-nitro/config/ssl/ssllogprofile.go | 9 - .../go-nitro/config/ssl/sslocspresponder.go | 22 - .../go-nitro/config/ssl/sslparameter.go | 31 - .../go-nitro/config/ssl/sslpkcs12.go | 15 - .../chiradeep/go-nitro/config/ssl/sslpkcs8.go | 8 - .../go-nitro/config/ssl/sslpolicy.go | 16 - .../go-nitro/config/ssl/sslpolicy_binding.go | 5 - .../config/ssl/sslpolicy_csvserver_binding.go | 11 - .../config/ssl/sslpolicy_lbvserver_binding.go | 11 - .../config/ssl/sslpolicy_sslglobal_binding.go | 11 - .../ssl/sslpolicy_sslpolicylabel_binding.go | 11 - .../ssl/sslpolicy_sslservice_binding.go | 11 - .../ssl/sslpolicy_sslvserver_binding.go | 11 - .../go-nitro/config/ssl/sslpolicylabel.go | 16 - .../config/ssl/sslpolicylabel_binding.go | 5 - .../ssl/sslpolicylabel_sslpolicy_binding.go | 11 - .../go-nitro/config/ssl/sslprofile.go | 77 -- .../go-nitro/config/ssl/sslprofile_binding.go | 5 - .../config/ssl/sslprofile_ecccurve_binding.go | 7 - .../ssl/sslprofile_sslcertkey_binding.go | 7 - .../ssl/sslprofile_sslcipher_binding.go | 9 - .../ssl/sslprofile_sslciphersuite_binding.go | 8 - .../ssl/sslprofile_sslvserver_binding.go | 8 - .../go-nitro/config/ssl/sslrsakey.go | 13 - .../go-nitro/config/ssl/sslservice.go | 42 - .../go-nitro/config/ssl/sslservice_binding.go | 5 - .../config/ssl/sslservice_ecccurve_binding.go | 6 - .../ssl/sslservice_sslcertkey_binding.go | 12 - .../ssl/sslservice_sslcipher_binding.go | 8 - .../ssl/sslservice_sslciphersuite_binding.go | 7 - .../ssl/sslservice_sslpolicy_binding.go | 12 - .../go-nitro/config/ssl/sslservicegroup.go | 41 - .../config/ssl/sslservicegroup_binding.go | 5 - .../ssl/sslservicegroup_ecccurve_binding.go | 6 - .../ssl/sslservicegroup_sslcertkey_binding.go | 10 - .../ssl/sslservicegroup_sslcipher_binding.go | 8 - .../sslservicegroup_sslciphersuite_binding.go | 7 - .../go-nitro/config/ssl/sslvserver.go | 52 -- .../go-nitro/config/ssl/sslvserver_binding.go | 5 - .../config/ssl/sslvserver_ecccurve_binding.go | 6 - .../ssl/sslvserver_sslcertkey_binding.go | 12 - .../ssl/sslvserver_sslcipher_binding.go | 8 - .../ssl/sslvserver_sslciphersuite_binding.go | 7 - .../ssl/sslvserver_sslpolicy_binding.go | 13 - .../go-nitro/config/ssl/sslwrapkey.go | 7 - .../config/system/systemautorestorefeature.go | 1 - .../go-nitro/config/system/systembackup.go | 15 - .../go-nitro/config/system/systemcmdpolicy.go | 9 - .../config/system/systemcollectionparam.go | 7 - .../go-nitro/config/system/systemcore.go | 6 - .../config/system/systemcountergroup.go | 6 - .../go-nitro/config/system/systemcounters.go | 7 - .../config/system/systemdatasource.go | 6 - .../go-nitro/config/system/systementity.go | 8 - .../config/system/systementitydata.go | 18 - .../config/system/systementitytype.go | 6 - .../config/system/systemeventhistory.go | 10 - .../config/system/systemextramgmtcpu.go | 7 - .../go-nitro/config/system/systemfile.go | 12 - .../systemglobal_auditnslogpolicy_binding.go | 11 - .../systemglobal_auditsyslogpolicy_binding.go | 11 - ...global_authenticationldappolicy_binding.go | 11 - ...lobal_authenticationlocalpolicy_binding.go | 11 - ...stemglobal_authenticationpolicy_binding.go | 11 - ...obal_authenticationradiuspolicy_binding.go | 11 - ...obal_authenticationtacacspolicy_binding.go | 11 - .../config/system/systemglobal_binding.go | 1 - .../config/system/systemglobaldata.go | 15 - .../go-nitro/config/system/systemgroup.go | 8 - .../config/system/systemgroup_binding.go | 5 - .../system/systemgroup_nspartition_binding.go | 6 - .../systemgroup_systemcmdpolicy_binding.go | 7 - .../system/systemgroup_systemuser_binding.go | 6 - .../go-nitro/config/system/systemhwerror.go | 7 - .../go-nitro/config/system/systemkek.go | 6 - .../go-nitro/config/system/systemparameter.go | 24 - .../config/system/systemrestorepoint.go | 11 - .../go-nitro/config/system/systemsession.go | 16 - .../go-nitro/config/system/systemsshkey.go | 7 - .../go-nitro/config/system/systemuser.go | 17 - .../config/system/systemuser_binding.go | 5 - .../system/systemuser_nspartition_binding.go | 6 - .../systemuser_systemcmdpolicy_binding.go | 7 - .../system/systemuser_systemgroup_binding.go | 6 - .../config/transform/transformaction.go | 16 - .../transform/transformglobal_binding.go | 1 - ...transformglobal_transformpolicy_binding.go | 14 - .../config/transform/transformpolicy.go | 14 - .../transform/transformpolicy_binding.go | 5 - .../transformpolicy_csvserver_binding.go | 11 - .../transformpolicy_lbvserver_binding.go | 11 - ...transformpolicy_transformglobal_binding.go | 11 - ...formpolicy_transformpolicylabel_binding.go | 11 - .../config/transform/transformpolicylabel.go | 14 - .../transform/transformpolicylabel_binding.go | 5 - ...nsformpolicylabel_policybinding_binding.go | 11 - ...formpolicylabel_transformpolicy_binding.go | 11 - .../config/transform/transformprofile.go | 14 - .../transform/transformprofile_binding.go | 5 - ...ransformprofile_transformaction_binding.go | 16 - .../go-nitro/config/utility/callhome.go | 26 - .../go-nitro/config/utility/install.go | 9 - .../chiradeep/go-nitro/config/utility/ping.go | 13 - .../go-nitro/config/utility/ping6.go | 16 - .../chiradeep/go-nitro/config/utility/raid.go | 1 - .../go-nitro/config/utility/techsupport.go | 15 - .../go-nitro/config/utility/traceroute.go | 16 - .../go-nitro/config/utility/traceroute6.go | 17 - .../go-nitro => citrix/adc-nitro-go}/LICENSE | 25 - .../resource/config/appfw/appfwarchive.go | 54 ++ .../resource/config/appfw/appfwconfidfield.go | 46 ++ .../config/appfw/appfwcustomsettings.go | 26 + .../resource/config/appfw/appfwfieldtype.go | 52 ++ .../config/appfw/appfwglobal_binding.go | 25 + .../appfw/appfwglobal_nslogpolicy_binding.go | 72 ++ .../appfw/appfwglobal_policy_binding.go | 67 ++ .../appfw/appfwglobal_syslogpolicy_binding.go | 72 ++ .../config/appfw/appfwhtmlerrorpage.go | 45 ++ .../config/appfw/appfwjsoncontenttype.go | 37 + .../config/appfw/appfwjsonerrorpage.go | 45 ++ .../config/appfw/appfwlearningdata.go | 168 ++++ .../config/appfw/appfwlearningsettings.go | 148 ++++ .../appfw/appfwmultipartformcontenttype.go | 37 + .../resource/config/appfw/appfwpolicy.go | 61 ++ .../config/appfw/appfwpolicy_binding.go | 29 + .../appfw/appfwpolicy_global_binding.go | 53 ++ .../appfw/appfwpolicy_policylabel_binding.go | 53 ++ .../appfw/appfwpolicy_vserver_binding.go | 53 ++ .../resource/config/appfw/appfwpolicylabel.go | 49 ++ .../config/appfw/appfwpolicylabel_binding.go | 29 + .../appfw/appfwpolicylabel_policy_binding.go | 55 ++ .../appfwpolicylabel_policybinding_binding.go | 55 ++ .../resource/config/appfw/appfwprofile.go | 762 ++++++++++++++++++ .../config/appfw/appfwprofile_binding.go | 29 + .../appfwprofile_cmdinjection_binding.go | 81 ++ .../appfw/appfwprofile_contenttype_binding.go | 57 ++ .../appfwprofile_cookieconsistency_binding.go | 61 ++ .../appfwprofile_creditcardnumber_binding.go | 61 ++ ...appfwprofile_crosssitescripting_binding.go | 81 ++ .../appfw/appfwprofile_csrftag_binding.go | 61 ++ .../appfw/appfwprofile_denyurl_binding.go | 57 ++ ...fwprofile_excluderescontenttype_binding.go | 57 ++ .../appfwprofile_fieldconsistency_binding.go | 65 ++ .../appfw/appfwprofile_fieldformat_binding.go | 77 ++ .../appfwprofile_fileuploadtype_binding.go | 69 ++ .../appfw/appfwprofile_jsoncmdurl_binding.go | 58 ++ .../appfw/appfwprofile_jsondosurl_binding.go | 119 +++ .../appfw/appfwprofile_jsonsqlurl_binding.go | 58 ++ .../appfw/appfwprofile_jsonxssurl_binding.go | 58 ++ .../appfwprofile_logexpression_binding.go | 61 ++ .../appfw/appfwprofile_safeobject_binding.go | 69 ++ .../appfwprofile_sqlinjection_binding.go | 81 ++ .../appfw/appfwprofile_starturl_binding.go | 57 ++ ...wprofile_trustedlearningclients_binding.go | 57 ++ .../appfwprofile_xmlattachmenturl_binding.go | 73 ++ .../appfw/appfwprofile_xmldosurl_binding.go | 201 +++++ .../appfwprofile_xmlsqlinjection_binding.go | 69 ++ .../appfwprofile_xmlvalidationurl_binding.go | 89 ++ .../appfw/appfwprofile_xmlwsiurl_binding.go | 61 ++ .../appfw/appfwprofile_xmlxss_binding.go | 69 ++ .../resource/config/appfw/appfwsettings.go | 118 +++ .../resource/config/appfw/appfwsignatures.go | 69 ++ .../config/appfw/appfwtransactionrecords.go | 46 ++ .../appfw/appfwurlencodedformcontenttype.go | 37 + .../resource/config/appfw/appfwwsdl.go | 45 ++ .../config/appfw/appfwxmlcontenttype.go | 37 + .../config/appfw/appfwxmlerrorpage.go | 45 ++ .../resource/config/appfw/appfwxmlschema.go | 45 ++ .../config/audit/auditmessageaction.go | 62 ++ .../resource/config/audit/auditmessages.go | 46 ++ .../resource/config/audit/auditnslogaction.go | 133 +++ .../config/audit/auditnslogglobal_binding.go | 25 + .../auditnslogglobal_nslogpolicy_binding.go | 42 + .../resource/config/audit/auditnslogparams.go | 114 +++ .../resource/config/audit/auditnslogpolicy.go | 46 ++ .../config/audit/auditnslogpolicy_binding.go | 29 + .../audit/auditnslogpolicy_global_binding.go | 35 + .../audit/auditnslogpolicy_group_binding.go | 35 + .../auditnslogpolicy_nslogglobal_binding.go | 35 + .../audit/auditnslogpolicy_user_binding.go | 35 + .../audit/auditnslogpolicy_vserver_binding.go | 35 + .../config/audit/auditsyslogaction.go | 158 ++++ .../config/audit/auditsyslogglobal_binding.go | 25 + .../auditsyslogglobal_syslogpolicy_binding.go | 46 ++ .../config/audit/auditsyslogparams.go | 118 +++ .../config/audit/auditsyslogpolicy.go | 46 ++ .../config/audit/auditsyslogpolicy_binding.go | 29 + .../audit/auditsyslogpolicy_global_binding.go | 35 + .../audit/auditsyslogpolicy_group_binding.go | 35 + .../auditsyslogpolicy_rnatglobal_binding.go | 35 + .../auditsyslogpolicy_syslogglobal_binding.go | 35 + .../audit/auditsyslogpolicy_user_binding.go | 35 + .../auditsyslogpolicy_vserver_binding.go | 35 + .../resource/config/basic/dbsmonitors.go | 24 + .../config/basic/extendedmemoryparam.go | 35 + .../resource/config/basic/location.go | 56 ++ .../resource/config/basic/locationdata.go | 24 + .../resource/config/basic/locationfile.go | 37 + .../resource/config/basic/locationfile6.go | 37 + .../config/basic/locationparameter.go | 92 +++ .../resource/config/basic/nstrace.go | 232 ++++++ .../resource/config/basic/radiusnode.go | 33 + .../resource/config/basic/reporting.go | 28 + .../resource/config/basic/server.go | 103 +++ .../resource/config/basic/server_binding.go | 29 + .../config/basic/server_service_binding.go | 53 ++ .../basic/server_servicegroup_binding.go | 162 ++++ .../resource/config/basic/service.go | 265 ++++++ .../resource/config/basic/service_binding.go | 29 + .../config/basic/service_monitor_binding.go | 105 +++ .../config/basic/service_policy_binding.go | 33 + .../resource/config/basic/servicegroup.go | 252 ++++++ .../config/basic/servicegroup_binding.go | 29 + .../basic/servicegroup_monitor_binding.go | 77 ++ ...p_servicegroupentitymonbindings_binding.go | 91 +++ ...servicegroup_servicegroupmember_binding.go | 97 +++ ...icegroup_servicegroupmemberlist_binding.go | 63 ++ .../config/basic/servicegroupbindings.go | 36 + .../resource/config/basic/svcbindings.go | 35 + .../resource/config/basic/vserver.go | 64 ++ .../resource/config/cluster/cluster.go | 30 + .../resource/config/cluster/clusterfiles.go | 66 ++ .../config/cluster/clusterinstance.go | 87 ++ .../config/cluster/clusterinstance_binding.go | 29 + .../cluster/clusterinstance_node_binding.go | 77 ++ .../resource/config/cluster/clusternode.go | 90 +++ .../config/cluster/clusternode_binding.go | 29 + .../clusternode_routemonitor_binding.go | 41 + .../config/cluster/clusternodegroup.go | 56 ++ .../cluster/clusternodegroup_binding.go | 29 + .../clusternodegroup_identifier_binding.go | 33 + ...lusternodegroup_limitidentifier_binding.go | 33 + .../cluster/clusternodegroup_node_binding.go | 33 + .../clusternodegroup_service_binding.go | 33 + .../cluster/clusternodegroup_site_binding.go | 33 + .../clusternodegroup_vserver_binding.go | 33 + .../config/cluster/clusterpropstatus.go | 31 + .../resource/config/cluster/clustersync.go | 24 + .../resource/config/cmp/cmpaction.go | 65 ++ .../resource/config/cmp/cmpglobal_binding.go | 25 + .../config/cmp/cmpglobal_policy_binding.go | 79 ++ .../resource/config/cmp/cmpparameter.go | 86 ++ .../resource/config/cmp/cmppolicy.go | 66 ++ .../resource/config/cmp/cmppolicy_binding.go | 29 + .../config/cmp/cmppolicy_global_binding.go | 47 ++ .../cmp/cmppolicy_policylabel_binding.go | 47 ++ .../config/cmp/cmppolicy_vserver_binding.go | 47 ++ .../resource/config/cmp/cmppolicylabel.go | 51 ++ .../config/cmp/cmppolicylabel_binding.go | 29 + .../cmp/cmppolicylabel_policy_binding.go | 53 ++ .../cmppolicylabel_policybinding_binding.go | 53 ++ .../resource/config/cs/csaction.go | 60 ++ .../resource/config/cs/csparameter.go | 33 + .../resource/config/cs/cspolicy.go | 69 ++ .../resource/config/cs/cspolicy_binding.go | 29 + .../config/cs/cspolicy_policylabel_binding.go | 53 ++ .../config/cs/cspolicy_vserver_binding.go | 65 ++ .../resource/config/cs/cspolicylabel.go | 62 ++ .../config/cs/cspolicylabel_binding.go | 29 + .../config/cs/cspolicylabel_policy_binding.go | 54 ++ .../resource/config/cs/csvserver.go | 374 +++++++++ .../resource/config/cs/csvserver_binding.go | 29 + .../config/cs/csvserver_domain_binding.go | 42 + .../cs/csvserver_nslogpolicy_binding.go | 79 ++ .../config/cs/csvserver_policy_binding.go | 85 ++ .../config/cs/csvserver_profile_binding.go | 33 + .../cs/csvserver_syslogpolicy_binding.go | 79 ++ .../cs/csvserver_trafficpolicy_binding.go | 75 ++ .../config/cs/csvserver_vserver_binding.go | 53 ++ .../resource/config/dns/dnsaaaarec.go | 56 ++ .../resource/config/dns/dnsaction.go | 60 ++ .../resource/config/dns/dnsaction64.go | 47 ++ .../resource/config/dns/dnsaddrec.go | 56 ++ .../resource/config/dns/dnscnamerec.go | 56 ++ .../resource/config/dns/dnsglobal_binding.go | 25 + .../config/dns/dnsglobal_policy_binding.go | 74 ++ .../resource/config/dns/dnskey.go | 84 ++ .../resource/config/dns/dnsmxrec.go | 59 ++ .../resource/config/dns/dnsnameserver.go | 57 ++ .../resource/config/dns/dnsnaptrrec.go | 81 ++ .../resource/config/dns/dnsnsecrec.go | 40 + .../resource/config/dns/dnsnsrec.go | 55 ++ .../resource/config/dns/dnsparameter.go | 118 +++ .../resource/config/dns/dnspolicy.go | 76 ++ .../resource/config/dns/dnspolicy64.go | 51 ++ .../config/dns/dnspolicy64_binding.go | 29 + .../config/dns/dnspolicy64_vserver_binding.go | 41 + .../resource/config/dns/dnspolicy_binding.go | 29 + .../config/dns/dnspolicy_global_binding.go | 53 ++ .../dns/dnspolicy_policylabel_binding.go | 53 ++ .../resource/config/dns/dnspolicylabel.go | 48 ++ .../config/dns/dnspolicylabel_binding.go | 29 + .../dns/dnspolicylabel_policy_binding.go | 53 ++ .../dnspolicylabel_policybinding_binding.go | 53 ++ .../resource/config/dns/dnsprofile.go | 64 ++ .../resource/config/dns/dnsproxyrecords.go | 32 + .../resource/config/dns/dnsptrrec.go | 55 ++ .../resource/config/dns/dnssoarec.go | 79 ++ .../resource/config/dns/dnssrvrec.go | 67 ++ .../resource/config/dns/dnssubnetcache.go | 41 + .../resource/config/dns/dnssuffix.go | 28 + .../resource/config/dns/dnstxtrec.go | 59 ++ .../resource/config/dns/dnsview.go | 32 + .../resource/config/dns/dnsview_binding.go | 29 + .../config/dns/dnsview_policy_binding.go | 33 + .../config/dns/dnsview_service_binding.go | 37 + .../resource/config/dns/dnszone.go | 59 ++ .../resource/config/dns/dnszone_binding.go | 29 + .../config/dns/dnszone_domain_binding.go | 37 + .../config/dns/dnszone_key_binding.go | 45 ++ .../resource/config/filter/filteraction.go | 61 ++ .../config/filter/filterglobal_binding.go | 25 + .../filter/filterglobal_policy_binding.go | 37 + .../filter/filterhtmlinjectionparameter.go | 45 ++ .../filter/filterhtmlinjectionvariable.go | 38 + .../resource/config/filter/filterpolicy.go | 45 ++ .../config/filter/filterpolicy_binding.go | 29 + .../filter/filterpolicy_global_binding.go | 35 + .../filter/filterpolicy_vserver_binding.go | 35 + .../config/filter/filterpostbodyinjection.go | 32 + .../config/filter/filterprebodyinjection.go | 32 + .../resource/config/gslb/gslbconfig.go | 49 ++ .../resource/config/gslb/gslbdomain.go | 28 + .../config/gslb/gslbdomain_binding.go | 29 + .../config/gslb/gslbdomain_monitor_binding.go | 82 ++ .../config/gslb/gslbdomain_service_binding.go | 74 ++ .../gslb/gslbdomain_servicegroup_binding.go | 33 + .../gslbdomain_servicegroupmember_binding.go | 57 ++ .../config/gslb/gslbdomain_vserver_binding.go | 107 +++ .../resource/config/gslb/gslbldnsentries.go | 37 + .../resource/config/gslb/gslbldnsentry.go | 28 + .../resource/config/gslb/gslbparameter.go | 88 ++ .../resource/config/gslb/gslbrunningconfig.go | 28 + .../resource/config/gslb/gslbservice.go | 192 +++++ .../config/gslb/gslbservice_binding.go | 29 + .../gslb/gslbservice_monitor_binding.go | 89 ++ .../config/gslb/gslbservice_view_binding.go | 37 + .../resource/config/gslb/gslbservicegroup.go | 168 ++++ .../config/gslb/gslbservicegroup_binding.go | 29 + .../gslb/gslbservicegroup_monitor_binding.go | 73 ++ ...p_servicegroupentitymonbindings_binding.go | 86 ++ ...servicegroup_servicegroupmember_binding.go | 94 +++ .../resource/config/gslb/gslbsite.go | 91 +++ .../resource/config/gslb/gslbsite_binding.go | 29 + .../config/gslb/gslbsite_service_binding.go | 53 ++ .../gslb/gslbsite_servicegroup_binding.go | 37 + .../gslbsite_servicegroupmember_binding.go | 49 ++ .../resource/config/gslb/gslbsyncstatus.go | 32 + .../resource/config/gslb/gslbvserver.go | 224 +++++ .../config/gslb/gslbvserver_binding.go | 29 + .../config/gslb/gslbvserver_domain_binding.go | 61 ++ .../config/gslb/gslbvserver_policy_binding.go | 55 ++ .../gslb/gslbvserver_service_binding.go | 97 +++ .../gslb/gslbvserver_servicegroup_binding.go | 33 + .../gslbvserver_servicegroupmember_binding.go | 81 ++ .../resource/config/lb/lbgroup.go | 88 ++ .../resource/config/lb/lbgroup_binding.go | 29 + .../config/lb/lbgroup_vserver_binding.go | 34 + .../resource/config/lb/lbmetrictable.go | 43 + .../config/lb/lbmetrictable_binding.go | 29 + .../config/lb/lbmetrictable_metric_binding.go | 41 + .../resource/config/lb/lbmonbindings.go | 34 + .../config/lb/lbmonbindings_binding.go | 29 + .../lb/lbmonbindings_service_binding.go | 53 ++ .../lb/lbmonbindings_servicegroup_binding.go | 45 ++ .../resource/config/lb/lbmonitor.go | 466 +++++++++++ .../resource/config/lb/lbmonitor_binding.go | 29 + .../config/lb/lbmonitor_certkey_binding.go | 45 ++ .../config/lb/lbmonitor_metric_binding.go | 49 ++ .../config/lb/lbmonitor_service_binding.go | 53 ++ .../lb/lbmonitor_servicegroup_binding.go | 53 ++ .../resource/config/lb/lbparameter.go | 134 +++ .../config/lb/lbpersistentsessions.go | 52 ++ .../resource/config/lb/lbprofile.go | 88 ++ .../resource/config/lb/lbroute.go | 44 + .../resource/config/lb/lbroute6.go | 40 + .../resource/config/lb/lbsipparameters.go | 57 ++ .../resource/config/lb/lbvserver.go | 549 +++++++++++++ .../resource/config/lb/lbvserver_binding.go | 29 + .../lb/lbvserver_detectionpolicy_binding.go | 58 ++ .../lb/lbvserver_nslogpolicy_binding.go | 77 ++ .../lb/lbvserver_pacingpolicy_binding.go | 58 ++ .../config/lb/lbvserver_policy64_binding.go | 61 ++ .../config/lb/lbvserver_policy_binding.go | 62 ++ .../config/lb/lbvserver_profile_binding.go | 34 + .../config/lb/lbvserver_service_binding.go | 82 ++ .../lb/lbvserver_servicegroup_binding.go | 42 + .../lbvserver_servicegroupmember_binding.go | 74 ++ .../lb/lbvserver_syslogpolicy_binding.go | 77 ++ .../lb/lbvserver_trafficpolicy_binding.go | 73 ++ .../config/lb/lbvserver_vserver_binding.go | 59 ++ .../adc-nitro-go/resource/config/lb/lbwlm.go | 49 ++ .../resource/config/lb/lbwlm_binding.go | 29 + .../config/lb/lbwlm_vserver_binding.go | 33 + .../resource/config/network/Interface.go | 235 ++++++ .../resource/config/network/appalgparam.go | 28 + .../resource/config/network/arp.go | 73 ++ .../resource/config/network/arpparam.go | 32 + .../resource/config/network/bridgegroup.go | 46 ++ .../config/network/bridgegroup_binding.go | 29 + .../config/network/bridgegroup_ip6_binding.go | 49 ++ .../config/network/bridgegroup_ip_binding.go | 49 ++ .../network/bridgegroup_vlan_binding.go | 37 + .../resource/config/network/bridgetable.go | 67 ++ .../resource/config/network/channel.go | 191 +++++ .../config/network/channel_binding.go | 30 + .../network/channel_interface_binding.go | 78 ++ .../resource/config/network/ci.go | 28 + .../resource/config/network/fis.go | 36 + .../resource/config/network/fis_binding.go | 29 + .../config/network/fis_channel_binding.go | 37 + .../config/network/fis_interface_binding.go | 37 + .../config/network/forwardingsession.go | 62 ++ .../resource/config/network/inat.go | 80 ++ .../resource/config/network/inatparam.go | 48 ++ .../resource/config/network/interfacepair.go | 36 + .../resource/config/network/ip6tunnel.go | 46 ++ .../resource/config/network/ip6tunnelparam.go | 44 + .../resource/config/network/ipset.go | 32 + .../resource/config/network/ipset_binding.go | 29 + .../config/network/ipset_ip6_binding.go | 33 + .../config/network/ipset_ip_binding.go | 33 + .../resource/config/network/iptunnel.go | 70 ++ .../resource/config/network/iptunnelparam.go | 56 ++ .../resource/config/network/ipv6.go | 64 ++ .../resource/config/network/l2param.go | 88 ++ .../resource/config/network/l3param.go | 85 ++ .../resource/config/network/l4param.go | 32 + .../resource/config/network/lacp.go | 41 + .../resource/config/network/linkset.go | 32 + .../config/network/linkset_binding.go | 29 + .../config/network/linkset_channel_binding.go | 33 + .../network/linkset_interface_binding.go | 33 + .../resource/config/network/mapbmr.go | 47 ++ .../resource/config/network/mapbmr_binding.go | 31 + .../network/mapbmr_bmrv4network_binding.go | 39 + .../resource/config/network/mapdmr.go | 33 + .../resource/config/network/mapdomain.go | 32 + .../config/network/mapdomain_binding.go | 29 + .../network/mapdomain_mapbmr_binding.go | 33 + .../resource/config/network/nat64.go | 36 + .../resource/config/network/nat64param.go | 44 + .../resource/config/network/nd6.go | 64 ++ .../resource/config/network/nd6ravariables.go | 85 ++ .../config/network/nd6ravariables_binding.go | 29 + ...nd6ravariables_onlinkipv6prefix_binding.go | 33 + .../resource/config/network/netbridge.go | 32 + .../config/network/netbridge_binding.go | 29 + .../config/network/netbridge_ip6_binding.go | 37 + .../config/network/netbridge_ip_binding.go | 37 + .../network/netbridge_iptunnel_binding.go | 33 + .../config/network/netbridge_vlan_binding.go | 33 + .../resource/config/network/netprofile.go | 61 ++ .../config/network/netprofile_binding.go | 29 + .../network/netprofile_natrule_binding.go | 35 + .../network/netprofile_srcportset_binding.go | 33 + .../config/network/onlinkipv6prefix.go | 57 ++ .../resource/config/network/ptp.go | 28 + .../resource/config/network/rnat.go | 72 ++ .../resource/config/network/rnat6.go | 52 ++ .../resource/config/network/rnat6_binding.go | 29 + .../config/network/rnat6_ip6_binding.go | 41 + .../resource/config/network/rnat_binding.go | 29 + .../config/network/rnat_ip_binding.go | 41 + .../rnat_retainsourceportset_binding.go | 33 + .../config/network/rnatglobal_binding.go | 25 + .../rnatglobal_syslogpolicy_binding.go | 37 + .../resource/config/network/rnatparam.go | 32 + .../resource/config/network/rnatsession.go | 40 + .../resource/config/network/route.go | 123 +++ .../resource/config/network/route6.go | 108 +++ .../resource/config/network/rsskeytype.go | 28 + .../resource/config/network/vlan.go | 65 ++ .../resource/config/network/vlan_binding.go | 29 + .../config/network/vlan_channel_binding.go | 41 + .../config/network/vlan_interface_binding.go | 41 + .../config/network/vlan_ip6_binding.go | 45 ++ .../config/network/vlan_ip_binding.go | 45 ++ .../config/network/vlan_linkset_binding.go | 41 + .../resource/config/network/vrid.go | 77 ++ .../resource/config/network/vrid6.go | 78 ++ .../resource/config/network/vrid6_binding.go | 29 + .../config/network/vrid6_channel_binding.go | 41 + .../config/network/vrid6_interface_binding.go | 41 + .../config/network/vrid6_ip6_binding.go | 37 + .../config/network/vrid6_ip_binding.go | 37 + .../network/vrid6_trackinterface_binding.go | 37 + .../resource/config/network/vrid_binding.go | 29 + .../config/network/vrid_channel_binding.go | 41 + .../config/network/vrid_interface_binding.go | 41 + .../config/network/vrid_ip6_binding.go | 37 + .../config/network/vrid_ip_binding.go | 37 + .../network/vrid_trackinterface_binding.go | 37 + .../resource/config/network/vridparam.go | 36 + .../resource/config/network/vxlan.go | 61 ++ .../resource/config/network/vxlan_binding.go | 29 + .../config/network/vxlan_ip6_binding.go | 37 + .../config/network/vxlan_ip_binding.go | 37 + .../config/network/vxlan_iptunnel_binding.go | 33 + .../config/network/vxlan_srcip_binding.go | 33 + .../resource/config/network/vxlanvlanmap.go | 28 + .../config/network/vxlanvlanmap_binding.go | 29 + .../network/vxlanvlanmap_vxlan_binding.go | 37 + .../adc-nitro-go/resource/config/ns/nsacl.go | 185 +++++ .../adc-nitro-go/resource/config/ns/nsacl6.go | 185 +++++ .../adc-nitro-go/resource/config/ns/nsacls.go | 31 + .../resource/config/ns/nsacls6.go | 31 + .../resource/config/ns/nsappflowcollector.go | 36 + .../resource/config/ns/nsappflowparam.go | 60 ++ .../resource/config/ns/nsaptlicense.go | 63 ++ .../resource/config/ns/nsassignment.go | 71 ++ .../resource/config/ns/nscapacity.go | 57 ++ .../config/ns/nscentralmanagementserver.go | 74 ++ .../resource/config/ns/nsconfig.go | 186 +++++ .../resource/config/ns/nsconnectiontable.go | 301 +++++++ .../config/ns/nsconsoleloginprompt.go | 28 + .../resource/config/ns/nscqaparam.go | 104 +++ .../resource/config/ns/nsdhcpip.go | 24 + .../resource/config/ns/nsdhcpparams.go | 39 + .../resource/config/ns/nsdiameter.go | 46 ++ .../resource/config/ns/nsencryptionkey.go | 80 ++ .../resource/config/ns/nsencryptionparams.go | 35 + .../resource/config/ns/nsevents.go | 40 + .../resource/config/ns/nsextension.go | 70 ++ .../resource/config/ns/nsextension_binding.go | 29 + .../nsextension_extensionfunction_binding.go | 77 ++ .../resource/config/ns/nsfeature.go | 74 ++ .../resource/config/ns/nshardware.go | 39 + .../resource/config/ns/nshmackey.go | 56 ++ .../resource/config/ns/nshostname.go | 32 + .../resource/config/ns/nshttpparam.go | 69 ++ .../resource/config/ns/nshttpprofile.go | 239 ++++++ .../resource/config/ns/nsicapprofile.go | 91 +++ .../adc-nitro-go/resource/config/ns/nsip.go | 205 +++++ .../adc-nitro-go/resource/config/ns/nsip6.go | 174 ++++ .../resource/config/ns/nslicense.go | 91 +++ .../resource/config/ns/nslicenseparameters.go | 32 + .../config/ns/nslicenseproxyserver.go | 36 + .../resource/config/ns/nslicenseserver.go | 50 ++ .../resource/config/ns/nslicenseserverpool.go | 145 ++++ .../resource/config/ns/nslimitidentifier.go | 85 ++ .../config/ns/nslimitidentifier_binding.go | 29 + ...nslimitidentifier_limitsessions_binding.go | 29 + .../resource/config/ns/nslimitselector.go | 26 + .../resource/config/ns/nslimitsessions.go | 47 ++ .../resource/config/ns/nsmigration.go | 31 + .../adc-nitro-go/resource/config/ns/nsmode.go | 49 ++ .../resource/config/ns/nsparam.go | 144 ++++ .../resource/config/ns/nspartition.go | 62 ++ .../resource/config/ns/nspartition_binding.go | 29 + .../ns/nspartition_bridgegroup_binding.go | 33 + .../config/ns/nspartition_vlan_binding.go | 33 + .../config/ns/nspartition_vxlan_binding.go | 33 + .../resource/config/ns/nspartitionmac.go | 29 + .../adc-nitro-go/resource/config/ns/nspbr.go | 178 ++++ .../adc-nitro-go/resource/config/ns/nspbr6.go | 174 ++++ .../adc-nitro-go/resource/config/ns/nspbrs.go | 24 + .../resource/config/ns/nsratecontrol.go | 40 + .../resource/config/ns/nsrollbackcmd.go | 32 + .../resource/config/ns/nsrpcnode.go | 44 + .../resource/config/ns/nsrunningconfig.go | 32 + .../resource/config/ns/nssavedconfig.go | 28 + .../resource/config/ns/nsservicefunction.go | 32 + .../resource/config/ns/nsservicepath.go | 30 + .../config/ns/nsservicepath_binding.go | 31 + .../nsservicepath_servicefunction_binding.go | 39 + .../resource/config/ns/nssimpleacl.go | 58 ++ .../resource/config/ns/nssimpleacl6.go | 58 ++ .../config/ns/nssourceroutecachetable.go | 31 + .../resource/config/ns/nsspparams.go | 38 + .../resource/config/ns/nsstats.go | 28 + .../resource/config/ns/nssurgeq.go | 36 + .../resource/config/ns/nstcpbufparam.go | 37 + .../resource/config/ns/nstcpparam.go | 222 +++++ .../resource/config/ns/nstcpprofile.go | 257 ++++++ .../resource/config/ns/nstestlicense.go | 90 +++ .../resource/config/ns/nstimeout.go | 88 ++ .../resource/config/ns/nstimer.go | 44 + .../resource/config/ns/nstimer_binding.go | 29 + .../config/ns/nstimer_policy_binding.go | 53 ++ .../resource/config/ns/nstimezone.go | 23 + .../resource/config/ns/nstrafficdomain.go | 40 + .../config/ns/nstrafficdomain_binding.go | 29 + .../ns/nstrafficdomain_bridgegroup_binding.go | 33 + .../config/ns/nstrafficdomain_vlan_binding.go | 33 + .../ns/nstrafficdomain_vxlan_binding.go | 33 + .../resource/config/ns/nsvariable.go | 94 +++ .../resource/config/ns/nsversion.go | 33 + .../resource/config/ns/nsvpxparam.go | 56 ++ .../resource/config/ns/nsweblogparam.go | 41 + .../resource/config/ns/nsxmlnamespace.go | 36 + .../adc-nitro-go/resource/config/ns/reboot.go | 27 + .../resource/config/ns/shutdown.go | 22 + .../resource/config/policy/policydataset.go | 48 ++ .../config/policy/policydataset_binding.go | 29 + .../policy/policydataset_value_binding.go | 45 ++ .../config/policy/policyevaluation.go | 81 ++ .../config/policy/policyexpression.go | 57 ++ .../config/policy/policyhttpcallout.go | 106 +++ .../resource/config/policy/policymap.go | 49 ++ .../resource/config/policy/policyparam.go | 28 + .../resource/config/policy/policypatset.go | 44 + .../config/policy/policypatset_binding.go | 29 + .../policy/policypatset_pattern_binding.go | 55 ++ .../config/policy/policypatsetfile.go | 61 ++ .../resource/config/policy/policystringmap.go | 32 + .../config/policy/policystringmap_binding.go | 29 + .../policy/policystringmap_pattern_binding.go | 41 + .../resource/config/policy/policyurlset.go | 76 ++ .../config/responder/responderaction.go | 91 +++ .../responder/responderglobal_binding.go | 25 + .../responderglobal_policy_binding.go | 78 ++ .../config/responder/responderhtmlpage.go | 49 ++ .../config/responder/responderparam.go | 35 + .../config/responder/responderpolicy.go | 71 ++ .../responder/responderpolicy_binding.go | 29 + .../responderpolicy_global_binding.go | 53 ++ .../responderpolicy_policylabel_binding.go | 53 ++ .../responderpolicy_vserver_binding.go | 53 ++ .../config/responder/responderpolicylabel.go | 60 ++ .../responder/responderpolicylabel_binding.go | 29 + .../responderpolicylabel_policy_binding.go | 56 ++ ...ponderpolicylabel_policybinding_binding.go | 56 ++ .../resource/config/rewrite/rewriteaction.go | 110 +++ .../config/rewrite/rewriteglobal_binding.go | 25 + .../rewrite/rewriteglobal_policy_binding.go | 66 ++ .../resource/config/rewrite/rewriteparam.go | 36 + .../resource/config/rewrite/rewritepolicy.go | 74 ++ .../config/rewrite/rewritepolicy_binding.go | 29 + .../rewrite/rewritepolicy_global_binding.go | 53 ++ .../rewritepolicy_policylabel_binding.go | 53 ++ .../rewrite/rewritepolicy_vserver_binding.go | 53 ++ .../config/rewrite/rewritepolicylabel.go | 75 ++ .../rewrite/rewritepolicylabel_binding.go | 29 + .../rewritepolicylabel_policy_binding.go | 57 ++ ...ewritepolicylabel_policybinding_binding.go | 57 ++ .../config/router/routerdynamicrouting.go | 36 + .../resource/config/ssl/sslaction.go | 147 ++++ .../resource/config/ssl/sslcacertgroup.go | 34 + .../config/ssl/sslcacertgroup_binding.go | 29 + .../ssl/sslcacertgroup_certkey_binding.go | 41 + .../resource/config/ssl/sslcert.go | 87 ++ .../resource/config/ssl/sslcertbundle.go | 37 + .../resource/config/ssl/sslcertchain.go | 28 + .../config/ssl/sslcertchain_binding.go | 29 + .../ssl/sslcertchain_certkey_binding.go | 45 ++ .../resource/config/ssl/sslcertfile.go | 33 + .../config/ssl/sslcertificatechain.go | 35 + .../resource/config/ssl/sslcertkey.go | 113 +++ .../resource/config/ssl/sslcertkey_binding.go | 29 + .../ssl/sslcertkey_crldistribution_binding.go | 37 + .../ssl/sslcertkey_ocspresponder_binding.go | 41 + .../config/ssl/sslcertkey_profile_binding.go | 37 + .../config/ssl/sslcertkey_service_binding.go | 53 ++ .../config/ssl/sslcertkey_vserver_binding.go | 54 ++ .../resource/config/ssl/sslcertlink.go | 29 + .../resource/config/ssl/sslcertreq.go | 94 +++ .../resource/config/ssl/sslcipher.go | 47 ++ .../resource/config/ssl/sslcipher_binding.go | 29 + .../ssl/sslcipher_ciphersuite_binding.go | 55 ++ .../ssl/sslcipher_individualcipher_binding.go | 53 ++ .../config/ssl/sslcipher_profile_binding.go | 53 ++ .../config/ssl/sslcipher_service_binding.go | 61 ++ .../ssl/sslcipher_servicegroup_binding.go | 61 ++ .../config/ssl/sslcipher_vserver_binding.go | 55 ++ .../resource/config/ssl/sslciphersuite.go | 32 + .../resource/config/ssl/sslcrl.go | 130 +++ .../resource/config/ssl/sslcrl_binding.go | 29 + .../config/ssl/sslcrl_serialnumber_binding.go | 37 + .../resource/config/ssl/sslcrlfile.go | 33 + .../resource/config/ssl/ssldhfile.go | 33 + .../resource/config/ssl/ssldhparam.go | 36 + .../resource/config/ssl/ssldtlsprofile.go | 65 ++ .../resource/config/ssl/sslecdsakey.go | 56 ++ .../resource/config/ssl/sslfips.go | 70 ++ .../resource/config/ssl/sslfipskey.go | 71 ++ .../resource/config/ssl/sslfipssimsource.go | 36 + .../resource/config/ssl/sslfipssimtarget.go | 40 + .../resource/config/ssl/sslglobal_binding.go | 25 + .../config/ssl/sslglobal_policy_binding.go | 66 ++ .../resource/config/ssl/sslhsmkey.go | 49 ++ .../resource/config/ssl/sslkeyfile.go | 34 + .../resource/config/ssl/ssllogprofile.go | 44 + .../resource/config/ssl/sslocspresponder.go | 89 ++ .../resource/config/ssl/sslparameter.go | 162 ++++ .../resource/config/ssl/sslpkcs12.go | 65 ++ .../resource/config/ssl/sslpkcs8.go | 40 + .../resource/config/ssl/sslpolicy.go | 63 ++ .../resource/config/ssl/sslpolicy_binding.go | 29 + .../config/ssl/sslpolicy_global_binding.go | 47 ++ .../ssl/sslpolicy_policylabel_binding.go | 47 ++ .../config/ssl/sslpolicy_service_binding.go | 47 ++ .../config/ssl/sslpolicy_vserver_binding.go | 47 ++ .../resource/config/ssl/sslpolicylabel.go | 47 ++ .../config/ssl/sslpolicylabel_binding.go | 29 + .../ssl/sslpolicylabel_policy_binding.go | 53 ++ .../resource/config/ssl/sslprofile.go | 337 ++++++++ .../resource/config/ssl/sslprofile_binding.go | 29 + .../config/ssl/sslprofile_certkey_binding.go | 37 + .../config/ssl/sslprofile_cipher_binding.go | 45 ++ .../ssl/sslprofile_ciphersuite_binding.go | 41 + .../config/ssl/sslprofile_ecccurve_binding.go | 37 + .../config/ssl/sslprofile_vserver_binding.go | 41 + .../resource/config/ssl/sslrsakey.go | 60 ++ .../resource/config/ssl/sslservice.go | 187 +++++ .../resource/config/ssl/sslservice_binding.go | 29 + .../config/ssl/sslservice_certkey_binding.go | 57 ++ .../config/ssl/sslservice_cipher_binding.go | 41 + .../ssl/sslservice_ciphersuite_binding.go | 37 + .../config/ssl/sslservice_ecccurve_binding.go | 33 + .../config/ssl/sslservice_policy_binding.go | 57 ++ .../resource/config/ssl/sslservicegroup.go | 112 +++ .../config/ssl/sslservicegroup_binding.go | 29 + .../ssl/sslservicegroup_certkey_binding.go | 49 ++ .../ssl/sslservicegroup_cipher_binding.go | 41 + .../sslservicegroup_ciphersuite_binding.go | 37 + .../ssl/sslservicegroup_ecccurve_binding.go | 33 + .../resource/config/ssl/sslvserver.go | 211 +++++ .../resource/config/ssl/sslvserver_binding.go | 29 + .../config/ssl/sslvserver_certkey_binding.go | 57 ++ .../config/ssl/sslvserver_cipher_binding.go | 41 + .../ssl/sslvserver_ciphersuite_binding.go | 37 + .../config/ssl/sslvserver_ecccurve_binding.go | 33 + .../config/ssl/sslvserver_policy_binding.go | 64 ++ .../resource/config/ssl/sslwrapkey.go | 38 + .../config/system/systemautorestorefeature.go | 24 + .../resource/config/system/systembackup.go | 56 ++ .../resource/config/system/systemcmdpolicy.go | 42 + .../config/system/systemcollectionparam.go | 36 + .../resource/config/system/systemcore.go | 32 + .../config/system/systemcountergroup.go | 32 + .../resource/config/system/systemcounters.go | 36 + .../config/system/systemdatasource.go | 32 + .../resource/config/system/systementity.go | 40 + .../config/system/systementitydata.go | 74 ++ .../config/system/systementitytype.go | 32 + .../config/system/systemeventhistory.go | 48 ++ .../config/system/systemextramgmtcpu.go | 31 + .../resource/config/system/systemfile.go | 47 ++ .../config/system/systemglobal_binding.go | 25 + .../system/systemglobal_ldappolicy_binding.go | 52 ++ .../systemglobal_localpolicy_binding.go | 52 ++ .../systemglobal_nslogpolicy_binding.go | 52 ++ .../system/systemglobal_policy_binding.go | 50 ++ .../systemglobal_radiuspolicy_binding.go | 52 ++ .../systemglobal_syslogpolicy_binding.go | 52 ++ .../systemglobal_tacacspolicy_binding.go | 52 ++ .../config/system/systemglobaldata.go | 62 ++ .../resource/config/system/systemgroup.go | 48 ++ .../config/system/systemgroup_binding.go | 29 + .../system/systemgroup_cmdpolicy_binding.go | 37 + .../system/systemgroup_partition_binding.go | 33 + .../config/system/systemgroup_user_binding.go | 33 + .../resource/config/system/systemhwerror.go | 33 + .../resource/config/system/systemparameter.go | 118 +++ .../config/system/systemrestorepoint.go | 37 + .../resource/config/system/systemsession.go | 45 ++ .../resource/config/system/systemsshkey.go | 36 + .../resource/config/system/systemuser.go | 72 ++ .../config/system/systemuser_binding.go | 29 + .../system/systemuser_cmdpolicy_binding.go | 37 + .../config/system/systemuser_group_binding.go | 33 + .../system/systemuser_partition_binding.go | 33 + .../config/transform/transformaction.go | 76 ++ .../transform/transformglobal_binding.go | 25 + .../transformglobal_policy_binding.go | 69 ++ .../config/transform/transformpolicy.go | 64 ++ .../transform/transformpolicy_binding.go | 29 + .../transformpolicy_global_binding.go | 53 ++ .../transformpolicy_policylabel_binding.go | 53 ++ .../transformpolicy_vserver_binding.go | 53 ++ .../config/transform/transformpolicylabel.go | 51 ++ .../transform/transformpolicylabel_binding.go | 31 + .../transformpolicylabel_policy_binding.go | 55 ++ ...nsformpolicylabel_policybinding_binding.go | 55 ++ .../config/transform/transformprofile.go | 51 ++ .../transformprofile_action_binding.go | 73 ++ .../transform/transformprofile_binding.go | 29 + .../resource/config/utility/callhome.go | 73 ++ .../resource/config/utility/install.go | 52 ++ .../resource/config/utility/ping.go | 70 ++ .../resource/config/utility/ping6.go | 82 ++ .../resource/config/utility/raid.go | 24 + .../resource/config/utility/techsupport.go | 65 ++ .../resource/config/utility/traceroute.go | 86 ++ .../resource/config/utility/traceroute6.go | 74 ++ .../adc-nitro-go/service}/client.go | 76 +- .../adc-nitro-go/service}/config.go | 237 +++--- .../service}/netscaler_resource.go | 109 ++- .../adc-nitro-go/service}/resources.go | 4 +- .../adc-nitro-go/service}/stats.go | 58 +- .../github.com/hashicorp/go-hclog/README.md | 2 +- .../hashicorp/go-hclog/colorize_unix.go | 27 + .../hashicorp/go-hclog/colorize_windows.go | 33 + .../github.com/hashicorp/go-hclog/exclude.go | 71 ++ .../github.com/hashicorp/go-hclog/global.go | 14 + vendor/github.com/hashicorp/go-hclog/go.mod | 5 + vendor/github.com/hashicorp/go-hclog/go.sum | 12 + .../hashicorp/go-hclog/interceptlogger.go | 203 +++++ .../hashicorp/go-hclog/intlogger.go | 338 ++++++-- .../github.com/hashicorp/go-hclog/logger.go | 177 +++- .../hashicorp/go-hclog/nulllogger.go | 6 + .../github.com/hashicorp/go-hclog/stdlog.go | 68 +- .../github.com/hashicorp/go-hclog/writer.go | 20 +- .../mattn/go-colorable/colorable_appengine.go | 6 +- .../mattn/go-colorable/colorable_others.go | 6 +- .../mattn/go-colorable/colorable_windows.go | 43 +- vendor/github.com/mattn/go-colorable/go.mod | 2 +- .../mattn/go-colorable/noncolorable.go | 6 +- vendor/github.com/mattn/go-isatty/go.mod | 4 +- vendor/github.com/mattn/go-isatty/go.sum | 6 +- .../mattn/go-isatty/isatty_android.go | 23 + .../mattn/go-isatty/isatty_others.go | 2 +- .../mattn/go-isatty/isatty_plan9.go | 22 + .../{isatty_linux.go => isatty_tcgets.go} | 3 +- .../mattn/go-isatty/isatty_windows.go | 39 +- vendor/golang.org/x/sys/cpu/byteorder.go | 38 +- vendor/golang.org/x/sys/cpu/cpu.go | 36 + vendor/golang.org/x/sys/cpu/cpu_arm.go | 33 +- vendor/golang.org/x/sys/cpu/cpu_linux.go | 2 +- vendor/golang.org/x/sys/cpu/cpu_linux_arm.go | 39 + .../golang.org/x/sys/unix/affinity_linux.go | 46 +- vendor/golang.org/x/sys/unix/ioctl.go | 41 +- vendor/golang.org/x/sys/unix/mkall.sh | 4 +- vendor/golang.org/x/sys/unix/mkerrors.sh | 50 +- vendor/golang.org/x/sys/unix/syscall_aix.go | 39 +- .../golang.org/x/sys/unix/syscall_aix_ppc.go | 4 + .../x/sys/unix/syscall_aix_ppc64.go | 4 + vendor/golang.org/x/sys/unix/syscall_bsd.go | 2 - .../x/sys/unix/syscall_darwin.1_12.go | 29 + .../x/sys/unix/syscall_darwin.1_13.go | 103 +++ .../golang.org/x/sys/unix/syscall_darwin.go | 40 +- .../x/sys/unix/syscall_darwin_386.1_11.go | 9 + .../x/sys/unix/syscall_darwin_386.go | 8 +- .../x/sys/unix/syscall_darwin_amd64.1_11.go | 9 + .../x/sys/unix/syscall_darwin_amd64.go | 8 +- .../x/sys/unix/syscall_darwin_arm.1_11.go | 11 + .../x/sys/unix/syscall_darwin_arm.go | 16 +- .../x/sys/unix/syscall_darwin_arm64.1_11.go | 11 + .../x/sys/unix/syscall_darwin_arm64.go | 16 +- .../x/sys/unix/syscall_darwin_libSystem.go | 2 + .../x/sys/unix/syscall_dragonfly.go | 41 +- .../x/sys/unix/syscall_dragonfly_amd64.go | 4 + .../golang.org/x/sys/unix/syscall_freebsd.go | 41 +- .../x/sys/unix/syscall_freebsd_386.go | 4 + .../x/sys/unix/syscall_freebsd_amd64.go | 4 + .../x/sys/unix/syscall_freebsd_arm.go | 4 + .../x/sys/unix/syscall_freebsd_arm64.go | 4 + vendor/golang.org/x/sys/unix/syscall_linux.go | 173 +++- .../x/sys/unix/syscall_linux_386.go | 4 + .../x/sys/unix/syscall_linux_amd64.go | 4 + .../x/sys/unix/syscall_linux_arm.go | 4 + .../x/sys/unix/syscall_linux_arm64.go | 4 + .../x/sys/unix/syscall_linux_mips64x.go | 4 + .../x/sys/unix/syscall_linux_mipsx.go | 4 + .../x/sys/unix/syscall_linux_ppc64x.go | 4 + .../x/sys/unix/syscall_linux_riscv64.go | 4 + .../x/sys/unix/syscall_linux_s390x.go | 4 + .../x/sys/unix/syscall_linux_sparc64.go | 4 + .../golang.org/x/sys/unix/syscall_netbsd.go | 41 +- .../x/sys/unix/syscall_netbsd_386.go | 4 + .../x/sys/unix/syscall_netbsd_amd64.go | 4 + .../x/sys/unix/syscall_netbsd_arm.go | 4 + .../x/sys/unix/syscall_netbsd_arm64.go | 4 + .../golang.org/x/sys/unix/syscall_openbsd.go | 41 +- .../x/sys/unix/syscall_openbsd_386.go | 4 + .../x/sys/unix/syscall_openbsd_amd64.go | 4 + .../x/sys/unix/syscall_openbsd_arm.go | 4 + .../x/sys/unix/syscall_openbsd_arm64.go | 4 + .../golang.org/x/sys/unix/syscall_solaris.go | 32 +- .../x/sys/unix/syscall_solaris_amd64.go | 4 + .../x/sys/unix/zerrors_darwin_386.go | 3 +- .../x/sys/unix/zerrors_darwin_amd64.go | 3 +- .../x/sys/unix/zerrors_darwin_arm.go | 3 +- .../x/sys/unix/zerrors_darwin_arm64.go | 3 +- .../x/sys/unix/zerrors_dragonfly_amd64.go | 1 + .../x/sys/unix/zerrors_freebsd_386.go | 3 +- .../x/sys/unix/zerrors_freebsd_amd64.go | 3 +- .../x/sys/unix/zerrors_freebsd_arm.go | 3 +- .../x/sys/unix/zerrors_freebsd_arm64.go | 3 +- .../x/sys/unix/zerrors_linux_386.go | 117 ++- .../x/sys/unix/zerrors_linux_amd64.go | 117 ++- .../x/sys/unix/zerrors_linux_arm.go | 117 ++- .../x/sys/unix/zerrors_linux_arm64.go | 119 ++- .../x/sys/unix/zerrors_linux_mips.go | 117 ++- .../x/sys/unix/zerrors_linux_mips64.go | 117 ++- .../x/sys/unix/zerrors_linux_mips64le.go | 117 ++- .../x/sys/unix/zerrors_linux_mipsle.go | 117 ++- .../x/sys/unix/zerrors_linux_ppc64.go | 117 ++- .../x/sys/unix/zerrors_linux_ppc64le.go | 117 ++- .../x/sys/unix/zerrors_linux_riscv64.go | 117 ++- .../x/sys/unix/zerrors_linux_s390x.go | 117 ++- .../x/sys/unix/zerrors_linux_sparc64.go | 117 ++- .../x/sys/unix/zerrors_netbsd_386.go | 3 +- .../x/sys/unix/zerrors_netbsd_amd64.go | 3 +- .../x/sys/unix/zerrors_netbsd_arm.go | 3 +- .../x/sys/unix/zerrors_netbsd_arm64.go | 3 +- .../x/sys/unix/zerrors_openbsd_386.go | 17 +- .../x/sys/unix/zerrors_openbsd_amd64.go | 6 +- .../x/sys/unix/zerrors_openbsd_arm.go | 11 +- .../x/sys/unix/zerrors_openbsd_arm64.go | 1 + .../x/sys/unix/zerrors_solaris_amd64.go | 3 +- .../x/sys/unix/zsyscall_darwin_386.1_11.go | 93 +-- .../x/sys/unix/zsyscall_darwin_386.1_13.go | 41 + .../x/sys/unix/zsyscall_darwin_386.1_13.s | 12 + .../x/sys/unix/zsyscall_darwin_386.go | 114 ++- .../x/sys/unix/zsyscall_darwin_386.s | 12 +- .../x/sys/unix/zsyscall_darwin_amd64.1_11.go | 93 +-- .../x/sys/unix/zsyscall_darwin_amd64.1_13.go | 41 + .../x/sys/unix/zsyscall_darwin_amd64.1_13.s | 12 + .../x/sys/unix/zsyscall_darwin_amd64.go | 99 +-- .../x/sys/unix/zsyscall_darwin_amd64.s | 10 +- .../x/sys/unix/zsyscall_darwin_arm.1_11.go | 33 +- .../x/sys/unix/zsyscall_darwin_arm.1_13.go | 41 + .../x/sys/unix/zsyscall_darwin_arm.1_13.s | 12 + .../x/sys/unix/zsyscall_darwin_arm.go | 56 +- .../x/sys/unix/zsyscall_darwin_arm.s | 6 +- .../x/sys/unix/zsyscall_darwin_arm64.1_11.go | 33 +- .../x/sys/unix/zsyscall_darwin_arm64.1_13.go | 41 + .../x/sys/unix/zsyscall_darwin_arm64.1_13.s | 12 + .../x/sys/unix/zsyscall_darwin_arm64.go | 56 +- .../x/sys/unix/zsyscall_darwin_arm64.s | 6 +- .../x/sys/unix/zsyscall_dragonfly_amd64.go | 5 +- .../x/sys/unix/zsyscall_freebsd_386.go | 5 +- .../x/sys/unix/zsyscall_freebsd_amd64.go | 45 +- .../x/sys/unix/zsyscall_freebsd_arm.go | 45 +- .../x/sys/unix/zsyscall_freebsd_arm64.go | 45 +- .../x/sys/unix/zsyscall_linux_386.go | 30 + .../x/sys/unix/zsyscall_linux_amd64.go | 30 + .../x/sys/unix/zsyscall_linux_arm.go | 30 + .../x/sys/unix/zsyscall_linux_arm64.go | 30 + .../x/sys/unix/zsyscall_linux_mips.go | 30 + .../x/sys/unix/zsyscall_linux_mips64.go | 30 + .../x/sys/unix/zsyscall_linux_mips64le.go | 30 + .../x/sys/unix/zsyscall_linux_mipsle.go | 30 + .../x/sys/unix/zsyscall_linux_ppc64.go | 30 + .../x/sys/unix/zsyscall_linux_ppc64le.go | 30 + .../x/sys/unix/zsyscall_linux_riscv64.go | 30 + .../x/sys/unix/zsyscall_linux_s390x.go | 30 + .../x/sys/unix/zsyscall_linux_sparc64.go | 30 + .../x/sys/unix/zsyscall_netbsd_386.go | 37 +- .../x/sys/unix/zsyscall_netbsd_amd64.go | 37 +- .../x/sys/unix/zsyscall_netbsd_arm.go | 37 +- .../x/sys/unix/zsyscall_netbsd_arm64.go | 37 +- .../x/sys/unix/zsyscall_openbsd_386.go | 37 +- .../x/sys/unix/zsyscall_openbsd_amd64.go | 37 +- .../x/sys/unix/zsyscall_openbsd_arm.go | 37 +- .../x/sys/unix/zsyscall_openbsd_arm64.go | 37 +- .../x/sys/unix/zsyscall_solaris_amd64.go | 5 +- .../x/sys/unix/zsysnum_linux_386.go | 2 + .../x/sys/unix/zsysnum_linux_amd64.go | 2 + .../x/sys/unix/zsysnum_linux_arm.go | 2 + .../x/sys/unix/zsysnum_linux_arm64.go | 1 + .../x/sys/unix/zsysnum_linux_mips.go | 1 + .../x/sys/unix/zsysnum_linux_mips64.go | 1 + .../x/sys/unix/zsysnum_linux_mips64le.go | 1 + .../x/sys/unix/zsysnum_linux_mipsle.go | 1 + .../x/sys/unix/zsysnum_linux_ppc64.go | 2 + .../x/sys/unix/zsysnum_linux_ppc64le.go | 2 + .../x/sys/unix/zsysnum_linux_riscv64.go | 2 + .../x/sys/unix/zsysnum_linux_s390x.go | 2 + .../x/sys/unix/zsysnum_linux_sparc64.go | 1 + .../golang.org/x/sys/unix/ztypes_linux_386.go | 85 ++ .../x/sys/unix/ztypes_linux_amd64.go | 85 ++ .../golang.org/x/sys/unix/ztypes_linux_arm.go | 85 ++ .../x/sys/unix/ztypes_linux_arm64.go | 85 ++ .../x/sys/unix/ztypes_linux_mips.go | 85 ++ .../x/sys/unix/ztypes_linux_mips64.go | 85 ++ .../x/sys/unix/ztypes_linux_mips64le.go | 85 ++ .../x/sys/unix/ztypes_linux_mipsle.go | 85 ++ .../x/sys/unix/ztypes_linux_ppc64.go | 85 ++ .../x/sys/unix/ztypes_linux_ppc64le.go | 85 ++ .../x/sys/unix/ztypes_linux_riscv64.go | 86 ++ .../x/sys/unix/ztypes_linux_s390x.go | 85 ++ .../x/sys/unix/ztypes_linux_sparc64.go | 85 ++ vendor/modules.txt | 52 +- 1611 files changed, 45541 insertions(+), 11053 deletions(-) delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwarchive.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwconfidfield.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwcustomsettings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwfieldtype.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_appfwpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwhtmlerrorpage.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsoncontenttype.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsonerrorpage.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningdata.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningsettings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_appfwpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_contenttype_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_cookieconsistency_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_creditcardnumber_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_crosssitescripting_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_csrftag_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_denyurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_excluderescontenttype_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldconsistency_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldformat_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fileuploadtype_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsondosurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonsqlurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonxssurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_logexpression_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_safeobject_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_sqlinjection_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_starturl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_trustedlearningclients_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlattachmenturl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmldosurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlsqlinjection_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlvalidationurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlwsiurl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlxss_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsettings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsignatures.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwtransactionrecords.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwwsdl.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlcontenttype.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlerrorpage.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlschema.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditmessageaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditmessages.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogparams.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaagroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaauser_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_appfwglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_auditnslogglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_authenticationvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_systemglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_tmglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogparams.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaagroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaauser_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_authenticationvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_rnatglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_systemglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_tmglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/configstatus.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/dbsmonitors.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/extendedmemoryparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/location.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/locationdata.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/locationfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/locationfile6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/locationparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/nstrace.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/radiusnode.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/reporting.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/server_servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/service.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/service_dospolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/service_lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/service_scpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupentitymonbindings_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmemberlist_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/servicegroupbindings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/svcbindings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/basic/vserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/cluster.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusterfiles.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_clusternode_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_routemonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_authenticationvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_clusternode_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_crvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbsite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_nslimitidentifier_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_streamidentifier_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_vpnvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clusterpropstatus.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cluster/clustersync.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmpaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_cmppolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmpparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmpglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmppolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_crvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_cmppolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_crvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_cspolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_cspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_analyticsprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appflowpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appfwpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appqoepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_authorizationpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_botpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cachepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cmppolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_contentinspectionpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_copolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_domain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_feopolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_filterpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_gslbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_responderpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_rewritepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_spilloverpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_tmtrafficpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_transformpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_vpnvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsaaaarec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction64.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsaddrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnscnamerec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_dnspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnskey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsmxrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsnameserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsnaptrrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsecrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnsglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnspolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_dnspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsproxyrecords.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsptrrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnssoarec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnssrvrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnssubnetcache.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnssuffix.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnstxtrec.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsview.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_dnspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnszone.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_dnskey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_domain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filteraction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_filterpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionvariable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_crvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_filterglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterpostbodyinjection.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/filter/filterprebodyinjection.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbconfig.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentries.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentry.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbrunningconfig.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_dnsview_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsyncstatus.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_domain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_spilloverpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_metric_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_gslbservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_metric_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbpersistentsessions.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbroute.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbroute6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbsipparameters.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_analyticsprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appflowpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appfwpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appqoepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_authorizationpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_botpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cachepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_capolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cmppolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_contentinspectionpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_copolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dnspolicy64_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dospolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_feopolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_filterpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_pqpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_responderpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_rewritepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_scpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroupmember_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_spilloverpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_tmtrafficpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_transformpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/Interface.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/appalgparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/arp.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/arpparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_vlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/bridgetable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/channel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/channel_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ci.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/fis.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/fis_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/fis_channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/fis_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/forwardingsession.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/inat.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/inatparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/interfacepair.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnelparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ipset.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ipset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/iptunnel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/iptunnelparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ipv6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/l2param.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/l3param.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/l4param.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/lacp.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/linkset.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/linkset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/linkset_channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/linkset_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapbmr.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_bmrv4network_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapdmr.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapdomain.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_mapbmr_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nat64.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nat64param.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nd6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_onlinkipv6prefix_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge_iptunnel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netbridge_vlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netprofile_natrule_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/netprofile_srcportset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/onlinkipv6prefix.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/ptp.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat6_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnat_retainsourceportset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnatparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rnatsession.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/route.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/route6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/rsskeytype.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_linkset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vpath.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vpathparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid6_trackinterface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_channel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_interface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vrid_trackinterface_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vridparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan_iptunnel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip6_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlan_srcip_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_vxlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsacl.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsacl6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsacls.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsacls6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowcollector.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsaptlicense.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsassignment.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nscapacity.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nscentralmanagementserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsconfig.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsconnectiontable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsconsoleloginprompt.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nscqaparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpip.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpparams.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsdiameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionkey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionparams.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsevents.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsextension.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_extensionfunction_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsfeature.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nshardware.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nshmackey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nshostname.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nshttpparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nshttpprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsicapprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsip.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsip6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslicense.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseproxyserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserverpool.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_nslimitsessions_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslimitselector.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nslimitsessions.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsmigration.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsmode.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartition.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_bridgegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vxlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspartitionmac.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspbr.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspbr6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nspbrs.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsratecontrol.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsrollbackcmd.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsrpcnode.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsrunningconfig.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nssavedconfig.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsservicefunction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_nsservicefunction_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nssourceroutecachetable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsspparams.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsstats.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nssurgeq.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstcpbufparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstcpparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstcpprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstimeout.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstimer.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_autoscalepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstimezone.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_bridgegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vxlan_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsvariable.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsversion.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsvpxparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsweblogparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/nsxmlnamespace.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/reboot.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ns/shutdown.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policydataset.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_value_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policyevaluation.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policyexpression.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policyhttpcallout.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policymap.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policyparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policypatset.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_pattern_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_pattern_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/policy/policyurlset.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_responderpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderhtmlpage.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_crvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_responderpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_rewritepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewriteglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/router/routerdynamicrouting.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcert.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertbundle.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertificatechain.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_crldistribution_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslocspresponder_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertlink.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertreq.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_individualcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_service_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_servicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslciphersuite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslciphersuite.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_serialnumber_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrlfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/ssldsakey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/ssldtlsprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslecdsakey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslfips.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipskey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimsource.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimtarget.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_sslpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslhsmkey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslkeyfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/ssllogprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslocspresponder.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs12.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs8.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_sslpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_ecccurve_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslciphersuite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslrsakey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_ecccurve_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslciphersuite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_ecccurve_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslciphersuite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_ecccurve_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcertkey_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcipher_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslciphersuite_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/ssl/sslwrapkey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemautorestorefeature.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systembackup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemcmdpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemcollectionparam.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemcore.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemcountergroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemcounters.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemdatasource.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systementity.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systementitydata.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systementitytype.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemeventhistory.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemextramgmtcpu.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemfile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditnslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditsyslogpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationldappolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationlocalpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationradiuspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationtacacspolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemglobaldata.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemgroup.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_nspartition_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemcmdpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemuser_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemhwerror.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemkek.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemparameter.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemrestorepoint.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemsession.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemsshkey.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemuser.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemuser_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemuser_nspartition_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemcmdpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemgroup_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformaction.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_transformpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_csvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_lbvserver_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformglobal_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_policybinding_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_transformpolicy_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_transformaction_binding.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/callhome.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/install.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/ping.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/ping6.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/raid.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/techsupport.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/traceroute.go delete mode 100644 vendor/github.com/chiradeep/go-nitro/config/utility/traceroute6.go rename vendor/github.com/{chiradeep/go-nitro => citrix/adc-nitro-go}/LICENSE (89%) create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwarchive.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwconfidfield.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwcustomsettings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_nslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwhtmlerrorpage.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsoncontenttype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsonerrorpage.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningdata.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwmultipartformcontenttype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cmdinjection_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_contenttype_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cookieconsistency_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_creditcardnumber_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_crosssitescripting_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_csrftag_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_denyurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldconsistency_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fileuploadtype_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonxssurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_logexpression_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_sqlinjection_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_starturl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlxss_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsignatures.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwurlencodedformcontenttype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwwsdl.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlcontenttype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlerrorpage.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlschema.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessageaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_group_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_user_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_group_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_user_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/dbsmonitors.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationdata.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/radiusnode.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/reporting.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_monitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_monitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroupbindings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/svcbindings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/cluster.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterfiles.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_node_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_identifier_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_limitidentifier_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_node_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_site_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clustersync.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_nslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_profile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_trafficpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction64.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnameserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsecrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsproxyrecords.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssuffix.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_domain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_key_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionvariable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpostbodyinjection.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterprebodyinjection.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbconfig.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_monitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentry.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbrunningconfig.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_monitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_view_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_monitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsyncstatus.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_metric_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_detectionpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_nslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pacingpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy64_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_profile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_trafficpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ci.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/l4param.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_bmrv4network_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdmr.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_mapbmr_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_iptunnel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_natrule_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_srcportset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ptp.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_retainsourceportset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatsession.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rsskeytype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsaptlicense.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsassignment.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscentralmanagementserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconsoleloginprompt.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpip.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpparams.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionkey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionparams.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsfeature.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshardware.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshmackey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicense.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserverpool.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_limitsessions_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitselector.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitsessions.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmigration.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmode.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartitionmac.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbrs.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrollbackcmd.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrpcnode.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrunningconfig.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssavedconfig.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_servicefunction_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssourceroutecachetable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsstats.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstestlicense.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimezone.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsversion.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsxmlnamespace.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/reboot.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/shutdown.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyevaluation.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyexpression.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policymap.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatsetfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_pattern_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderhtmlpage.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertbundle.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertificatechain.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_crldistribution_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_ocspresponder_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_profile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertlink.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertreq.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_ciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_profile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslciphersuite.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_serialnumber_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrlfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslecdsakey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfips.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimsource.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimtarget.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslhsmkey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslkeyfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssllogprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs12.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs8.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_service_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_cipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_cipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ecccurve_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_cipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ecccurve_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_certkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_cipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ecccurve_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslwrapkey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemautorestorefeature.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systembackup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcmdpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcollectionparam.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcore.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcountergroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcounters.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemdatasource.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitytype.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemfile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_ldappolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_localpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_nslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_radiuspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_syslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_tacacspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_cmdpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_partition_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_user_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemhwerror.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemrestorepoint.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsshkey.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_cmdpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_group_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_partition_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_global_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_policylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_vserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_action_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/install.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/raid.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/techsupport.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go rename vendor/github.com/{chiradeep/go-nitro/netscaler => citrix/adc-nitro-go/service}/client.go (73%) rename vendor/github.com/{chiradeep/go-nitro/netscaler => citrix/adc-nitro-go/service}/config.go (71%) rename vendor/github.com/{chiradeep/go-nitro/netscaler => citrix/adc-nitro-go/service}/netscaler_resource.go (78%) rename vendor/github.com/{chiradeep/go-nitro/netscaler => citrix/adc-nitro-go/service}/resources.go (99%) rename vendor/github.com/{chiradeep/go-nitro/netscaler => citrix/adc-nitro-go/service}/stats.go (57%) create mode 100644 vendor/github.com/hashicorp/go-hclog/colorize_unix.go create mode 100644 vendor/github.com/hashicorp/go-hclog/colorize_windows.go create mode 100644 vendor/github.com/hashicorp/go-hclog/exclude.go create mode 100644 vendor/github.com/hashicorp/go-hclog/interceptlogger.go create mode 100644 vendor/github.com/mattn/go-isatty/isatty_android.go create mode 100644 vendor/github.com/mattn/go-isatty/isatty_plan9.go rename vendor/github.com/mattn/go-isatty/{isatty_linux.go => isatty_tcgets.go} (91%) create mode 100644 vendor/golang.org/x/sys/cpu/cpu_linux_arm.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_386.1_11.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_amd64.1_11.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_arm.1_11.go create mode 100644 vendor/golang.org/x/sys/unix/syscall_darwin_arm64.1_11.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go create mode 100644 vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s diff --git a/go.mod b/go.mod index 4b56b5009..aba8e48dc 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/citrix/terraform-provider-citrixadc go 1.13 require ( - github.com/chiradeep/go-nitro v0.0.0-20210415084059-355fec1cd7ac + github.com/citrix/adc-nitro-go v0.0.0-20210616092114-c917a2b77ef3 github.com/hashicorp/terraform v0.12.20 github.com/hashicorp/terraform-plugin-sdk v1.6.0 github.com/mitchellh/mapstructure v1.1.2 diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwarchive.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwarchive.go deleted file mode 100644 index 75d2f20fb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwarchive.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwarchive struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` - Target string `json:"target,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwconfidfield.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwconfidfield.go deleted file mode 100644 index 315916d2b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwconfidfield.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwconfidfield struct { - Comment string `json:"comment,omitempty"` - Fieldname string `json:"fieldname,omitempty"` - Isregex string `json:"isregex,omitempty"` - State string `json:"state,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwcustomsettings.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwcustomsettings.go deleted file mode 100644 index b99ffe0e5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwcustomsettings.go +++ /dev/null @@ -1,6 +0,0 @@ -package appfw - -type Appfwcustomsettings struct { - Name string `json:"name,omitempty"` - Target string `json:"target,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwfieldtype.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwfieldtype.go deleted file mode 100644 index cbf56d583..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwfieldtype.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwfieldtype struct { - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Name string `json:"name,omitempty"` - Nocharmaps bool `json:"nocharmaps,omitempty"` - Priority int `json:"priority,omitempty"` - Regex string `json:"regex,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_appfwpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_appfwpolicy_binding.go deleted file mode 100644 index d67d63cf8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_appfwpolicy_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package appfw - -type Appfwglobalappfwpolicybinding struct { - Flowtype int `json:"flowtype,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Policytype string `json:"policytype,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditnslogpolicy_binding.go deleted file mode 100644 index a64fcc87c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditnslogpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package appfw - -type Appfwglobalauditnslogpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Policytype string `json:"policytype,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditsyslogpolicy_binding.go deleted file mode 100644 index 65ab0c01a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package appfw - -type Appfwglobalauditsyslogpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Policytype string `json:"policytype,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_binding.go deleted file mode 100644 index 6f6dca68c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package appfw diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwhtmlerrorpage.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwhtmlerrorpage.go deleted file mode 100644 index 92008dd4c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwhtmlerrorpage.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwhtmlerrorpage struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsoncontenttype.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsoncontenttype.go deleted file mode 100644 index 224dab619..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsoncontenttype.go +++ /dev/null @@ -1,8 +0,0 @@ -package appfw - -type Appfwjsoncontenttype struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isregex string `json:"isregex,omitempty"` - Jsoncontenttypevalue string `json:"jsoncontenttypevalue,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsonerrorpage.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsonerrorpage.go deleted file mode 100644 index ba829a4a1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwjsonerrorpage.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwjsonerrorpage struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningdata.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningdata.go deleted file mode 100644 index 3b66364b3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningdata.go +++ /dev/null @@ -1,42 +0,0 @@ -package appfw - -type Appfwlearningdata struct { - Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` - Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` - Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` - Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` - Asvaluetypesql string `json:"as_value_type_sql,omitempty"` - Asvaluetypexss string `json:"as_value_type_xss,omitempty"` - Contenttype string `json:"contenttype,omitempty"` - Cookieconsistency string `json:"cookieconsistency,omitempty"` - Creditcardnumber string `json:"creditcardnumber,omitempty"` - Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` - Crosssitescripting string `json:"crosssitescripting,omitempty"` - Csrfformoriginurl string `json:"csrfformoriginurl,omitempty"` - Csrftag string `json:"csrftag,omitempty"` - Data string `json:"data,omitempty"` - Fieldconsistency string `json:"fieldconsistency,omitempty"` - Fieldformat string `json:"fieldformat,omitempty"` - Fieldformatcharmappcre string `json:"fieldformatcharmappcre,omitempty"` - Fieldformatmaxlength int `json:"fieldformatmaxlength,omitempty"` - Fieldformatminlength int `json:"fieldformatminlength,omitempty"` - Fieldtype string `json:"fieldtype,omitempty"` - Formactionurlff string `json:"formactionurl_ff,omitempty"` - Formactionurlffc string `json:"formactionurl_ffc,omitempty"` - Formactionurlsql string `json:"formactionurl_sql,omitempty"` - Formactionurlxss string `json:"formactionurl_xss,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Profilename string `json:"profilename,omitempty"` - Securitycheck string `json:"securitycheck,omitempty"` - Sqlinjection string `json:"sqlinjection,omitempty"` - Starturl string `json:"starturl,omitempty"` - Target string `json:"target,omitempty"` - Totalxmlrequests bool `json:"totalxmlrequests,omitempty"` - Url string `json:"url,omitempty"` - Value string `json:"value,omitempty"` - Valuetype string `json:"value_type,omitempty"` - Xmlattachmentcheck string `json:"xmlattachmentcheck,omitempty"` - Xmldoscheck string `json:"xmldoscheck,omitempty"` - Xmlwsicheck string `json:"xmlwsicheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningsettings.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningsettings.go deleted file mode 100644 index a7349199f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwlearningsettings.go +++ /dev/null @@ -1,31 +0,0 @@ -package appfw - -type Appfwlearningsettings struct { - Contenttypeminthreshold int `json:"contenttypeminthreshold,omitempty"` - Contenttypepercentthreshold int `json:"contenttypepercentthreshold,omitempty"` - Cookieconsistencyminthreshold int `json:"cookieconsistencyminthreshold,omitempty"` - Cookieconsistencypercentthreshold int `json:"cookieconsistencypercentthreshold,omitempty"` - Creditcardnumberminthreshold int `json:"creditcardnumberminthreshold,omitempty"` - Creditcardnumberpercentthreshold int `json:"creditcardnumberpercentthreshold,omitempty"` - Crosssitescriptingautodeploygraceperiod int `json:"crosssitescriptingautodeploygraceperiod,omitempty"` - Crosssitescriptingminthreshold int `json:"crosssitescriptingminthreshold,omitempty"` - Crosssitescriptingpercentthreshold int `json:"crosssitescriptingpercentthreshold,omitempty"` - Csrftagminthreshold int `json:"csrftagminthreshold,omitempty"` - Csrftagpercentthreshold int `json:"csrftagpercentthreshold,omitempty"` - Fieldconsistencyminthreshold int `json:"fieldconsistencyminthreshold,omitempty"` - Fieldconsistencypercentthreshold int `json:"fieldconsistencypercentthreshold,omitempty"` - Fieldformatautodeploygraceperiod int `json:"fieldformatautodeploygraceperiod,omitempty"` - Fieldformatminthreshold int `json:"fieldformatminthreshold,omitempty"` - Fieldformatpercentthreshold int `json:"fieldformatpercentthreshold,omitempty"` - Profilename string `json:"profilename,omitempty"` - Sqlinjectionautodeploygraceperiod int `json:"sqlinjectionautodeploygraceperiod,omitempty"` - Sqlinjectionminthreshold int `json:"sqlinjectionminthreshold,omitempty"` - Sqlinjectionpercentthreshold int `json:"sqlinjectionpercentthreshold,omitempty"` - Starturlautodeploygraceperiod int `json:"starturlautodeploygraceperiod,omitempty"` - Starturlminthreshold int `json:"starturlminthreshold,omitempty"` - Starturlpercentthreshold int `json:"starturlpercentthreshold,omitempty"` - Xmlattachmentminthreshold int `json:"xmlattachmentminthreshold,omitempty"` - Xmlattachmentpercentthreshold int `json:"xmlattachmentpercentthreshold,omitempty"` - Xmlwsiminthreshold int `json:"xmlwsiminthreshold,omitempty"` - Xmlwsipercentthreshold int `json:"xmlwsipercentthreshold,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy.go deleted file mode 100644 index a47e75e51..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy.go +++ /dev/null @@ -1,15 +0,0 @@ -package appfw - -type Appfwpolicy struct { - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Logaction string `json:"logaction,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Policytype string `json:"policytype,omitempty"` - Profilename string `json:"profilename,omitempty"` - Rule string `json:"rule,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwglobal_binding.go deleted file mode 100644 index 8dbd76686..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicyappfwglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwpolicylabel_binding.go deleted file mode 100644 index 42b549ddc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_appfwpolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicyappfwpolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_binding.go deleted file mode 100644 index 0a46feda5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package appfw - -type Appfwpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_csvserver_binding.go deleted file mode 100644 index c4131bec2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_lbvserver_binding.go deleted file mode 100644 index 2fac70fd2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel.go deleted file mode 100644 index 7fb0fd9ca..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel.go +++ /dev/null @@ -1,15 +0,0 @@ -package appfw - -type Appfwpolicylabel struct { - Description string `json:"description,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policylabeltype string `json:"policylabeltype,omitempty"` - Policytype string `json:"policytype,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_appfwpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_appfwpolicy_binding.go deleted file mode 100644 index 871e2eed7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_appfwpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicylabelappfwpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_binding.go deleted file mode 100644 index 34f47e7c3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package appfw - -type Appfwpolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_policybinding_binding.go deleted file mode 100644 index 128bd6388..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwpolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwpolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile.go deleted file mode 100644 index f5f086424..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile.go +++ /dev/null @@ -1,100 +0,0 @@ -package appfw - -type Appfwprofile struct { - Addcookieflags string `json:"addcookieflags,omitempty"` - Archivename string `json:"archivename,omitempty"` - Autodeployrule bool `json:"autodeployrule,omitempty"` - Bufferoverflowaction interface{} `json:"bufferoverflowaction,omitempty"` - Bufferoverflowmaxcookielength int `json:"bufferoverflowmaxcookielength,omitempty"` - Bufferoverflowmaxheaderlength int `json:"bufferoverflowmaxheaderlength,omitempty"` - Bufferoverflowmaxurllength int `json:"bufferoverflowmaxurllength,omitempty"` - Builtin bool `json:"builtin,omitempty"` - Canonicalizehtmlresponse string `json:"canonicalizehtmlresponse,omitempty"` - Checkrequestheaders string `json:"checkrequestheaders,omitempty"` - Comment string `json:"comment,omitempty"` - Contenttypeaction interface{} `json:"contenttypeaction,omitempty"` - Cookieconsistencyaction interface{} `json:"cookieconsistencyaction,omitempty"` - Cookieencryption string `json:"cookieencryption,omitempty"` - Cookieproxying string `json:"cookieproxying,omitempty"` - Cookietransforms string `json:"cookietransforms,omitempty"` - Creditcard interface{} `json:"creditcard,omitempty"` - Creditcardaction interface{} `json:"creditcardaction,omitempty"` - Creditcardmaxallowed int `json:"creditcardmaxallowed,omitempty"` - Creditcardxout string `json:"creditcardxout,omitempty"` - Crosssitescriptingaction interface{} `json:"crosssitescriptingaction,omitempty"` - Crosssitescriptingcheckcompleteurls string `json:"crosssitescriptingcheckcompleteurls,omitempty"` - Crosssitescriptingtransformunsafehtml string `json:"crosssitescriptingtransformunsafehtml,omitempty"` - Csrftag string `json:"csrftag,omitempty"` - Csrftagaction interface{} `json:"csrftagaction,omitempty"` - Customsettings string `json:"customsettings,omitempty"` - Defaultcharset string `json:"defaultcharset,omitempty"` - Defaultfieldformatmaxlength int `json:"defaultfieldformatmaxlength,omitempty"` - Defaultfieldformatminlength int `json:"defaultfieldformatminlength,omitempty"` - Defaultfieldformattype string `json:"defaultfieldformattype,omitempty"` - Defaults string `json:"defaults,omitempty"` - Denyurlaction interface{} `json:"denyurlaction,omitempty"` - Dosecurecreditcardlogging string `json:"dosecurecreditcardlogging,omitempty"` - Dynamiclearning interface{} `json:"dynamiclearning,omitempty"` - Enableformtagging string `json:"enableformtagging,omitempty"` - Errorurl string `json:"errorurl,omitempty"` - Excludefileuploadfromchecks string `json:"excludefileuploadfromchecks,omitempty"` - Exemptclosureurlsfromsecuritychecks string `json:"exemptclosureurlsfromsecuritychecks,omitempty"` - Fieldconsistencyaction interface{} `json:"fieldconsistencyaction,omitempty"` - Fieldformataction interface{} `json:"fieldformataction,omitempty"` - Fileuploadmaxnum int `json:"fileuploadmaxnum,omitempty"` - Fileuploadtypesaction interface{} `json:"fileuploadtypesaction,omitempty"` - Htmlerrorobject string `json:"htmlerrorobject,omitempty"` - Inspectcontenttypes interface{} `json:"inspectcontenttypes,omitempty"` - Invalidpercenthandling string `json:"invalidpercenthandling,omitempty"` - Jsondosaction interface{} `json:"jsondosaction,omitempty"` - Jsonerrorobject string `json:"jsonerrorobject,omitempty"` - Jsonsqlinjectionaction interface{} `json:"jsonsqlinjectionaction,omitempty"` - Jsonsqlinjectiontype string `json:"jsonsqlinjectiontype,omitempty"` - Jsonxssaction interface{} `json:"jsonxssaction,omitempty"` - Logeverypolicyhit string `json:"logeverypolicyhit,omitempty"` - Multipleheaderaction interface{} `json:"multipleheaderaction,omitempty"` - Name string `json:"name,omitempty"` - Optimizepartialreqs string `json:"optimizepartialreqs,omitempty"` - Percentdecoderecursively string `json:"percentdecoderecursively,omitempty"` - Postbodylimit int `json:"postbodylimit,omitempty"` - Postbodylimitsignature int `json:"postbodylimitsignature,omitempty"` - Refererheadercheck string `json:"refererheadercheck,omitempty"` - Requestcontenttype string `json:"requestcontenttype,omitempty"` - Responsecontenttype string `json:"responsecontenttype,omitempty"` - Rfcprofile string `json:"rfcprofile,omitempty"` - Semicolonfieldseparator string `json:"semicolonfieldseparator,omitempty"` - Sessionlessfieldconsistency string `json:"sessionlessfieldconsistency,omitempty"` - Sessionlessurlclosure string `json:"sessionlessurlclosure,omitempty"` - Signatures string `json:"signatures,omitempty"` - Sqlinjectionaction interface{} `json:"sqlinjectionaction,omitempty"` - Sqlinjectionchecksqlwildchars string `json:"sqlinjectionchecksqlwildchars,omitempty"` - Sqlinjectiononlycheckfieldswithsqlchars string `json:"sqlinjectiononlycheckfieldswithsqlchars,omitempty"` - Sqlinjectionparsecomments string `json:"sqlinjectionparsecomments,omitempty"` - Sqlinjectiontransformspecialchars string `json:"sqlinjectiontransformspecialchars,omitempty"` - Sqlinjectiontype string `json:"sqlinjectiontype,omitempty"` - Starturlaction interface{} `json:"starturlaction,omitempty"` - Starturlclosure string `json:"starturlclosure,omitempty"` - State string `json:"state,omitempty"` - Streaming string `json:"streaming,omitempty"` - Stripcomments string `json:"stripcomments,omitempty"` - Striphtmlcomments string `json:"striphtmlcomments,omitempty"` - Stripxmlcomments string `json:"stripxmlcomments,omitempty"` - Trace string `json:"trace,omitempty"` - Type interface{} `json:"type,omitempty"` - Urldecoderequestcookies string `json:"urldecoderequestcookies,omitempty"` - Usehtmlerrorobject string `json:"usehtmlerrorobject,omitempty"` - Verboseloglevel string `json:"verboseloglevel,omitempty"` - Xmlattachmentaction interface{} `json:"xmlattachmentaction,omitempty"` - Xmldosaction interface{} `json:"xmldosaction,omitempty"` - Xmlerrorobject string `json:"xmlerrorobject,omitempty"` - Xmlformataction interface{} `json:"xmlformataction,omitempty"` - Xmlsoapfaultaction interface{} `json:"xmlsoapfaultaction,omitempty"` - Xmlsqlinjectionaction interface{} `json:"xmlsqlinjectionaction,omitempty"` - Xmlsqlinjectionchecksqlwildchars string `json:"xmlsqlinjectionchecksqlwildchars,omitempty"` - Xmlsqlinjectiononlycheckfieldswithsqlchars string `json:"xmlsqlinjectiononlycheckfieldswithsqlchars,omitempty"` - Xmlsqlinjectionparsecomments string `json:"xmlsqlinjectionparsecomments,omitempty"` - Xmlsqlinjectiontype string `json:"xmlsqlinjectiontype,omitempty"` - Xmlvalidationaction interface{} `json:"xmlvalidationaction,omitempty"` - Xmlwsiaction interface{} `json:"xmlwsiaction,omitempty"` - Xmlxssaction interface{} `json:"xmlxssaction,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_binding.go deleted file mode 100644 index 61e48167c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package appfw - -type Appfwprofilebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_contenttype_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_contenttype_binding.go deleted file mode 100644 index f66501883..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_contenttype_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofilecontenttypebinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Contenttype string `json:"contenttype,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_cookieconsistency_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_cookieconsistency_binding.go deleted file mode 100644 index ac9cb689d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_cookieconsistency_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwprofilecookieconsistencybinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Cookieconsistency string `json:"cookieconsistency,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregex string `json:"isregex,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_creditcardnumber_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_creditcardnumber_binding.go deleted file mode 100644 index 92fa2926d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_creditcardnumber_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwprofilecreditcardnumberbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Creditcardnumber string `json:"creditcardnumber,omitempty"` - Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_crosssitescripting_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_crosssitescripting_binding.go deleted file mode 100644 index 79c838a5c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_crosssitescripting_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package appfw - -type Appfwprofilecrosssitescriptingbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` - Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` - Asvaluetypexss string `json:"as_value_type_xss,omitempty"` - Comment string `json:"comment,omitempty"` - Crosssitescripting string `json:"crosssitescripting,omitempty"` - Formactionurlxss string `json:"formactionurl_xss,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexxss string `json:"isregex_xss,omitempty"` - Isvalueregexxss string `json:"isvalueregex_xss,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_csrftag_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_csrftag_binding.go deleted file mode 100644 index 4b40c65b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_csrftag_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwprofilecsrftagbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Csrfformactionurl string `json:"csrfformactionurl,omitempty"` - Csrftag string `json:"csrftag,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_denyurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_denyurl_binding.go deleted file mode 100644 index 31aa6894a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_denyurl_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofiledenyurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Denyurl string `json:"denyurl,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_excluderescontenttype_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_excluderescontenttype_binding.go deleted file mode 100644 index 64cc80756..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_excluderescontenttype_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofileexcluderescontenttypebinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Excluderescontenttype string `json:"excluderescontenttype,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldconsistency_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldconsistency_binding.go deleted file mode 100644 index a181b4d97..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldconsistency_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package appfw - -type Appfwprofilefieldconsistencybinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Fieldconsistency string `json:"fieldconsistency,omitempty"` - Formactionurlffc string `json:"formactionurl_ffc,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexffc string `json:"isregex_ffc,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldformat_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldformat_binding.go deleted file mode 100644 index d98971f24..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fieldformat_binding.go +++ /dev/null @@ -1,15 +0,0 @@ -package appfw - -type Appfwprofilefieldformatbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Fieldformat string `json:"fieldformat,omitempty"` - Fieldformatmaxlength int `json:"fieldformatmaxlength,omitempty"` - Fieldformatminlength int `json:"fieldformatminlength,omitempty"` - Fieldtype string `json:"fieldtype,omitempty"` - Formactionurlff string `json:"formactionurl_ff,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexff string `json:"isregex_ff,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fileuploadtype_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fileuploadtype_binding.go deleted file mode 100644 index f358c7318..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_fileuploadtype_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package appfw - -type Appfwprofilefileuploadtypebinding struct { - Alertonly string `json:"alertonly,omitempty"` - Asfileuploadtypesurl string `json:"as_fileuploadtypes_url,omitempty"` - Comment string `json:"comment,omitempty"` - Filetype interface{} `json:"filetype,omitempty"` - Fileuploadtype string `json:"fileuploadtype,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexfileuploadtypesurl string `json:"isregex_fileuploadtypes_url,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsondosurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsondosurl_binding.go deleted file mode 100644 index acbb73457..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsondosurl_binding.go +++ /dev/null @@ -1,22 +0,0 @@ -package appfw - -type Appfwprofilejsondosurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Jsondosurl string `json:"jsondosurl,omitempty"` - Jsonmaxarraylength int `json:"jsonmaxarraylength,omitempty"` - Jsonmaxarraylengthcheck string `json:"jsonmaxarraylengthcheck,omitempty"` - Jsonmaxcontainerdepth int `json:"jsonmaxcontainerdepth,omitempty"` - Jsonmaxcontainerdepthcheck string `json:"jsonmaxcontainerdepthcheck,omitempty"` - Jsonmaxdocumentlength int `json:"jsonmaxdocumentlength,omitempty"` - Jsonmaxdocumentlengthcheck string `json:"jsonmaxdocumentlengthcheck,omitempty"` - Jsonmaxobjectkeycount int `json:"jsonmaxobjectkeycount,omitempty"` - Jsonmaxobjectkeycountcheck string `json:"jsonmaxobjectkeycountcheck,omitempty"` - Jsonmaxobjectkeylength int `json:"jsonmaxobjectkeylength,omitempty"` - Jsonmaxobjectkeylengthcheck string `json:"jsonmaxobjectkeylengthcheck,omitempty"` - Jsonmaxstringlength int `json:"jsonmaxstringlength,omitempty"` - Jsonmaxstringlengthcheck string `json:"jsonmaxstringlengthcheck,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonsqlurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonsqlurl_binding.go deleted file mode 100644 index befc18a1a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonsqlurl_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofilejsonsqlurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Jsonsqlurl string `json:"jsonsqlurl,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonxssurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonxssurl_binding.go deleted file mode 100644 index 8e152cb06..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_jsonxssurl_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofilejsonxssurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Jsonxssurl string `json:"jsonxssurl,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_logexpression_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_logexpression_binding.go deleted file mode 100644 index 9a06482d7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_logexpression_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwprofilelogexpressionbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Aslogexpression string `json:"as_logexpression,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Logexpression string `json:"logexpression,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_safeobject_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_safeobject_binding.go deleted file mode 100644 index 12f2409ab..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_safeobject_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package appfw - -type Appfwprofilesafeobjectbinding struct { - Action interface{} `json:"action,omitempty"` - Alertonly string `json:"alertonly,omitempty"` - Asexpression string `json:"as_expression,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Maxmatchlength int `json:"maxmatchlength,omitempty"` - Name string `json:"name,omitempty"` - Safeobject string `json:"safeobject,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_sqlinjection_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_sqlinjection_binding.go deleted file mode 100644 index cf3fc8b40..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_sqlinjection_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package appfw - -type Appfwprofilesqlinjectionbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` - Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` - Asvaluetypesql string `json:"as_value_type_sql,omitempty"` - Comment string `json:"comment,omitempty"` - Formactionurlsql string `json:"formactionurl_sql,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexsql string `json:"isregex_sql,omitempty"` - Isvalueregexsql string `json:"isvalueregex_sql,omitempty"` - Name string `json:"name,omitempty"` - Sqlinjection string `json:"sqlinjection,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_starturl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_starturl_binding.go deleted file mode 100644 index b1af35f44..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_starturl_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofilestarturlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - Starturl string `json:"starturl,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_trustedlearningclients_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_trustedlearningclients_binding.go deleted file mode 100644 index a78d96657..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_trustedlearningclients_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package appfw - -type Appfwprofiletrustedlearningclientsbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Trustedlearningclients string `json:"trustedlearningclients,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlattachmenturl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlattachmenturl_binding.go deleted file mode 100644 index d7a9ec978..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlattachmenturl_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package appfw - -type Appfwprofilexmlattachmenturlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmlattachmentcontenttype string `json:"xmlattachmentcontenttype,omitempty"` - Xmlattachmentcontenttypecheck string `json:"xmlattachmentcontenttypecheck,omitempty"` - Xmlattachmenturl string `json:"xmlattachmenturl,omitempty"` - Xmlmaxattachmentsize int `json:"xmlmaxattachmentsize,omitempty"` - Xmlmaxattachmentsizecheck string `json:"xmlmaxattachmentsizecheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmldosurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmldosurl_binding.go deleted file mode 100644 index 0148fabb8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmldosurl_binding.go +++ /dev/null @@ -1,46 +0,0 @@ -package appfw - -type Appfwprofilexmldosurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmlblockdtd string `json:"xmlblockdtd,omitempty"` - Xmlblockexternalentities string `json:"xmlblockexternalentities,omitempty"` - Xmlblockpi string `json:"xmlblockpi,omitempty"` - Xmldosurl string `json:"xmldosurl,omitempty"` - Xmlmaxattributenamelength int `json:"xmlmaxattributenamelength,omitempty"` - Xmlmaxattributenamelengthcheck string `json:"xmlmaxattributenamelengthcheck,omitempty"` - Xmlmaxattributes int `json:"xmlmaxattributes,omitempty"` - Xmlmaxattributescheck string `json:"xmlmaxattributescheck,omitempty"` - Xmlmaxattributevaluelength int `json:"xmlmaxattributevaluelength,omitempty"` - Xmlmaxattributevaluelengthcheck string `json:"xmlmaxattributevaluelengthcheck,omitempty"` - Xmlmaxchardatalength int `json:"xmlmaxchardatalength,omitempty"` - Xmlmaxchardatalengthcheck string `json:"xmlmaxchardatalengthcheck,omitempty"` - Xmlmaxelementchildren int `json:"xmlmaxelementchildren,omitempty"` - Xmlmaxelementchildrencheck string `json:"xmlmaxelementchildrencheck,omitempty"` - Xmlmaxelementdepth int `json:"xmlmaxelementdepth,omitempty"` - Xmlmaxelementdepthcheck string `json:"xmlmaxelementdepthcheck,omitempty"` - Xmlmaxelementnamelength int `json:"xmlmaxelementnamelength,omitempty"` - Xmlmaxelementnamelengthcheck string `json:"xmlmaxelementnamelengthcheck,omitempty"` - Xmlmaxelements int `json:"xmlmaxelements,omitempty"` - Xmlmaxelementscheck string `json:"xmlmaxelementscheck,omitempty"` - Xmlmaxentityexpansiondepth int `json:"xmlmaxentityexpansiondepth,omitempty"` - Xmlmaxentityexpansiondepthcheck string `json:"xmlmaxentityexpansiondepthcheck,omitempty"` - Xmlmaxentityexpansions int `json:"xmlmaxentityexpansions,omitempty"` - Xmlmaxentityexpansionscheck string `json:"xmlmaxentityexpansionscheck,omitempty"` - Xmlmaxfilesize int `json:"xmlmaxfilesize,omitempty"` - Xmlmaxfilesizecheck string `json:"xmlmaxfilesizecheck,omitempty"` - Xmlmaxnamespaces int `json:"xmlmaxnamespaces,omitempty"` - Xmlmaxnamespacescheck string `json:"xmlmaxnamespacescheck,omitempty"` - Xmlmaxnamespaceurilength int `json:"xmlmaxnamespaceurilength,omitempty"` - Xmlmaxnamespaceurilengthcheck string `json:"xmlmaxnamespaceurilengthcheck,omitempty"` - Xmlmaxnodes int `json:"xmlmaxnodes,omitempty"` - Xmlmaxnodescheck string `json:"xmlmaxnodescheck,omitempty"` - Xmlmaxsoaparrayrank int `json:"xmlmaxsoaparrayrank,omitempty"` - Xmlmaxsoaparraysize int `json:"xmlmaxsoaparraysize,omitempty"` - Xmlminfilesize int `json:"xmlminfilesize,omitempty"` - Xmlminfilesizecheck string `json:"xmlminfilesizecheck,omitempty"` - Xmlsoaparraycheck string `json:"xmlsoaparraycheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlsqlinjection_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlsqlinjection_binding.go deleted file mode 100644 index f68bb20c2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlsqlinjection_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package appfw - -type Appfwprofilexmlsqlinjectionbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Asscanlocationxmlsql string `json:"as_scan_location_xmlsql,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexxmlsql string `json:"isregex_xmlsql,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmlsqlinjection string `json:"xmlsqlinjection,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlvalidationurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlvalidationurl_binding.go deleted file mode 100644 index ccb7d9dc2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlvalidationurl_binding.go +++ /dev/null @@ -1,17 +0,0 @@ -package appfw - -type Appfwprofilexmlvalidationurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmladditionalsoapheaders string `json:"xmladditionalsoapheaders,omitempty"` - Xmlendpointcheck string `json:"xmlendpointcheck,omitempty"` - Xmlrequestschema string `json:"xmlrequestschema,omitempty"` - Xmlresponseschema string `json:"xmlresponseschema,omitempty"` - Xmlvalidateresponse string `json:"xmlvalidateresponse,omitempty"` - Xmlvalidatesoapenvelope string `json:"xmlvalidatesoapenvelope,omitempty"` - Xmlvalidationurl string `json:"xmlvalidationurl,omitempty"` - Xmlwsdl string `json:"xmlwsdl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlwsiurl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlwsiurl_binding.go deleted file mode 100644 index 293b38845..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlwsiurl_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package appfw - -type Appfwprofilexmlwsiurlbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmlwsichecks string `json:"xmlwsichecks,omitempty"` - Xmlwsiurl string `json:"xmlwsiurl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlxss_binding.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlxss_binding.go deleted file mode 100644 index 801b54a1c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwprofile_xmlxss_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package appfw - -type Appfwprofilexmlxssbinding struct { - Alertonly string `json:"alertonly,omitempty"` - Asscanlocationxmlxss string `json:"as_scan_location_xmlxss,omitempty"` - Comment string `json:"comment,omitempty"` - Isautodeployed string `json:"isautodeployed,omitempty"` - Isregexxmlxss string `json:"isregex_xmlxss,omitempty"` - Name string `json:"name,omitempty"` - State string `json:"state,omitempty"` - Xmlxss string `json:"xmlxss,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsettings.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsettings.go deleted file mode 100644 index cdbcd0846..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsettings.go +++ /dev/null @@ -1,24 +0,0 @@ -package appfw - -type Appfwsettings struct { - Builtin interface{} `json:"builtin,omitempty"` - Ceflogging string `json:"ceflogging,omitempty"` - Clientiploggingheader string `json:"clientiploggingheader,omitempty"` - Cookiepostencryptprefix string `json:"cookiepostencryptprefix,omitempty"` - Defaultprofile string `json:"defaultprofile,omitempty"` - Entitydecoding string `json:"entitydecoding,omitempty"` - Feature string `json:"feature,omitempty"` - Geolocationlogging string `json:"geolocationlogging,omitempty"` - Importsizelimit int `json:"importsizelimit,omitempty"` - Learnratelimit int `json:"learnratelimit,omitempty"` - Logmalformedreq string `json:"logmalformedreq,omitempty"` - Malformedreqaction interface{} `json:"malformedreqaction,omitempty"` - Sessioncookiename string `json:"sessioncookiename,omitempty"` - Sessionlifetime int `json:"sessionlifetime,omitempty"` - Sessionlimit int `json:"sessionlimit,omitempty"` - Sessiontimeout int `json:"sessiontimeout,omitempty"` - Signatureautoupdate string `json:"signatureautoupdate,omitempty"` - Signatureurl string `json:"signatureurl,omitempty"` - Undefaction string `json:"undefaction,omitempty"` - Useconfigurablesecretkey string `json:"useconfigurablesecretkey,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsignatures.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsignatures.go deleted file mode 100644 index 8928cf7e3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwsignatures.go +++ /dev/null @@ -1,14 +0,0 @@ -package appfw - -type Appfwsignatures struct { - Comment string `json:"comment,omitempty"` - Merge bool `json:"merge,omitempty"` - Mergedefault bool `json:"mergedefault,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Preservedefactions bool `json:"preservedefactions,omitempty"` - Response string `json:"response,omitempty"` - Sha1 string `json:"sha1,omitempty"` - Src string `json:"src,omitempty"` - Xslt string `json:"xslt,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwtransactionrecords.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwtransactionrecords.go deleted file mode 100644 index d2a456fb9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwtransactionrecords.go +++ /dev/null @@ -1,20 +0,0 @@ -package appfw - -type Appfwtransactionrecords struct { - Appfwsessionid string `json:"appfwsessionid,omitempty"` - Clientip string `json:"clientip,omitempty"` - Destip string `json:"destip,omitempty"` - Endtime string `json:"endtime,omitempty"` - Httptransactionid int `json:"httptransactionid,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Packetengineid int `json:"packetengineid,omitempty"` - Profilename string `json:"profilename,omitempty"` - Requestcontentlength int `json:"requestcontentlength,omitempty"` - Requestmaxprocessingtime int `json:"requestmaxprocessingtime,omitempty"` - Requestyields int `json:"requestyields,omitempty"` - Responsecontentlength int `json:"responsecontentlength,omitempty"` - Responsemaxprocessingtime int `json:"responsemaxprocessingtime,omitempty"` - Responseyields int `json:"responseyields,omitempty"` - Starttime string `json:"starttime,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwwsdl.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwwsdl.go deleted file mode 100644 index 3f93c3e72..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwwsdl.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwwsdl struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlcontenttype.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlcontenttype.go deleted file mode 100644 index 0648e4c70..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlcontenttype.go +++ /dev/null @@ -1,8 +0,0 @@ -package appfw - -type Appfwxmlcontenttype struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isregex string `json:"isregex,omitempty"` - Xmlcontenttypevalue string `json:"xmlcontenttypevalue,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlerrorpage.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlerrorpage.go deleted file mode 100644 index be63f3bbe..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlerrorpage.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwxmlerrorpage struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlschema.go b/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlschema.go deleted file mode 100644 index 0218eeea2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/appfw/appfwxmlschema.go +++ /dev/null @@ -1,9 +0,0 @@ -package appfw - -type Appfwxmlschema struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessageaction.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessageaction.go deleted file mode 100644 index 6bb8f49af..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessageaction.go +++ /dev/null @@ -1,13 +0,0 @@ -package audit - -type Auditmessageaction struct { - Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` - Hits int `json:"hits,omitempty"` - Loglevel string `json:"loglevel,omitempty"` - Loglevel1 string `json:"loglevel1,omitempty"` - Logtonewnslog string `json:"logtonewnslog,omitempty"` - Name string `json:"name,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Stringbuilderexpr string `json:"stringbuilderexpr,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessages.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessages.go deleted file mode 100644 index 95ba0f877..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditmessages.go +++ /dev/null @@ -1,7 +0,0 @@ -package audit - -type Auditmessages struct { - Loglevel interface{} `json:"loglevel,omitempty"` - Numofmesgs int `json:"numofmesgs,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogaction.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogaction.go deleted file mode 100644 index 163cdd99b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogaction.go +++ /dev/null @@ -1,27 +0,0 @@ -package audit - -type Auditnslogaction struct { - Acl string `json:"acl,omitempty"` - Alg string `json:"alg,omitempty"` - Appflowexport string `json:"appflowexport,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Contentinspectionlog string `json:"contentinspectionlog,omitempty"` - Dateformat string `json:"dateformat,omitempty"` - Domainresolvenow bool `json:"domainresolvenow,omitempty"` - Domainresolveretry int `json:"domainresolveretry,omitempty"` - Feature string `json:"feature,omitempty"` - Ip string `json:"ip,omitempty"` - Logfacility string `json:"logfacility,omitempty"` - Loglevel interface{} `json:"loglevel,omitempty"` - Lsn string `json:"lsn,omitempty"` - Name string `json:"name,omitempty"` - Serverdomainname string `json:"serverdomainname,omitempty"` - Serverip string `json:"serverip,omitempty"` - Serverport int `json:"serverport,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Subscriberlog string `json:"subscriberlog,omitempty"` - Tcp string `json:"tcp,omitempty"` - Timezone string `json:"timezone,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_auditnslogpolicy_binding.go deleted file mode 100644 index 02522d3e5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_auditnslogpolicy_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package audit - -type Auditnslogglobalauditnslogpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_binding.go deleted file mode 100644 index 6fd56fbc4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package audit diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogparams.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogparams.go deleted file mode 100644 index 765ad7c86..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogparams.go +++ /dev/null @@ -1,22 +0,0 @@ -package audit - -type Auditnslogparams struct { - Acl string `json:"acl,omitempty"` - Alg string `json:"alg,omitempty"` - Appflowexport string `json:"appflowexport,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Contentinspectionlog string `json:"contentinspectionlog,omitempty"` - Dateformat string `json:"dateformat,omitempty"` - Feature string `json:"feature,omitempty"` - Logfacility string `json:"logfacility,omitempty"` - Loglevel interface{} `json:"loglevel,omitempty"` - Lsn string `json:"lsn,omitempty"` - Serverip string `json:"serverip,omitempty"` - Serverport int `json:"serverport,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Subscriberlog string `json:"subscriberlog,omitempty"` - Tcp string `json:"tcp,omitempty"` - Timezone string `json:"timezone,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy.go deleted file mode 100644 index 331d58e75..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy.go +++ /dev/null @@ -1,10 +0,0 @@ -package audit - -type Auditnslogpolicy struct { - Action string `json:"action,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Expressiontype string `json:"expressiontype,omitempty"` - Feature string `json:"feature,omitempty"` - Name string `json:"name,omitempty"` - Rule string `json:"rule,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaagroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaagroup_binding.go deleted file mode 100644 index 2fa25f14a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaagroup_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyaaagroupbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaauser_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaauser_binding.go deleted file mode 100644 index 8b750646e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_aaauser_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyaaauserbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_appfwglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_appfwglobal_binding.go deleted file mode 100644 index acbd5959e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_appfwglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyappfwglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_auditnslogglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_auditnslogglobal_binding.go deleted file mode 100644 index 62b6f5006..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_auditnslogglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyauditnslogglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_authenticationvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_authenticationvserver_binding.go deleted file mode 100644 index ebfbbcf05..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_authenticationvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyauthenticationvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_binding.go deleted file mode 100644 index 4ca938b2f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package audit - -type Auditnslogpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_csvserver_binding.go deleted file mode 100644 index 9d575f38f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_csvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_lbvserver_binding.go deleted file mode 100644 index d848d9956..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_lbvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_systemglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_systemglobal_binding.go deleted file mode 100644 index fa6130806..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_systemglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicysystemglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_tmglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_tmglobal_binding.go deleted file mode 100644 index a77e70548..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_tmglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicytmglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnglobal_binding.go deleted file mode 100644 index 448c7e947..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyvpnglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnvserver_binding.go deleted file mode 100644 index 1b3d16637..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditnslogpolicy_vpnvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditnslogpolicyvpnvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogaction.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogaction.go deleted file mode 100644 index a174d45ba..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogaction.go +++ /dev/null @@ -1,33 +0,0 @@ -package audit - -type Auditsyslogaction struct { - Acl string `json:"acl,omitempty"` - Alg string `json:"alg,omitempty"` - Appflowexport string `json:"appflowexport,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Contentinspectionlog string `json:"contentinspectionlog,omitempty"` - Dateformat string `json:"dateformat,omitempty"` - Dns string `json:"dns,omitempty"` - Domainresolvenow bool `json:"domainresolvenow,omitempty"` - Domainresolveretry int `json:"domainresolveretry,omitempty"` - Feature string `json:"feature,omitempty"` - Ip string `json:"ip,omitempty"` - Lbvservername string `json:"lbvservername,omitempty"` - Logfacility string `json:"logfacility,omitempty"` - Loglevel interface{} `json:"loglevel,omitempty"` - Lsn string `json:"lsn,omitempty"` - Maxlogdatasizetohold int `json:"maxlogdatasizetohold,omitempty"` - Name string `json:"name,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Serverdomainname string `json:"serverdomainname,omitempty"` - Serverip string `json:"serverip,omitempty"` - Serverport int `json:"serverport,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Subscriberlog string `json:"subscriberlog,omitempty"` - Tcp string `json:"tcp,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Timezone string `json:"timezone,omitempty"` - Transport string `json:"transport,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go deleted file mode 100644 index 9b3296081..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package audit - -type Auditsyslogglobalauditsyslogpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_binding.go deleted file mode 100644 index 6fd56fbc4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package audit diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogparams.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogparams.go deleted file mode 100644 index def7da726..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogparams.go +++ /dev/null @@ -1,23 +0,0 @@ -package audit - -type Auditsyslogparams struct { - Acl string `json:"acl,omitempty"` - Alg string `json:"alg,omitempty"` - Appflowexport string `json:"appflowexport,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Contentinspectionlog string `json:"contentinspectionlog,omitempty"` - Dateformat string `json:"dateformat,omitempty"` - Dns string `json:"dns,omitempty"` - Feature string `json:"feature,omitempty"` - Logfacility string `json:"logfacility,omitempty"` - Loglevel interface{} `json:"loglevel,omitempty"` - Lsn string `json:"lsn,omitempty"` - Serverip string `json:"serverip,omitempty"` - Serverport int `json:"serverport,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Subscriberlog string `json:"subscriberlog,omitempty"` - Tcp string `json:"tcp,omitempty"` - Timezone string `json:"timezone,omitempty"` - Urlfiltering string `json:"urlfiltering,omitempty"` - Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy.go deleted file mode 100644 index 8c648c112..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy.go +++ /dev/null @@ -1,10 +0,0 @@ -package audit - -type Auditsyslogpolicy struct { - Action string `json:"action,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Expressiontype string `json:"expressiontype,omitempty"` - Feature string `json:"feature,omitempty"` - Name string `json:"name,omitempty"` - Rule string `json:"rule,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaagroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaagroup_binding.go deleted file mode 100644 index 204805a1f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaagroup_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyaaagroupbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaauser_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaauser_binding.go deleted file mode 100644 index 2401c278a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_aaauser_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyaaauserbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go deleted file mode 100644 index a9c5edc1e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyauditsyslogglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_authenticationvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_authenticationvserver_binding.go deleted file mode 100644 index 2ee220715..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_authenticationvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyauthenticationvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_binding.go deleted file mode 100644 index 8fec9ffd5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package audit - -type Auditsyslogpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_csvserver_binding.go deleted file mode 100644 index aeea5fba0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_csvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_lbvserver_binding.go deleted file mode 100644 index 8efded6d5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_lbvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_rnatglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_rnatglobal_binding.go deleted file mode 100644 index da92257ec..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_rnatglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyrnatglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_systemglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_systemglobal_binding.go deleted file mode 100644 index 1a84ae9c1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_systemglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicysystemglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_tmglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_tmglobal_binding.go deleted file mode 100644 index 35c8f2371..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_tmglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicytmglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnglobal_binding.go deleted file mode 100644 index 0ebcf2677..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyvpnglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnvserver_binding.go deleted file mode 100644 index 898316b14..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/audit/auditsyslogpolicy_vpnvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package audit - -type Auditsyslogpolicyvpnvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/configstatus.go b/vendor/github.com/chiradeep/go-nitro/config/basic/configstatus.go deleted file mode 100644 index b1e07834d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/configstatus.go +++ /dev/null @@ -1,9 +0,0 @@ -package basic - -type Configstatus struct { - Consistent string `json:"consistent,omitempty"` - Core int `json:"core,omitempty"` - Coreconfstring string `json:"coreconfstring,omitempty"` - Culpritcore int `json:"culpritcore,omitempty"` - Culpritcoreconfstring string `json:"culpritcoreconfstring,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/dbsmonitors.go b/vendor/github.com/chiradeep/go-nitro/config/basic/dbsmonitors.go deleted file mode 100644 index 69c8169a4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/dbsmonitors.go +++ /dev/null @@ -1 +0,0 @@ -package basic diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/extendedmemoryparam.go b/vendor/github.com/chiradeep/go-nitro/config/basic/extendedmemoryparam.go deleted file mode 100644 index ab22c994e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/extendedmemoryparam.go +++ /dev/null @@ -1,8 +0,0 @@ -package basic - -type Extendedmemoryparam struct { - Maxmemlimit int `json:"maxmemlimit,omitempty"` - Memlimit int `json:"memlimit,omitempty"` - Memlimitactive int `json:"memlimitactive,omitempty"` - Minrequiredmemory int `json:"minrequiredmemory,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/location.go b/vendor/github.com/chiradeep/go-nitro/config/basic/location.go deleted file mode 100644 index a22b890a7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/location.go +++ /dev/null @@ -1,15 +0,0 @@ -package basic - -type Location struct { - Ipfrom string `json:"ipfrom,omitempty"` - Ipto string `json:"ipto,omitempty"` - Latitude int `json:"latitude,omitempty"` - Longitude int `json:"longitude,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Q1label string `json:"q1label,omitempty"` - Q2label string `json:"q2label,omitempty"` - Q3label string `json:"q3label,omitempty"` - Q4label string `json:"q4label,omitempty"` - Q5label string `json:"q5label,omitempty"` - Q6label string `json:"q6label,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/locationdata.go b/vendor/github.com/chiradeep/go-nitro/config/basic/locationdata.go deleted file mode 100644 index 69c8169a4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/locationdata.go +++ /dev/null @@ -1 +0,0 @@ -package basic diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile.go b/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile.go deleted file mode 100644 index 6a5d9aee9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile.go +++ /dev/null @@ -1,7 +0,0 @@ -package basic - -type Locationfile struct { - Format string `json:"format,omitempty"` - Locationfile string `json:"Locationfile,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile6.go b/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile6.go deleted file mode 100644 index 6ebf11651..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/locationfile6.go +++ /dev/null @@ -1,7 +0,0 @@ -package basic - -type Locationfile6 struct { - Format string `json:"format,omitempty"` - Locationfile string `json:"Locationfile,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/locationparameter.go b/vendor/github.com/chiradeep/go-nitro/config/basic/locationparameter.go deleted file mode 100644 index bc00f7a85..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/locationparameter.go +++ /dev/null @@ -1,35 +0,0 @@ -package basic - -type Locationparameter struct { - Builtin interface{} `json:"builtin,omitempty"` - Context string `json:"context,omitempty"` - Custom int `json:"custom,omitempty"` - Custom6 int `json:"custom6,omitempty"` - Databasemode string `json:"databasemode,omitempty"` - Entries int `json:"entries,omitempty"` - Entries6 int `json:"entries6,omitempty"` - Errors int `json:"errors,omitempty"` - Errors6 int `json:"errors6,omitempty"` - Feature string `json:"feature,omitempty"` - Flags int `json:"flags,omitempty"` - Flushing string `json:"flushing,omitempty"` - Format string `json:"format,omitempty"` - Format6 string `json:"format6,omitempty"` - Lines int `json:"lines,omitempty"` - Lines6 int `json:"lines6,omitempty"` - Loading string `json:"loading,omitempty"` - Locationfile string `json:"Locationfile,omitempty"` - Locationfile6 string `json:"locationfile6,omitempty"` - Matchwildcardtoany string `json:"matchwildcardtoany,omitempty"` - Q1label string `json:"q1label,omitempty"` - Q2label string `json:"q2label,omitempty"` - Q3label string `json:"q3label,omitempty"` - Q4label string `json:"q4label,omitempty"` - Q5label string `json:"q5label,omitempty"` - Q6label string `json:"q6label,omitempty"` - Static int `json:"Static,omitempty"` - Static6 int `json:"static6,omitempty"` - Status int `json:"status,omitempty"` - Warnings int `json:"warnings,omitempty"` - Warnings6 int `json:"warnings6,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/nstrace.go b/vendor/github.com/chiradeep/go-nitro/config/basic/nstrace.go deleted file mode 100644 index 0f282a11b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/nstrace.go +++ /dev/null @@ -1,28 +0,0 @@ -package basic - -type Nstrace struct { - Capdroppkt string `json:"capdroppkt,omitempty"` - Capsslkeys string `json:"capsslkeys,omitempty"` - Doruntimecleanup string `json:"doruntimecleanup,omitempty"` - Fileid string `json:"fileid,omitempty"` - Filename string `json:"filename,omitempty"` - Filesize int `json:"filesize,omitempty"` - Filter string `json:"filter,omitempty"` - Inmemorytrace string `json:"inmemorytrace,omitempty"` - Link string `json:"link,omitempty"` - Merge string `json:"merge,omitempty"` - Mode interface{} `json:"mode,omitempty"` - Nf int `json:"nf,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Nodes interface{} `json:"nodes,omitempty"` - Pernic string `json:"pernic,omitempty"` - Scope string `json:"scope,omitempty"` - Size int `json:"size,omitempty"` - Skiplocalssh string `json:"skiplocalssh,omitempty"` - Skiprpc string `json:"skiprpc,omitempty"` - State string `json:"state,omitempty"` - Time int `json:"time,omitempty"` - Tracebuffers int `json:"tracebuffers,omitempty"` - Traceformat string `json:"traceformat,omitempty"` - Tracelocation string `json:"tracelocation,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/radiusnode.go b/vendor/github.com/chiradeep/go-nitro/config/basic/radiusnode.go deleted file mode 100644 index 7cecb695b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/radiusnode.go +++ /dev/null @@ -1,6 +0,0 @@ -package basic - -type Radiusnode struct { - Nodeprefix string `json:"nodeprefix,omitempty"` - Radkey string `json:"radkey,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/reporting.go b/vendor/github.com/chiradeep/go-nitro/config/basic/reporting.go deleted file mode 100644 index 8811d06c7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/reporting.go +++ /dev/null @@ -1,5 +0,0 @@ -package basic - -type Reporting struct { - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server.go deleted file mode 100644 index bab7508fe..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server.go +++ /dev/null @@ -1,30 +0,0 @@ -package basic - -type Server struct { - Autoscale string `json:"autoscale,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cka string `json:"cka,omitempty"` - Cmp string `json:"cmp,omitempty"` - Comment string `json:"comment,omitempty"` - Delay int `json:"delay,omitempty"` - Domain string `json:"domain,omitempty"` - Domainresolvenow bool `json:"domainresolvenow,omitempty"` - Domainresolveretry int `json:"domainresolveretry,omitempty"` - Graceful string `json:"graceful,omitempty"` - Internal bool `json:"Internal,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Ipv6address string `json:"ipv6address,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Querytype string `json:"querytype,omitempty"` - Sc string `json:"sc,omitempty"` - Sp string `json:"sp,omitempty"` - State string `json:"state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Tcpb string `json:"tcpb,omitempty"` - Td int `json:"td,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Translationip string `json:"translationip,omitempty"` - Translationmask string `json:"translationmask,omitempty"` - Usip string `json:"usip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server_binding.go deleted file mode 100644 index a65e50391..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package basic - -type Serverbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservice_binding.go deleted file mode 100644 index 624871232..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservice_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package basic - -type Servergslbservicebinding struct { - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Serviceipaddress string `json:"serviceipaddress,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Servicename string `json:"servicename,omitempty"` - Svctype string `json:"svctype,omitempty"` - Svrstate string `json:"svrstate,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservicegroup_binding.go deleted file mode 100644 index 9d7661f45..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server_gslbservicegroup_binding.go +++ /dev/null @@ -1,26 +0,0 @@ -package basic - -type Servergslbservicegroupbinding struct { - Appflowlog string `json:"appflowlog,omitempty"` - Boundtd int `json:"boundtd,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Customserverid string `json:"customserverid,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Dupport int `json:"dup_port,omitempty"` - Dupsvctype string `json:"dup_svctype,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Serviceipaddress string `json:"serviceipaddress,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Svctype string `json:"svctype,omitempty"` - Svrcfgflags int `json:"svrcfgflags,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server_service_binding.go deleted file mode 100644 index 55785ba2c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server_service_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package basic - -type Serverservicebinding struct { - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Serviceipaddress string `json:"serviceipaddress,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Servicename string `json:"servicename,omitempty"` - Svctype string `json:"svctype,omitempty"` - Svrstate string `json:"svrstate,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/server_servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/server_servicegroup_binding.go deleted file mode 100644 index bba164326..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/server_servicegroup_binding.go +++ /dev/null @@ -1,38 +0,0 @@ -package basic - -type Serverservicegroupbinding struct { - Appflowlog string `json:"appflowlog,omitempty"` - Boundtd int `json:"boundtd,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Cka string `json:"cka,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Cmp string `json:"cmp,omitempty"` - Customserverid string `json:"customserverid,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Dupport int `json:"dup_port,omitempty"` - Dupsvctype string `json:"dup_svctype,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Sc string `json:"sc,omitempty"` - Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Serviceipaddress string `json:"serviceipaddress,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Sp string `json:"sp,omitempty"` - Svcitmactsvcs int `json:"svcitmactsvcs,omitempty"` - Svcitmboundsvcs int `json:"svcitmboundsvcs,omitempty"` - Svcitmpriority int `json:"svcitmpriority,omitempty"` - Svctype string `json:"svctype,omitempty"` - Svrcfgflags int `json:"svrcfgflags,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` - Tcpb string `json:"tcpb,omitempty"` - Usip string `json:"usip,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/service.go b/vendor/github.com/chiradeep/go-nitro/config/basic/service.go deleted file mode 100644 index 6a4fba527..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/service.go +++ /dev/null @@ -1,83 +0,0 @@ -package basic - -type Service struct { - Accessdown string `json:"accessdown,omitempty"` - All bool `json:"all,omitempty"` - Appflowlog string `json:"appflowlog,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cachetype string `json:"cachetype,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Cka string `json:"cka,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Clmonowner int `json:"clmonowner,omitempty"` - Clmonview int `json:"clmonview,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Cmp string `json:"cmp,omitempty"` - Comment string `json:"comment,omitempty"` - Contentinspectionprofilename string `json:"contentinspectionprofilename,omitempty"` - Customserverid string `json:"customserverid,omitempty"` - Delay int `json:"delay,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Dupstate string `json:"dup_state,omitempty"` - Graceful string `json:"graceful,omitempty"` - Gslb string `json:"gslb,omitempty"` - Hashid int `json:"hashid,omitempty"` - Healthmonitor string `json:"healthmonitor,omitempty"` - Httpprofilename string `json:"httpprofilename,omitempty"` - Internal bool `json:"Internal,omitempty"` - Ip string `json:"ip,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Monconnectionclose string `json:"monconnectionclose,omitempty"` - Monitornamesvc string `json:"monitor_name_svc,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Name string `json:"name,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Newname string `json:"newname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Numofconnections int `json:"numofconnections,omitempty"` - Oracleserverversion string `json:"oracleserverversion,omitempty"` - Pathmonitor string `json:"pathmonitor,omitempty"` - Pathmonitorindv string `json:"pathmonitorindv,omitempty"` - Policyname string `json:"policyname,omitempty"` - Port int `json:"port,omitempty"` - Processlocal string `json:"processlocal,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Responsetime int `json:"responsetime,omitempty"` - Riseapbrstatsmsgcode int `json:"riseapbrstatsmsgcode,omitempty"` - Riseapbrstatsmsgcode2 int `json:"riseapbrstatsmsgcode2,omitempty"` - Rtspsessionidremap string `json:"rtspsessionidremap,omitempty"` - Sc string `json:"sc,omitempty"` - Serverid int `json:"serverid,omitempty"` - Servername string `json:"servername,omitempty"` - Serviceconftype bool `json:"serviceconftype,omitempty"` - Serviceconftype2 string `json:"serviceconftype2,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sp string `json:"sp,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Stateupdatereason int `json:"stateupdatereason,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` - Tcpb string `json:"tcpb,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Td int `json:"td,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Useproxyport string `json:"useproxyport,omitempty"` - Usip string `json:"usip,omitempty"` - Value string `json:"value,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/service_binding.go deleted file mode 100644 index 84b87a36d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/service_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package basic - -type Servicebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/service_dospolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/service_dospolicy_binding.go deleted file mode 100644 index de64e5ea0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/service_dospolicy_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package basic - -type Servicedospolicybinding struct { - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/service_lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/service_lbmonitor_binding.go deleted file mode 100644 index 1c6d23a91..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/service_lbmonitor_binding.go +++ /dev/null @@ -1,24 +0,0 @@ -package basic - -type Servicelbmonitorbinding struct { - Dupstate string `json:"dup_state,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Failedprobes int `json:"failedprobes,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` - Monitortotalprobes int `json:"monitortotalprobes,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstate string `json:"monstate,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Name string `json:"name,omitempty"` - Passive bool `json:"passive,omitempty"` - Responsetime int `json:"responsetime,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Totalprobes int `json:"totalprobes,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/service_scpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/service_scpolicy_binding.go deleted file mode 100644 index 6812efba0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/service_scpolicy_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package basic - -type Servicescpolicybinding struct { - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup.go deleted file mode 100644 index 9ccf34219..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup.go +++ /dev/null @@ -1,75 +0,0 @@ -package basic - -type Servicegroup struct { - Appflowlog string `json:"appflowlog,omitempty"` - Autodisabledelay int `json:"autodisabledelay,omitempty"` - Autodisablegraceful string `json:"autodisablegraceful,omitempty"` - Autoscale string `json:"autoscale,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cachetype string `json:"cachetype,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Cka string `json:"cka,omitempty"` - Clmonowner int `json:"clmonowner,omitempty"` - Clmonview int `json:"clmonview,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Cmp string `json:"cmp,omitempty"` - Comment string `json:"comment,omitempty"` - Customserverid string `json:"customserverid,omitempty"` - Dbsttl int `json:"dbsttl,omitempty"` - Delay int `json:"delay,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Graceful string `json:"graceful,omitempty"` - Groupcount int `json:"groupcount,omitempty"` - Hashid int `json:"hashid,omitempty"` - Healthmonitor string `json:"healthmonitor,omitempty"` - Httpprofilename string `json:"httpprofilename,omitempty"` - Includemembers bool `json:"includemembers,omitempty"` - Ip string `json:"ip,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Memberport int `json:"memberport,omitempty"` - Monconnectionclose string `json:"monconnectionclose,omitempty"` - Monitornamesvc string `json:"monitor_name_svc,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Nameserver string `json:"nameserver,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Newname string `json:"newname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Numofconnections int `json:"numofconnections,omitempty"` - Pathmonitor string `json:"pathmonitor,omitempty"` - Pathmonitorindv string `json:"pathmonitorindv,omitempty"` - Port int `json:"port,omitempty"` - Riseapbrstatsmsgcode int `json:"riseapbrstatsmsgcode,omitempty"` - Riseapbrstatsmsgcode2 int `json:"riseapbrstatsmsgcode2,omitempty"` - Rtspsessionidremap string `json:"rtspsessionidremap,omitempty"` - Sc string `json:"sc,omitempty"` - Serverid int `json:"serverid,omitempty"` - Servername string `json:"servername,omitempty"` - Serviceconftype bool `json:"serviceconftype,omitempty"` - Servicegroupeffectivestate string `json:"servicegroupeffectivestate,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sp string `json:"sp,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Stateupdatereason int `json:"stateupdatereason,omitempty"` - Svcitmactsvcs int `json:"svcitmactsvcs,omitempty"` - Svcitmboundsvcs int `json:"svcitmboundsvcs,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` - Tcpb string `json:"tcpb,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Td int `json:"td,omitempty"` - Useproxyport string `json:"useproxyport,omitempty"` - Usip string `json:"usip,omitempty"` - Value string `json:"value,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_binding.go deleted file mode 100644 index d97a258ab..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package basic - -type Servicegroupbinding struct { - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_lbmonitor_binding.go deleted file mode 100644 index cdb884977..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_lbmonitor_binding.go +++ /dev/null @@ -1,17 +0,0 @@ -package basic - -type Servicegrouplbmonitorbinding struct { - Customserverid string `json:"customserverid,omitempty"` - Dbsttl int `json:"dbsttl,omitempty"` - Hashid int `json:"hashid,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monstate string `json:"monstate,omitempty"` - Monweight int `json:"monweight,omitempty"` - Nameserver string `json:"nameserver,omitempty"` - Passive bool `json:"passive,omitempty"` - Port int `json:"port,omitempty"` - Serverid int `json:"serverid,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupentitymonbindings_binding.go deleted file mode 100644 index 9064a7035..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupentitymonbindings_binding.go +++ /dev/null @@ -1,22 +0,0 @@ -package basic - -type Servicegroupservicegroupentitymonbindingsbinding struct { - Customserverid string `json:"customserverid,omitempty"` - Dbsttl int `json:"dbsttl,omitempty"` - Hashid int `json:"hashid,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` - Monitortotalprobes int `json:"monitortotalprobes,omitempty"` - Nameserver string `json:"nameserver,omitempty"` - Passive bool `json:"passive,omitempty"` - Port int `json:"port,omitempty"` - Responsetime int `json:"responsetime,omitempty"` - Serverid int `json:"serverid,omitempty"` - Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmember_binding.go deleted file mode 100644 index e8718a600..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmember_binding.go +++ /dev/null @@ -1,22 +0,0 @@ -package basic - -type Servicegroupservicegroupmemberbinding struct { - Customserverid string `json:"customserverid,omitempty"` - Dbsttl int `json:"dbsttl,omitempty"` - Delay int `json:"delay,omitempty"` - Graceful string `json:"graceful,omitempty"` - Hashid int `json:"hashid,omitempty"` - Ip string `json:"ip,omitempty"` - Nameserver string `json:"nameserver,omitempty"` - Port int `json:"port,omitempty"` - Serverid int `json:"serverid,omitempty"` - Servername string `json:"servername,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - State string `json:"state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Svcitmpriority int `json:"svcitmpriority,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Trofsreason string `json:"trofsreason,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmemberlist_binding.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmemberlist_binding.go deleted file mode 100644 index c98083540..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroup_servicegroupmemberlist_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package basic - -type Member struct { - Ip string `json:"ip,omitempty"` - Port int `json:"port,omitempty"` - Weight int `json:"weight,omitempty"` -} - -type Servicegroupservicegroupmemberlistbinding struct { - Servicegroupname string `json:"servicegroupname,omitempty"` - Members []Member `json:"members,omitempty"` - Failedmembers []Member `json:"failedmembers,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroupbindings.go b/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroupbindings.go deleted file mode 100644 index 7a362b044..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/servicegroupbindings.go +++ /dev/null @@ -1,10 +0,0 @@ -package basic - -type Servicegroupbindings struct { - Ipaddress string `json:"ipaddress,omitempty"` - Port int `json:"port,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - State string `json:"state,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/svcbindings.go b/vendor/github.com/chiradeep/go-nitro/config/basic/svcbindings.go deleted file mode 100644 index 6e41cba02..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/svcbindings.go +++ /dev/null @@ -1,9 +0,0 @@ -package basic - -type Svcbindings struct { - Ipaddress string `json:"ipaddress,omitempty"` - Port int `json:"port,omitempty"` - Servicename string `json:"servicename,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/basic/vserver.go b/vendor/github.com/chiradeep/go-nitro/config/basic/vserver.go deleted file mode 100644 index 1199c3280..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/basic/vserver.go +++ /dev/null @@ -1,14 +0,0 @@ -package basic - -type Vserver struct { - Backupvserver string `json:"backupvserver,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Name string `json:"name,omitempty"` - Pushvserver string `json:"pushvserver,omitempty"` - Redirecturl string `json:"redirecturl,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` - Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` - Sothreshold int `json:"sothreshold,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/cluster.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/cluster.go deleted file mode 100644 index 482e07cd7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/cluster.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Cluster struct { - Clip string `json:"clip,omitempty"` - Password string `json:"password,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterfiles.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterfiles.go deleted file mode 100644 index e1330d8bc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterfiles.go +++ /dev/null @@ -1,5 +0,0 @@ -package cluster - -type Clusterfiles struct { - Mode interface{} `json:"mode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance.go deleted file mode 100644 index ccc1a0226..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance.go +++ /dev/null @@ -1,30 +0,0 @@ -package cluster - -type Clusterinstance struct { - Adminstate string `json:"adminstate,omitempty"` - Backplanebasedview string `json:"backplanebasedview,omitempty"` - Clid int `json:"clid,omitempty"` - Clusternoheartbeatonnode bool `json:"clusternoheartbeatonnode,omitempty"` - Clusternolinksetmbf bool `json:"clusternolinksetmbf,omitempty"` - Clusternospottedip bool `json:"clusternospottedip,omitempty"` - Deadinterval int `json:"deadinterval,omitempty"` - Hellointerval int `json:"hellointerval,omitempty"` - Heterogeneousflag string `json:"heterogeneousflag,omitempty"` - Inc string `json:"inc,omitempty"` - Jumbonotsupported bool `json:"jumbonotsupported,omitempty"` - Licensemismatch bool `json:"licensemismatch,omitempty"` - Nodegroup string `json:"nodegroup,omitempty"` - Nodegroupstatewarning bool `json:"nodegroupstatewarning,omitempty"` - Nodepenummismatch bool `json:"nodepenummismatch,omitempty"` - Operationalpropstate string `json:"operationalpropstate,omitempty"` - Operationalstate string `json:"operationalstate,omitempty"` - Penummismatch bool `json:"penummismatch,omitempty"` - Preemption string `json:"preemption,omitempty"` - Processlocal string `json:"processlocal,omitempty"` - Propstate string `json:"propstate,omitempty"` - Quorumtype string `json:"quorumtype,omitempty"` - Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` - Rsskeymismatch bool `json:"rsskeymismatch,omitempty"` - Status string `json:"status,omitempty"` - Validmtu int `json:"validmtu,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_binding.go deleted file mode 100644 index 27fa49b63..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cluster - -type Clusterinstancebinding struct { - Clid int `json:"clid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_clusternode_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_clusternode_binding.go deleted file mode 100644 index 7f59432f3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterinstance_clusternode_binding.go +++ /dev/null @@ -1,17 +0,0 @@ -package cluster - -type Clusterinstanceclusternodebinding struct { - Clid int `json:"clid,omitempty"` - Clusterhealth string `json:"clusterhealth,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Health string `json:"health,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` - Islocalnode bool `json:"islocalnode,omitempty"` - Masterstate string `json:"masterstate,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` - Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` - Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode.go deleted file mode 100644 index 1fa843080..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode.go +++ /dev/null @@ -1,34 +0,0 @@ -package cluster - -type Clusternode struct { - Backplane string `json:"backplane,omitempty"` - Cfgflags int `json:"cfgflags,omitempty"` - Clearnodegroupconfig string `json:"clearnodegroupconfig,omitempty"` - Clusterhealth string `json:"clusterhealth,omitempty"` - Delay int `json:"delay"` // 0 is a valid value for this field - Disabledifaces string `json:"disabledifaces,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Enabledifaces string `json:"enabledifaces,omitempty"` - Hamonifaces string `json:"hamonifaces,omitempty"` - Health string `json:"health,omitempty"` - Ifaceslist interface{} `json:"ifaceslist,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` - Islocalnode bool `json:"islocalnode,omitempty"` - Masterstate string `json:"masterstate,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Nodegroup string `json:"nodegroup,omitempty"` - Nodeid int `json:"nodeid"` // 0 is a valid value for this field - Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` - Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` - Nodelist interface{} `json:"nodelist,omitempty"` - Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` - Operationalsyncstate string `json:"operationalsyncstate,omitempty"` - Partialfailifaces string `json:"partialfailifaces,omitempty"` - Priority int `json:"priority"` // 0 is a valid value for this field - Routemonitor string `json:"routemonitor,omitempty"` - State string `json:"state,omitempty"` - Syncstate string `json:"syncstate,omitempty"` - Tunnelmode string `json:"tunnelmode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_binding.go deleted file mode 100644 index 35edd6325..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cluster - -type Clusternodebinding struct { - Nodeid int `json:"nodeid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_routemonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_routemonitor_binding.go deleted file mode 100644 index 1f2dbc615..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternode_routemonitor_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package cluster - -type Clusternoderoutemonitorbinding struct { - Netmask string `json:"netmask,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Routemonitor string `json:"routemonitor,omitempty"` - Routemonstate int `json:"routemonstate,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup.go deleted file mode 100644 index 864740710..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package cluster - -type Clusternodegroup struct { - Activelist interface{} `json:"activelist,omitempty"` - Backuplist interface{} `json:"backuplist,omitempty"` - Backupnodemask int `json:"backupnodemask,omitempty"` - Boundedentitiescntfrompe int `json:"boundedentitiescntfrompe,omitempty"` - Currentnodemask int `json:"currentnodemask,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` - Sticky string `json:"sticky,omitempty"` - Strict string `json:"strict,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_authenticationvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_authenticationvserver_binding.go deleted file mode 100644 index be7c05a6a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_authenticationvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupauthenticationvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_binding.go deleted file mode 100644 index 1e3cc1c74..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cluster - -type Clusternodegroupbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_clusternode_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_clusternode_binding.go deleted file mode 100644 index 5a8abba4d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_clusternode_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupclusternodebinding struct { - Name string `json:"name,omitempty"` - Node int `json:"node,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_crvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_crvserver_binding.go deleted file mode 100644 index 168e6a8fe..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_crvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupcrvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_csvserver_binding.go deleted file mode 100644 index ce59a6028..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_csvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupcsvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbsite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbsite_binding.go deleted file mode 100644 index 65b56b217..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbsite_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupgslbsitebinding struct { - Gslbsite string `json:"gslbsite,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbvserver_binding.go deleted file mode 100644 index 279896faa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_gslbvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupgslbvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_lbvserver_binding.go deleted file mode 100644 index 578603d43..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_lbvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegrouplbvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_nslimitidentifier_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_nslimitidentifier_binding.go deleted file mode 100644 index 9874be5b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_nslimitidentifier_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupnslimitidentifierbinding struct { - Identifiername string `json:"identifiername,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_service_binding.go deleted file mode 100644 index 08e941590..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_service_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupservicebinding struct { - Name string `json:"name,omitempty"` - Service string `json:"service,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_streamidentifier_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_streamidentifier_binding.go deleted file mode 100644 index 4a0405acf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_streamidentifier_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupstreamidentifierbinding struct { - Identifiername string `json:"identifiername,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_vpnvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_vpnvserver_binding.go deleted file mode 100644 index adcda1097..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusternodegroup_vpnvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cluster - -type Clusternodegroupvpnvserverbinding struct { - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterpropstatus.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterpropstatus.go deleted file mode 100644 index ec3426c96..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clusterpropstatus.go +++ /dev/null @@ -1,7 +0,0 @@ -package cluster - -type Clusterpropstatus struct { - Cmdstrs string `json:"cmdstrs,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Numpropcmdfailed int `json:"numpropcmdfailed,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cluster/clustersync.go b/vendor/github.com/chiradeep/go-nitro/config/cluster/clustersync.go deleted file mode 100644 index 916b1b53b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cluster/clustersync.go +++ /dev/null @@ -1 +0,0 @@ -package cluster diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpaction.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpaction.go deleted file mode 100644 index a398d10bd..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpaction.go +++ /dev/null @@ -1,13 +0,0 @@ -package cmp - -type Cmpaction struct { - Addvaryheader string `json:"addvaryheader,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Cmptype string `json:"cmptype,omitempty"` - Deltatype string `json:"deltatype,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Varyheadervalue string `json:"varyheadervalue,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_binding.go deleted file mode 100644 index 7c1e1f032..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package cmp diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_cmppolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_cmppolicy_binding.go deleted file mode 100644 index bfbf0f54a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpglobal_cmppolicy_binding.go +++ /dev/null @@ -1,15 +0,0 @@ -package cmp - -type Cmpglobalcmppolicybinding struct { - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Policytype string `json:"policytype,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpparameter.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpparameter.go deleted file mode 100644 index ec7939963..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmpparameter.go +++ /dev/null @@ -1,19 +0,0 @@ -package cmp - -type Cmpparameter struct { - Addvaryheader string `json:"addvaryheader,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Cmpbypasspct int `json:"cmpbypasspct,omitempty"` - Cmplevel string `json:"cmplevel,omitempty"` - Cmponpush string `json:"cmponpush,omitempty"` - Externalcache string `json:"externalcache,omitempty"` - Feature string `json:"feature,omitempty"` - Heurexpiry string `json:"heurexpiry,omitempty"` - Heurexpiryhistwt int `json:"heurexpiryhistwt,omitempty"` - Heurexpirythres int `json:"heurexpirythres,omitempty"` - Minressize int `json:"minressize,omitempty"` - Policytype string `json:"policytype,omitempty"` - Quantumsize int `json:"quantumsize,omitempty"` - Servercmp string `json:"servercmp,omitempty"` - Varyheadervalue string `json:"varyheadervalue,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy.go deleted file mode 100644 index 36c258e4e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy.go +++ /dev/null @@ -1,21 +0,0 @@ -package cmp - -type Cmppolicy struct { - Builtin interface{} `json:"builtin,omitempty"` - Clienttransactions int `json:"clienttransactions,omitempty"` - Clientttlb int `json:"clientttlb,omitempty"` - Description string `json:"description,omitempty"` - Expressiontype string `json:"expressiontype,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Reqaction string `json:"reqaction,omitempty"` - Resaction string `json:"resaction,omitempty"` - Rule string `json:"rule,omitempty"` - Rxbytes int `json:"rxbytes,omitempty"` - Servertransactions int `json:"servertransactions,omitempty"` - Serverttlb int `json:"serverttlb,omitempty"` - Txbytes int `json:"txbytes,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_binding.go deleted file mode 100644 index e014ef9a6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cmp - -type Cmppolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmpglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmpglobal_binding.go deleted file mode 100644 index b4a6e61dd..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmpglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicycmpglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmppolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmppolicylabel_binding.go deleted file mode 100644 index 8566d2cd8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_cmppolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicycmppolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_crvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_crvserver_binding.go deleted file mode 100644 index 6425fb54f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_crvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package cmp - -type Cmppolicycrvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_csvserver_binding.go deleted file mode 100644 index b51d5251f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_lbvserver_binding.go deleted file mode 100644 index a99c15c43..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel.go deleted file mode 100644 index b29f3c9f4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel.go +++ /dev/null @@ -1,15 +0,0 @@ -package cmp - -type Cmppolicylabel struct { - Description string `json:"description,omitempty"` - Flowtype int `json:"flowtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_binding.go deleted file mode 100644 index 7cf54fcc5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cmp - -type Cmppolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_cmppolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_cmppolicy_binding.go deleted file mode 100644 index ecefddd86..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_cmppolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicylabelcmppolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_policybinding_binding.go deleted file mode 100644 index 1446f05a7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cmp/cmppolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cmp - -type Cmppolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csaction.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csaction.go deleted file mode 100644 index 4fbe9f0e6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csaction.go +++ /dev/null @@ -1,15 +0,0 @@ -package cs - -type Csaction struct { - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` - Targetvserverexpr string `json:"targetvserverexpr,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csparameter.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csparameter.go deleted file mode 100644 index e495a8f7a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csparameter.go +++ /dev/null @@ -1,7 +0,0 @@ -package cs - -type Csparameter struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Stateupdate string `json:"stateupdate,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy.go deleted file mode 100644 index 6c74eed2e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy.go +++ /dev/null @@ -1,19 +0,0 @@ -package cs - -type Cspolicy struct { - Action string `json:"action,omitempty"` - Activepolicy bool `json:"activepolicy,omitempty"` - Bindhits int `json:"bindhits,omitempty"` - Cspolicytype string `json:"cspolicytype,omitempty"` - Domain string `json:"domain,omitempty"` - Hits int `json:"hits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Logaction string `json:"logaction,omitempty"` - Newname string `json:"newname,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Rule string `json:"rule,omitempty"` - Url string `json:"url,omitempty"` - Vstype int `json:"vstype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_binding.go deleted file mode 100644 index 896acd496..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cs - -type Cspolicybinding struct { - Policyname string `json:"policyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_crvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_crvserver_binding.go deleted file mode 100644 index 27d1fd3f9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_crvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cs - -type Cspolicycrvserverbinding struct { - Domain string `json:"domain,omitempty"` - Hits int `json:"hits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_cspolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_cspolicylabel_binding.go deleted file mode 100644 index c63fe4a19..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_cspolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package cs - -type Cspolicycspolicylabelbinding struct { - Domain string `json:"domain,omitempty"` - Hits int `json:"hits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_csvserver_binding.go deleted file mode 100644 index 20d981a21..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicy_csvserver_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Cspolicycsvserverbinding struct { - Action string `json:"action,omitempty"` - Domain string `json:"domain,omitempty"` - Hits int `json:"hits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Pihits int `json:"pihits,omitempty"` - Pipolicyhits int `json:"pipolicyhits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel.go deleted file mode 100644 index a46d0d521..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel.go +++ /dev/null @@ -1,15 +0,0 @@ -package cs - -type Cspolicylabel struct { - Cspolicylabeltype string `json:"cspolicylabeltype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_binding.go deleted file mode 100644 index d1154461b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cs - -type Cspolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_cspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_cspolicy_binding.go deleted file mode 100644 index 5bf97b948..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/cspolicylabel_cspolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package cs - -type Cspolicylabelcspolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver.go deleted file mode 100644 index f92f0579c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver.go +++ /dev/null @@ -1,103 +0,0 @@ -package cs - -type Csvserver struct { - Appflowlog string `json:"appflowlog,omitempty"` - Authentication string `json:"authentication,omitempty"` - Authenticationhost string `json:"authenticationhost,omitempty"` - Authn401 string `json:"authn401,omitempty"` - Authnprofile string `json:"authnprofile,omitempty"` - Authnvsname string `json:"authnvsname,omitempty"` - Backupip string `json:"backupip,omitempty"` - Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` - Backupvserver string `json:"backupvserver,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cachetype string `json:"cachetype,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Casesensitive string `json:"casesensitive,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Comment string `json:"comment,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookiename string `json:"cookiename,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Curstate string `json:"curstate,omitempty"` - Dbprofilename string `json:"dbprofilename,omitempty"` - Disableprimaryondown string `json:"disableprimaryondown,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Dnsrecordtype string `json:"dnsrecordtype,omitempty"` - Dnsvservername string `json:"dnsvservername,omitempty"` - Domain string `json:"domain,omitempty"` - Domainname string `json:"domainname,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Gt2gb string `json:"gt2gb,omitempty"` - Homepage string `json:"homepage,omitempty"` - Httpprofilename string `json:"httpprofilename,omitempty"` - Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` - Insertvserveripport string `json:"insertvserveripport,omitempty"` - Ip string `json:"ip,omitempty"` - Ipmask string `json:"ipmask,omitempty"` - Ippattern string `json:"ippattern,omitempty"` - Ipset string `json:"ipset,omitempty"` - Ipv46 string `json:"ipv46,omitempty"` - L2conn string `json:"l2conn,omitempty"` - Lbvserver string `json:"lbvserver,omitempty"` - Listenpolicy string `json:"listenpolicy,omitempty"` - Listenpriority int `json:"listenpriority,omitempty"` - Mssqlserverversion string `json:"mssqlserverversion,omitempty"` - Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` - Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` - Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` - Mysqlserverversion string `json:"mysqlserverversion,omitempty"` - Name string `json:"name,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Newname string `json:"newname,omitempty"` - Ngname string `json:"ngname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Oracleserverversion string `json:"oracleserverversion,omitempty"` - Persistencebackup string `json:"persistencebackup,omitempty"` - Persistenceid int `json:"persistenceid,omitempty"` - Persistencetype string `json:"persistencetype,omitempty"` - Persistmask string `json:"persistmask,omitempty"` - Port int `json:"port,omitempty"` - Precedence string `json:"precedence,omitempty"` - Push string `json:"push,omitempty"` - Pushlabel string `json:"pushlabel,omitempty"` - Pushmulticlients string `json:"pushmulticlients,omitempty"` - Pushvserver string `json:"pushvserver,omitempty"` - Range int `json:"range,omitempty"` - Redirect string `json:"redirect,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Redirecturl string `json:"redirecturl,omitempty"` - Rhistate string `json:"rhistate,omitempty"` - Rtspnat string `json:"rtspnat,omitempty"` - Ruletype int `json:"ruletype,omitempty"` - Sc string `json:"sc,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` - Sobackupaction string `json:"sobackupaction,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` - Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` - Sothreshold int `json:"sothreshold,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Stateupdate string `json:"stateupdate,omitempty"` - Status int `json:"status,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` - Targettype string `json:"targettype,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Td int `json:"td,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Timeout int `json:"timeout,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` - V6persistmasklen int `json:"v6persistmasklen,omitempty"` - Value string `json:"value,omitempty"` - Version int `json:"version,omitempty"` - Vipheader string `json:"vipheader,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_analyticsprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_analyticsprofile_binding.go deleted file mode 100644 index 88256dccf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_analyticsprofile_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package cs - -type Csvserveranalyticsprofilebinding struct { - Analyticsprofile string `json:"analyticsprofile,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appflowpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appflowpolicy_binding.go deleted file mode 100644 index 7e7f3544d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appflowpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverappflowpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appfwpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appfwpolicy_binding.go deleted file mode 100644 index d617d40ea..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appfwpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvserverappfwpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appqoepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appqoepolicy_binding.go deleted file mode 100644 index ccf66d652..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_appqoepolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverappqoepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditnslogpolicy_binding.go deleted file mode 100644 index 8ea39cd3d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditnslogpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvserverauditnslogpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditsyslogpolicy_binding.go deleted file mode 100644 index 2922cb44a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvserverauditsyslogpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_authorizationpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_authorizationpolicy_binding.go deleted file mode 100644 index 46fd917b9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_authorizationpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvserverauthorizationpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_binding.go deleted file mode 100644 index 130b81817..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package cs - -type Csvserverbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_botpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_botpolicy_binding.go deleted file mode 100644 index 82cb04b1d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_botpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverbotpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cachepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cachepolicy_binding.go deleted file mode 100644 index 68a19462e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cachepolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvservercachepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cmppolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cmppolicy_binding.go deleted file mode 100644 index 94edc4da7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cmppolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvservercmppolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_contentinspectionpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_contentinspectionpolicy_binding.go deleted file mode 100644 index 743e4bc0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_contentinspectionpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvservercontentinspectionpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_copolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_copolicy_binding.go deleted file mode 100644 index e80bbf9c0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_copolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvservercopolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cspolicy_binding.go deleted file mode 100644 index dca30fe7f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_cspolicy_binding.go +++ /dev/null @@ -1,18 +0,0 @@ -package cs - -type Csvservercspolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Cookieipport string `json:"cookieipport,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Pipolicyhits int `json:"pipolicyhits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Rule string `json:"rule,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` - Vserverid string `json:"vserverid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_domain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_domain_binding.go deleted file mode 100644 index c950af4e0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_domain_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package cs - -type Csvserverdomainbinding struct { - Appflowlog string `json:"appflowlog,omitempty"` - Backupip string `json:"backupip,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Domainname string `json:"domainname,omitempty"` - Name string `json:"name,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` - Ttl int `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_feopolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_feopolicy_binding.go deleted file mode 100644 index cf2060de9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_feopolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverfeopolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_filterpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_filterpolicy_binding.go deleted file mode 100644 index 5caf79ca6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_filterpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package cs - -type Csvserverfilterpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_gslbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_gslbvserver_binding.go deleted file mode 100644 index e406faae8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_gslbvserver_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package cs - -type Csvservergslbvserverbinding struct { - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_lbvserver_binding.go deleted file mode 100644 index f2206cdc9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_lbvserver_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package cs - -type Csvserverlbvserverbinding struct { - Cookieipport string `json:"cookieipport,omitempty"` - Hits int `json:"hits,omitempty"` - Lbvserver string `json:"lbvserver,omitempty"` - Name string `json:"name,omitempty"` - Targetvserver string `json:"targetvserver,omitempty"` - Vserverid string `json:"vserverid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_responderpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_responderpolicy_binding.go deleted file mode 100644 index 3bfede8e3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_responderpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverresponderpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_rewritepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_rewritepolicy_binding.go deleted file mode 100644 index d4d60410c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_rewritepolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverrewritepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_spilloverpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_spilloverpolicy_binding.go deleted file mode 100644 index ed53a5a1f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_spilloverpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvserverspilloverpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_tmtrafficpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_tmtrafficpolicy_binding.go deleted file mode 100644 index 0d79f28e8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_tmtrafficpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvservertmtrafficpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_transformpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_transformpolicy_binding.go deleted file mode 100644 index a83217f7f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_transformpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package cs - -type Csvservertransformpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Targetlbvserver string `json:"targetlbvserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_vpnvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_vpnvserver_binding.go deleted file mode 100644 index a76c28dbe..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/cs/csvserver_vpnvserver_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package cs - -type Csvservervpnvserverbinding struct { - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaaaarec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaaaarec.go deleted file mode 100644 index 2c1b0b3c1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaaaarec.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnsaaaarec struct { - Authtype string `json:"authtype,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Hostname string `json:"hostname,omitempty"` - Ipv6address string `json:"ipv6address,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction.go deleted file mode 100644 index 72648dbd2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction.go +++ /dev/null @@ -1,15 +0,0 @@ -package dns - -type Dnsaction struct { - Actionname string `json:"actionname,omitempty"` - Actiontype string `json:"actiontype,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Cachebypass string `json:"cachebypass,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Drop string `json:"drop,omitempty"` - Feature string `json:"feature,omitempty"` - Ipaddress interface{} `json:"ipaddress,omitempty"` - Preferredloclist interface{} `json:"preferredloclist,omitempty"` - Ttl int `json:"ttl,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction64.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction64.go deleted file mode 100644 index 72f4f41dc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaction64.go +++ /dev/null @@ -1,10 +0,0 @@ -package dns - -type Dnsaction64 struct { - Actionname string `json:"actionname,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Excluderule string `json:"excluderule,omitempty"` - Feature string `json:"feature,omitempty"` - Mappedrule string `json:"mappedrule,omitempty"` - Prefix string `json:"prefix,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaddrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaddrec.go deleted file mode 100644 index e9742634a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsaddrec.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnsaddrec struct { - Authtype string `json:"authtype,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Hostname string `json:"hostname,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnscnamerec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnscnamerec.go deleted file mode 100644 index ac701511b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnscnamerec.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnscnamerec struct { - Aliasname string `json:"aliasname,omitempty"` - Authtype string `json:"authtype,omitempty"` - Canonicalname string `json:"canonicalname,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_binding.go deleted file mode 100644 index 1ffe03d57..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package dns diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_dnspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_dnspolicy_binding.go deleted file mode 100644 index 5bb8680e7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsglobal_dnspolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package dns - -type Dnsglobaldnspolicybinding struct { - Flowtype int `json:"flowtype,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnskey.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnskey.go deleted file mode 100644 index ce7292075..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnskey.go +++ /dev/null @@ -1,19 +0,0 @@ -package dns - -type Dnskey struct { - Algorithm string `json:"algorithm,omitempty"` - Expires int `json:"expires,omitempty"` - Filenameprefix string `json:"filenameprefix,omitempty"` - Keyname string `json:"keyname,omitempty"` - Keysize int `json:"keysize,omitempty"` - Keytype string `json:"keytype,omitempty"` - Notificationperiod int `json:"notificationperiod,omitempty"` - Password string `json:"password,omitempty"` - Privatekey string `json:"privatekey,omitempty"` - Publickey string `json:"publickey,omitempty"` - Src string `json:"src,omitempty"` - Ttl int `json:"ttl,omitempty"` - Units1 string `json:"units1,omitempty"` - Units2 string `json:"units2,omitempty"` - Zonename string `json:"zonename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsmxrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsmxrec.go deleted file mode 100644 index 97eb0a94c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsmxrec.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnsmxrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Mx string `json:"mx,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Pref int `json:"pref,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnameserver.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnameserver.go deleted file mode 100644 index 96121d1ff..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnameserver.go +++ /dev/null @@ -1,15 +0,0 @@ -package dns - -type Dnsnameserver struct { - Clmonowner int `json:"clmonowner,omitempty"` - Clmonview int `json:"clmonview,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Dnsvservername string `json:"dnsvservername,omitempty"` - Ip string `json:"ip,omitempty"` - Local bool `json:"local,omitempty"` - Nameserverstate string `json:"nameserverstate,omitempty"` - Port int `json:"port,omitempty"` - Servicename string `json:"servicename,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnaptrrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnaptrrec.go deleted file mode 100644 index 315eaa80f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnaptrrec.go +++ /dev/null @@ -1,18 +0,0 @@ -package dns - -type Dnsnaptrrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Flags string `json:"flags,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Order int `json:"order,omitempty"` - Preference int `json:"preference,omitempty"` - Recordid int `json:"recordid,omitempty"` - Regexp string `json:"regexp,omitempty"` - Replacement string `json:"replacement,omitempty"` - Services string `json:"services,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsecrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsecrec.go deleted file mode 100644 index b03cf7993..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsecrec.go +++ /dev/null @@ -1,10 +0,0 @@ -package dns - -type Dnsnsecrec struct { - Ecssubnet string `json:"ecssubnet,omitempty"` - Hostname string `json:"hostname,omitempty"` - Nextnsec string `json:"nextnsec,omitempty"` - Nextrecs interface{} `json:"nextrecs,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsrec.go deleted file mode 100644 index 8f14b015e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsnsrec.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnsnsrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Nameserver string `json:"nameserver,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsparameter.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsparameter.go deleted file mode 100644 index 16a784456..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsparameter.go +++ /dev/null @@ -1,26 +0,0 @@ -package dns - -type Dnsparameter struct { - Builtin interface{} `json:"builtin,omitempty"` - Cacheecszeroprefix string `json:"cacheecszeroprefix,omitempty"` - Cachehitbypass string `json:"cachehitbypass,omitempty"` - Cachenoexpire string `json:"cachenoexpire,omitempty"` - Cacherecords string `json:"cacherecords,omitempty"` - Dns64timeout int `json:"dns64timeout,omitempty"` - Dnsrootreferral string `json:"dnsrootreferral,omitempty"` - Dnssec string `json:"dnssec,omitempty"` - Ecsmaxsubnets int `json:"ecsmaxsubnets,omitempty"` - Feature string `json:"feature,omitempty"` - Maxcachesize int `json:"maxcachesize,omitempty"` - Maxnegativecachesize int `json:"maxnegativecachesize,omitempty"` - Maxnegcachettl int `json:"maxnegcachettl,omitempty"` - Maxpipeline int `json:"maxpipeline,omitempty"` - Maxttl int `json:"maxttl,omitempty"` - Maxudppacketsize int `json:"maxudppacketsize,omitempty"` - Minttl int `json:"minttl,omitempty"` - Namelookuppriority string `json:"namelookuppriority,omitempty"` - Recursion string `json:"recursion,omitempty"` - Resolutionorder string `json:"resolutionorder,omitempty"` - Retries int `json:"retries,omitempty"` - Splitpktqueryprocessing string `json:"splitpktqueryprocessing,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy.go deleted file mode 100644 index 09be85f36..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy.go +++ /dev/null @@ -1,18 +0,0 @@ -package dns - -type Dnspolicy struct { - Actionname string `json:"actionname,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Cachebypass string `json:"cachebypass,omitempty"` - Description string `json:"description,omitempty"` - Drop string `json:"drop,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Logaction string `json:"logaction,omitempty"` - Name string `json:"name,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Preferredloclist interface{} `json:"preferredloclist,omitempty"` - Rule string `json:"rule,omitempty"` - Undefhits int `json:"undefhits,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64.go deleted file mode 100644 index 936f82602..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnspolicy64 struct { - Action string `json:"action,omitempty"` - Description string `json:"description,omitempty"` - Hits int `json:"hits,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Rule string `json:"rule,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_binding.go deleted file mode 100644 index 775c68020..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnspolicy64binding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_lbvserver_binding.go deleted file mode 100644 index fc6a1c983..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy64_lbvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package dns - -type Dnspolicy64lbvserverbinding struct { - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_binding.go deleted file mode 100644 index 84f07bec8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnspolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnsglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnsglobal_binding.go deleted file mode 100644 index a0bff2bb0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnsglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnspolicydnsglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnspolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnspolicylabel_binding.go deleted file mode 100644 index 7c81f74b4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicy_dnspolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnspolicydnspolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel.go deleted file mode 100644 index d5bba4481..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel.go +++ /dev/null @@ -1,16 +0,0 @@ -package dns - -type Dnspolicylabel struct { - Description string `json:"description,omitempty"` - Flowtype int `json:"flowtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Priority int `json:"priority,omitempty"` - Transform string `json:"transform,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_binding.go deleted file mode 100644 index 18a3895d6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnspolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_dnspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_dnspolicy_binding.go deleted file mode 100644 index 4720c86c5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_dnspolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnspolicylabeldnspolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_policybinding_binding.go deleted file mode 100644 index dd3c6a975..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnspolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnspolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsprofile.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsprofile.go deleted file mode 100644 index f9b22e42d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsprofile.go +++ /dev/null @@ -1,14 +0,0 @@ -package dns - -type Dnsprofile struct { - Cacheecsresponses string `json:"cacheecsresponses,omitempty"` - Cachenegativeresponses string `json:"cachenegativeresponses,omitempty"` - Cacherecords string `json:"cacherecords,omitempty"` - Dnsanswerseclogging string `json:"dnsanswerseclogging,omitempty"` - Dnserrorlogging string `json:"dnserrorlogging,omitempty"` - Dnsextendedlogging string `json:"dnsextendedlogging,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Dnsquerylogging string `json:"dnsquerylogging,omitempty"` - Dropmultiqueryrequest string `json:"dropmultiqueryrequest,omitempty"` - Referencecount int `json:"referencecount,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsproxyrecords.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsproxyrecords.go deleted file mode 100644 index 8108bcc17..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsproxyrecords.go +++ /dev/null @@ -1,6 +0,0 @@ -package dns - -type Dnsproxyrecords struct { - Negrectype string `json:"negrectype,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsptrrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsptrrec.go deleted file mode 100644 index aa1ea9a41..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsptrrec.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnsptrrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Reversedomain string `json:"reversedomain,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssoarec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnssoarec.go deleted file mode 100644 index 40faf516c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssoarec.go +++ /dev/null @@ -1,17 +0,0 @@ -package dns - -type Dnssoarec struct { - Authtype string `json:"authtype,omitempty"` - Contact string `json:"contact,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Expire int `json:"expire,omitempty"` - Minimum int `json:"minimum,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Originserver string `json:"originserver,omitempty"` - Refresh int `json:"refresh,omitempty"` - Retry int `json:"retry,omitempty"` - Serial int `json:"serial,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssrvrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnssrvrec.go deleted file mode 100644 index 336720895..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssrvrec.go +++ /dev/null @@ -1,14 +0,0 @@ -package dns - -type Dnssrvrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Port int `json:"port,omitempty"` - Priority int `json:"priority,omitempty"` - Target string `json:"target,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssubnetcache.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnssubnetcache.go deleted file mode 100644 index 0e9515b9a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssubnetcache.go +++ /dev/null @@ -1,9 +0,0 @@ -package dns - -type Dnssubnetcache struct { - All bool `json:"all,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Hostname string `json:"hostname,omitempty"` - Nextrecs interface{} `json:"nextrecs,omitempty"` - Nodeid int `json:"nodeid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssuffix.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnssuffix.go deleted file mode 100644 index 904969054..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnssuffix.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnssuffix struct { - Dnssuffix string `json:"Dnssuffix,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnstxtrec.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnstxtrec.go deleted file mode 100644 index 3afcaf5ec..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnstxtrec.go +++ /dev/null @@ -1,12 +0,0 @@ -package dns - -type Dnstxtrec struct { - Authtype string `json:"authtype,omitempty"` - Domain string `json:"domain,omitempty"` - Ecssubnet string `json:"ecssubnet,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Recordid int `json:"recordid,omitempty"` - String interface{} `json:"String,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview.go deleted file mode 100644 index 3ec060c0d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview.go +++ /dev/null @@ -1,6 +0,0 @@ -package dns - -type Dnsview struct { - Flags int `json:"flags,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_binding.go deleted file mode 100644 index e99a34a7b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnsviewbinding struct { - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_dnspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_dnspolicy_binding.go deleted file mode 100644 index 0b6670efe..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_dnspolicy_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package dns - -type Dnsviewdnspolicybinding struct { - Dnspolicyname string `json:"dnspolicyname,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_gslbservice_binding.go deleted file mode 100644 index bc97eadb3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnsview_gslbservice_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package dns - -type Dnsviewgslbservicebinding struct { - Gslbservicename string `json:"gslbservicename,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone.go deleted file mode 100644 index b6e7e7851..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone.go +++ /dev/null @@ -1,11 +0,0 @@ -package dns - -type Dnszone struct { - Dnssecoffload string `json:"dnssecoffload,omitempty"` - Flags int `json:"flags,omitempty"` - Keyname interface{} `json:"keyname,omitempty"` - Nsec string `json:"nsec,omitempty"` - Proxymode string `json:"proxymode,omitempty"` - Type string `json:"type,omitempty"` - Zonename string `json:"zonename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_binding.go deleted file mode 100644 index 6ea615925..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package dns - -type Dnszonebinding struct { - Zonename string `json:"zonename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_dnskey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_dnskey_binding.go deleted file mode 100644 index c3758306b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_dnskey_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package dns - -type Dnszonednskeybinding struct { - Expires int `json:"expires,omitempty"` - Keyname interface{} `json:"keyname,omitempty"` - Siginceptiontime interface{} `json:"siginceptiontime,omitempty"` - Signed int `json:"signed,omitempty"` - Zonename string `json:"zonename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_domain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_domain_binding.go deleted file mode 100644 index 77f3f0cc6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/dns/dnszone_domain_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package dns - -type Dnszonedomainbinding struct { - Domain string `json:"domain,omitempty"` - Nextrecs interface{} `json:"nextrecs,omitempty"` - Zonename string `json:"zonename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filteraction.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filteraction.go deleted file mode 100644 index cade0c600..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filteraction.go +++ /dev/null @@ -1,13 +0,0 @@ -package filter - -type Filteraction struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Name string `json:"name,omitempty"` - Page string `json:"page,omitempty"` - Qual string `json:"qual,omitempty"` - Respcode int `json:"respcode,omitempty"` - Servicename string `json:"servicename,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_binding.go deleted file mode 100644 index 4a28b11c7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package filter diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_filterpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_filterpolicy_binding.go deleted file mode 100644 index 6f082a5b0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterglobal_filterpolicy_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package filter - -type Filterglobalfilterpolicybinding struct { - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionparameter.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionparameter.go deleted file mode 100644 index 2cf20fff2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionparameter.go +++ /dev/null @@ -1,10 +0,0 @@ -package filter - -type Filterhtmlinjectionparameter struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Frequency int `json:"frequency,omitempty"` - Htmlsearchlen int `json:"htmlsearchlen,omitempty"` - Rate int `json:"rate,omitempty"` - Strict string `json:"strict,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionvariable.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionvariable.go deleted file mode 100644 index c12828379..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterhtmlinjectionvariable.go +++ /dev/null @@ -1,9 +0,0 @@ -package filter - -type Filterhtmlinjectionvariable struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Type string `json:"type,omitempty"` - Value string `json:"value,omitempty"` - Variable string `json:"variable,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy.go deleted file mode 100644 index a48d2c3ed..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy.go +++ /dev/null @@ -1,9 +0,0 @@ -package filter - -type Filterpolicy struct { - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Reqaction string `json:"reqaction,omitempty"` - Resaction string `json:"resaction,omitempty"` - Rule string `json:"rule,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_binding.go deleted file mode 100644 index f96097f0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package filter - -type Filterpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_crvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_crvserver_binding.go deleted file mode 100644 index 5b668bbf6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_crvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package filter - -type Filterpolicycrvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_csvserver_binding.go deleted file mode 100644 index e627e2015..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_csvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package filter - -type Filterpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_filterglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_filterglobal_binding.go deleted file mode 100644 index 27f18cfac..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_filterglobal_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package filter - -type Filterpolicyfilterglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_lbvserver_binding.go deleted file mode 100644 index b477f5ed7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpolicy_lbvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package filter - -type Filterpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpostbodyinjection.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterpostbodyinjection.go deleted file mode 100644 index 9c1ab3d99..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterpostbodyinjection.go +++ /dev/null @@ -1,6 +0,0 @@ -package filter - -type Filterpostbodyinjection struct { - Postbody string `json:"postbody,omitempty"` - Systemiid string `json:"systemiid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/filter/filterprebodyinjection.go b/vendor/github.com/chiradeep/go-nitro/config/filter/filterprebodyinjection.go deleted file mode 100644 index 6c5aa3115..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/filter/filterprebodyinjection.go +++ /dev/null @@ -1,6 +0,0 @@ -package filter - -type Filterprebodyinjection struct { - Prebody string `json:"prebody,omitempty"` - Systemiid string `json:"systemiid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbconfig.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbconfig.go deleted file mode 100644 index 351aac2c7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbconfig.go +++ /dev/null @@ -1,10 +0,0 @@ -package gslb - -type Gslbconfig struct { - Command string `json:"command,omitempty"` - Debug bool `json:"debug,omitempty"` - Forcesync string `json:"forcesync,omitempty"` - Nowarn bool `json:"nowarn,omitempty"` - Preview bool `json:"preview,omitempty"` - Saveconfig bool `json:"saveconfig,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain.go deleted file mode 100644 index 686ead45b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbdomain struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_binding.go deleted file mode 100644 index a3ef07429..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbdomainbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservice_binding.go deleted file mode 100644 index b995edaeb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservice_binding.go +++ /dev/null @@ -1,17 +0,0 @@ -package gslb - -type Gslbdomaingslbservicebinding struct { - Cnameentry string `json:"cnameentry,omitempty"` - Cumulativeweight int `json:"cumulativeweight,omitempty"` - Dynamicconfwt int `json:"dynamicconfwt,omitempty"` - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - State string `json:"state,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Vservername string `json:"vservername,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroup_binding.go deleted file mode 100644 index a66aa60cd..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroup_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package gslb - -type Gslbdomaingslbservicegroupbinding struct { - Name string `json:"name,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroupmember_binding.go deleted file mode 100644 index 6b31b020e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbservicegroupmember_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package gslb - -type Gslbdomaingslbservicegroupmemberbinding struct { - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbvserver_binding.go deleted file mode 100644 index a7d47c2b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_gslbvserver_binding.go +++ /dev/null @@ -1,26 +0,0 @@ -package gslb - -type Gslbdomaingslbvserverbinding struct { - Backuplbmethod string `json:"backuplbmethod,omitempty"` - Cip string `json:"cip,omitempty"` - Customheaders string `json:"customheaders,omitempty"` - Dnsrecordtype string `json:"dnsrecordtype,omitempty"` - Dynamicweight string `json:"dynamicweight,omitempty"` - Edr string `json:"edr,omitempty"` - Lbmethod string `json:"lbmethod,omitempty"` - Mir string `json:"mir,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Persistenceid int `json:"persistenceid,omitempty"` - Persistencetype string `json:"persistencetype,omitempty"` - Persistmask string `json:"persistmask,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` - Sitepersistence string `json:"sitepersistence,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - V6netmasklen int `json:"v6netmasklen,omitempty"` - V6persistmasklen int `json:"v6persistmasklen,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_lbmonitor_binding.go deleted file mode 100644 index 1cc00828b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbdomain_lbmonitor_binding.go +++ /dev/null @@ -1,19 +0,0 @@ -package gslb - -type Gslbdomainlbmonitorbinding struct { - Customheaders string `json:"customheaders,omitempty"` - Httprequest string `json:"httprequest,omitempty"` - Iptunnel string `json:"iptunnel,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` - Monitortotalprobes int `json:"monitortotalprobes,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstate string `json:"monstate,omitempty"` - Name string `json:"name,omitempty"` - Respcode string `json:"respcode,omitempty"` - Responsetime int `json:"responsetime,omitempty"` - Servicename string `json:"servicename,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentries.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentries.go deleted file mode 100644 index afb547b65..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentries.go +++ /dev/null @@ -1,11 +0,0 @@ -package gslb - -type Gslbldnsentries struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Numsites int `json:"numsites,omitempty"` - Rtt interface{} `json:"rtt,omitempty"` - Sitename string `json:"sitename,omitempty"` - Ttl int `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentry.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentry.go deleted file mode 100644 index d353024c5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbldnsentry.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbldnsentry struct { - Ipaddress string `json:"ipaddress,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbparameter.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbparameter.go deleted file mode 100644 index c39e4aa77..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbparameter.go +++ /dev/null @@ -1,15 +0,0 @@ -package gslb - -type Gslbparameter struct { - Automaticconfigsync string `json:"automaticconfigsync,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Dropldnsreq string `json:"dropldnsreq,omitempty"` - Feature string `json:"feature,omitempty"` - Flags int `json:"flags,omitempty"` - Gslbsvcstatedelaytime int `json:"gslbsvcstatedelaytime,omitempty"` - Ldnsentrytimeout int `json:"ldnsentrytimeout,omitempty"` - Ldnsmask string `json:"ldnsmask,omitempty"` - Ldnsprobeorder interface{} `json:"ldnsprobeorder,omitempty"` - Rtttolerance int `json:"rtttolerance,omitempty"` - V6ldnsmasklen int `json:"v6ldnsmasklen,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbrunningconfig.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbrunningconfig.go deleted file mode 100644 index 1b197e06d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbrunningconfig.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbrunningconfig struct { - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice.go deleted file mode 100644 index df52cb2be..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice.go +++ /dev/null @@ -1,57 +0,0 @@ -package gslb - -type Gslbservice struct { - Appflowlog string `json:"appflowlog,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Clmonowner int `json:"clmonowner,omitempty"` - Clmonview int `json:"clmonview,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Cnameentry string `json:"cnameentry,omitempty"` - Comment string `json:"comment,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Glsbsvchealthdescr string `json:"glsbsvchealthdescr,omitempty"` - Gslb string `json:"gslb,omitempty"` - Gslbsvchealth int `json:"gslbsvchealth,omitempty"` - Gslbsvcstats int `json:"gslbsvcstats,omitempty"` - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Hashid int `json:"hashid,omitempty"` - Healthmonitor string `json:"healthmonitor,omitempty"` - Ip string `json:"ip,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Maxaaausers int `json:"maxaaausers,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Monitornamesvc string `json:"monitor_name_svc,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monstate string `json:"monstate,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Naptrdomainttl int `json:"naptrdomainttl,omitempty"` - Naptrorder int `json:"naptrorder,omitempty"` - Naptrpreference int `json:"naptrpreference,omitempty"` - Naptrreplacement string `json:"naptrreplacement,omitempty"` - Naptrservices string `json:"naptrservices,omitempty"` - Newname string `json:"newname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Servername string `json:"servername,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` - Sitepersistence string `json:"sitepersistence,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` - Threshold string `json:"threshold,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Viewip string `json:"viewip,omitempty"` - Viewname string `json:"viewname,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_binding.go deleted file mode 100644 index c4bf65e73..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbservicebinding struct { - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_dnsview_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_dnsview_binding.go deleted file mode 100644 index 01b296a24..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_dnsview_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package gslb - -type Gslbservicednsviewbinding struct { - Servicename string `json:"servicename,omitempty"` - Viewip string `json:"viewip,omitempty"` - Viewname string `json:"viewname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_lbmonitor_binding.go deleted file mode 100644 index 175935375..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservice_lbmonitor_binding.go +++ /dev/null @@ -1,20 +0,0 @@ -package gslb - -type Gslbservicelbmonitorbinding struct { - Failedprobes int `json:"failedprobes,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` - Monitortotalprobes int `json:"monitortotalprobes,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstate string `json:"monstate,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Responsetime int `json:"responsetime,omitempty"` - Servicename string `json:"servicename,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup.go deleted file mode 100644 index eef3cee7a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup.go +++ /dev/null @@ -1,53 +0,0 @@ -package gslb - -type Gslbservicegroup struct { - Appflowlog string `json:"appflowlog,omitempty"` - Autoscale string `json:"autoscale,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Clmonowner int `json:"clmonowner,omitempty"` - Clmonview int `json:"clmonview,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Comment string `json:"comment,omitempty"` - Delay int `json:"delay,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Graceful string `json:"graceful,omitempty"` - Groupcount int `json:"groupcount,omitempty"` - Gslb string `json:"gslb,omitempty"` - Hashid int `json:"hashid,omitempty"` - Healthmonitor string `json:"healthmonitor,omitempty"` - Includemembers bool `json:"includemembers,omitempty"` - Ip string `json:"ip,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Monitornamesvc string `json:"monitor_name_svc,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Monthreshold int `json:"monthreshold,omitempty"` - Newname string `json:"newname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Numofconnections int `json:"numofconnections,omitempty"` - Port int `json:"port,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Servername string `json:"servername,omitempty"` - Serviceconftype bool `json:"serviceconftype,omitempty"` - Servicegroupeffectivestate string `json:"servicegroupeffectivestate,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Serviceipstr string `json:"serviceipstr,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` - Sitepersistence string `json:"sitepersistence,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Stateupdatereason int `json:"stateupdatereason,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Svrtimeout int `json:"svrtimeout,omitempty"` - Value string `json:"value,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_binding.go deleted file mode 100644 index dd48c674c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbservicegroupbinding struct { - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go deleted file mode 100644 index 446052ad9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go +++ /dev/null @@ -1,22 +0,0 @@ -package gslb - -type Gslbservicegroupgslbservicegroupmemberbinding struct { - Delay int `json:"delay,omitempty"` - Graceful string `json:"graceful,omitempty"` - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Hashid int `json:"hashid,omitempty"` - Ip string `json:"ip,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Servername string `json:"servername,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Threshold string `json:"threshold,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_lbmonitor_binding.go deleted file mode 100644 index bd045e387..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_lbmonitor_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package gslb - -type Gslbservicegrouplbmonitorbinding struct { - Hashid int `json:"hashid,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monstate string `json:"monstate,omitempty"` - Monweight int `json:"monweight,omitempty"` - Passive bool `json:"passive,omitempty"` - Port int `json:"port,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go deleted file mode 100644 index 13585b1bc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go +++ /dev/null @@ -1,20 +0,0 @@ -package gslb - -type Gslbservicegroupservicegroupentitymonbindingsbinding struct { - Hashid int `json:"hashid,omitempty"` - Lastresponse string `json:"lastresponse,omitempty"` - Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` - Monitorname string `json:"monitor_name,omitempty"` - Monitorstate string `json:"monitor_state,omitempty"` - Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` - Monitortotalprobes int `json:"monitortotalprobes,omitempty"` - Passive bool `json:"passive,omitempty"` - Port int `json:"port,omitempty"` - Publicip string `json:"publicip,omitempty"` - Publicport int `json:"publicport,omitempty"` - Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Siteprefix string `json:"siteprefix,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite.go deleted file mode 100644 index 6d0b40e15..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite.go +++ /dev/null @@ -1,21 +0,0 @@ -package gslb - -type Gslbsite struct { - Backupparentlist interface{} `json:"backupparentlist,omitempty"` - Clip string `json:"clip,omitempty"` - Curbackupparentip string `json:"curbackupparentip,omitempty"` - Metricexchange string `json:"metricexchange,omitempty"` - Naptrreplacementsuffix string `json:"naptrreplacementsuffix,omitempty"` - Nwmetricexchange string `json:"nwmetricexchange,omitempty"` - Parentsite string `json:"parentsite,omitempty"` - Persistencemepstatus string `json:"persistencemepstatus,omitempty"` - Publicclip string `json:"publicclip,omitempty"` - Publicip string `json:"publicip,omitempty"` - Sessionexchange string `json:"sessionexchange,omitempty"` - Siteipaddress string `json:"siteipaddress,omitempty"` - Sitename string `json:"sitename,omitempty"` - Sitetype string `json:"sitetype,omitempty"` - Status string `json:"status,omitempty"` - Triggermonitor string `json:"triggermonitor,omitempty"` - Version int `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_binding.go deleted file mode 100644 index 19539fb9b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbsitebinding struct { - Sitename string `json:"sitename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservice_binding.go deleted file mode 100644 index 398484022..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservice_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package gslb - -type Gslbsitegslbservicebinding struct { - Cnameentry string `json:"cnameentry,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Port int `json:"port,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroup_binding.go deleted file mode 100644 index 59b77cc0d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroup_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package gslb - -type Gslbsitegslbservicegroupbinding struct { - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroupmember_binding.go deleted file mode 100644 index 724067702..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsite_gslbservicegroupmember_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package gslb - -type Gslbsitegslbservicegroupmemberbinding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Port int `json:"port,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitename string `json:"sitename,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsyncstatus.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsyncstatus.go deleted file mode 100644 index f1c5b64b7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbsyncstatus.go +++ /dev/null @@ -1,6 +0,0 @@ -package gslb - -type Gslbsyncstatus struct { - Response string `json:"response,omitempty"` - Summary bool `json:"summary,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver.go deleted file mode 100644 index a31d5e205..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver.go +++ /dev/null @@ -1,64 +0,0 @@ -package gslb - -type Gslbvserver struct { - Activeservices int `json:"activeservices,omitempty"` - Appflowlog string `json:"appflowlog,omitempty"` - Backupip string `json:"backupip,omitempty"` - Backuplbmethod string `json:"backuplbmethod,omitempty"` - Backupsessiontimeout int `json:"backupsessiontimeout,omitempty"` - Backupvserver string `json:"backupvserver,omitempty"` - Comment string `json:"comment,omitempty"` - Considereffectivestate string `json:"considereffectivestate,omitempty"` - Cookiedomain string `json:"cookie_domain,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Curstate string `json:"curstate,omitempty"` - Disableprimaryondown string `json:"disableprimaryondown,omitempty"` - Dnsrecordtype string `json:"dnsrecordtype,omitempty"` - Domainname string `json:"domainname,omitempty"` - Dynamicweight string `json:"dynamicweight,omitempty"` - Ecs string `json:"ecs,omitempty"` - Ecsaddrvalidation string `json:"ecsaddrvalidation,omitempty"` - Edr string `json:"edr,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Health int `json:"health,omitempty"` - Iptype string `json:"iptype,omitempty"` - Iscname string `json:"iscname,omitempty"` - Lbmethod string `json:"lbmethod,omitempty"` - Lbrrreason int `json:"lbrrreason,omitempty"` - Mir string `json:"mir,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Newname string `json:"newname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Persistenceid int `json:"persistenceid,omitempty"` - Persistencetype string `json:"persistencetype,omitempty"` - Persistmask string `json:"persistmask,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Rule string `json:"rule,omitempty"` - Servername string `json:"servername,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` - Sitepersistence string `json:"sitepersistence,omitempty"` - Sobackupaction string `json:"sobackupaction,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` - Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` - Sothreshold int `json:"sothreshold,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Status int `json:"status,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Timeout int `json:"timeout,omitempty"` - Tolerance int `json:"tolerance,omitempty"` - Totalservices int `json:"totalservices,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - V6netmasklen int `json:"v6netmasklen,omitempty"` - V6persistmasklen int `json:"v6persistmasklen,omitempty"` - Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` - Vsvrbindsvcport int `json:"vsvrbindsvcport,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_binding.go deleted file mode 100644 index 6c75c08b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package gslb - -type Gslbvserverbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_domain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_domain_binding.go deleted file mode 100644 index f703d0abb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_domain_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package gslb - -type Gslbvserverdomainbinding struct { - Backupip string `json:"backupip,omitempty"` - Backupipflag bool `json:"backupipflag,omitempty"` - Cookiedomain string `json:"cookie_domain,omitempty"` - Cookiedomainflag bool `json:"cookie_domainflag,omitempty"` - Cookietimeout int `json:"cookietimeout,omitempty"` - Domainname string `json:"domainname,omitempty"` - Name string `json:"name,omitempty"` - Sitedomainttl int `json:"sitedomainttl,omitempty"` - Ttl int `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservice_binding.go deleted file mode 100644 index f1706e772..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservice_binding.go +++ /dev/null @@ -1,22 +0,0 @@ -package gslb - -type Gslbvservergslbservicebinding struct { - Cnameentry string `json:"cnameentry,omitempty"` - Cumulativeweight int `json:"cumulativeweight,omitempty"` - Curstate string `json:"curstate,omitempty"` - Domainname string `json:"domainname,omitempty"` - Dynamicconfwt int `json:"dynamicconfwt,omitempty"` - Gslbboundsvctype string `json:"gslbboundsvctype,omitempty"` - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Iscname string `json:"iscname,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Servicename string `json:"servicename,omitempty"` - Sitepersistcookie string `json:"sitepersistcookie,omitempty"` - Svcsitepersistence string `json:"svcsitepersistence,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Thresholdvalue int `json:"thresholdvalue,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroup_binding.go deleted file mode 100644 index 869868428..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroup_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package gslb - -type Gslbvservergslbservicegroupbinding struct { - Name string `json:"name,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroupmember_binding.go deleted file mode 100644 index 436980bf4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_gslbservicegroupmember_binding.go +++ /dev/null @@ -1,18 +0,0 @@ -package gslb - -type Gslbvservergslbservicegroupmemberbinding struct { - Curstate string `json:"curstate,omitempty"` - Dynamicweight string `json:"dynamicweight,omitempty"` - Gslbthreshold int `json:"gslbthreshold,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sitepersistcookie string `json:"sitepersistcookie,omitempty"` - Svcsitepersistence string `json:"svcsitepersistence,omitempty"` - Svreffgslbstate string `json:"svreffgslbstate,omitempty"` - Thresholdvalue int `json:"thresholdvalue,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_spilloverpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_spilloverpolicy_binding.go deleted file mode 100644 index 2aa650a49..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/gslb/gslbvserver_spilloverpolicy_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package gslb - -type Gslbvserverspilloverpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup.go deleted file mode 100644 index 6ae1cc309..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup.go +++ /dev/null @@ -1,18 +0,0 @@ -package lb - -type Lbgroup struct { - Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookiename string `json:"cookiename,omitempty"` - Mastervserver string `json:"mastervserver,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Persistencebackup string `json:"persistencebackup,omitempty"` - Persistencetype string `json:"persistencetype,omitempty"` - Persistmask string `json:"persistmask,omitempty"` - Rule string `json:"rule,omitempty"` - Td int `json:"td,omitempty"` - Timeout int `json:"timeout,omitempty"` - Usevserverpersistency string `json:"usevserverpersistency,omitempty"` - V6persistmasklen int `json:"v6persistmasklen,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_binding.go deleted file mode 100644 index 632d28991..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbgroupbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_lbvserver_binding.go deleted file mode 100644 index ced064ad3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbgroup_lbvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package lb - -type Lbgrouplbvserverbinding struct { - Name string `json:"name,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable.go deleted file mode 100644 index f9dee7f18..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable.go +++ /dev/null @@ -1,10 +0,0 @@ -package lb - -type Lbmetrictable struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Metric string `json:"metric,omitempty"` - Metrictable string `json:"metrictable,omitempty"` - Metrictype string `json:"metrictype,omitempty"` - Snmpoid string `json:"Snmpoid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_binding.go deleted file mode 100644 index 80a94e758..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbmetrictablebinding struct { - Metrictable string `json:"metrictable,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_metric_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_metric_binding.go deleted file mode 100644 index 4552d84e3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmetrictable_metric_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package lb - -type Lbmetrictablemetricbinding struct { - Metric string `json:"metric,omitempty"` - Metrictable string `json:"metrictable,omitempty"` - Metrictype string `json:"metrictype,omitempty"` - Snmpoid string `json:"Snmpoid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings.go deleted file mode 100644 index d154e6251..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings.go +++ /dev/null @@ -1,8 +0,0 @@ -package lb - -type Lbmonbindings struct { - Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - State string `json:"state,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_binding.go deleted file mode 100644 index 4b4b84e20..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbmonbindingsbinding struct { - Monitorname string `json:"monitorname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_gslbservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_gslbservicegroup_binding.go deleted file mode 100644 index 1e93d21cb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_gslbservicegroup_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package lb - -type Lbmonbindingsgslbservicegroupbinding struct { - Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Monstate string `json:"monstate,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_service_binding.go deleted file mode 100644 index 2a01a64c0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_service_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package lb - -type Lbmonbindingsservicebinding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Monsvcstate string `json:"monsvcstate,omitempty"` - Port int `json:"port,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Svrstate string `json:"svrstate,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_servicegroup_binding.go deleted file mode 100644 index b4a8a395f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonbindings_servicegroup_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package lb - -type Lbmonbindingsservicegroupbinding struct { - Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Monstate string `json:"monstate,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor.go deleted file mode 100644 index 1652920ce..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor.go +++ /dev/null @@ -1,116 +0,0 @@ -package lb - -type Lbmonitor struct { - Acctapplicationid interface{} `json:"acctapplicationid,omitempty"` - Action string `json:"action,omitempty"` - Alertretries int `json:"alertretries,omitempty"` - Application string `json:"application,omitempty"` - Attribute string `json:"attribute,omitempty"` - Authapplicationid interface{} `json:"authapplicationid,omitempty"` - Basedn string `json:"basedn,omitempty"` - Binddn string `json:"binddn,omitempty"` - Customheaders string `json:"customheaders,omitempty"` - Database string `json:"database,omitempty"` - Destip string `json:"destip,omitempty"` - Destport int `json:"destport,omitempty"` - Deviation int `json:"deviation,omitempty"` - Dispatcherip string `json:"dispatcherip,omitempty"` - Dispatcherport int `json:"dispatcherport,omitempty"` - Domain string `json:"domain,omitempty"` - Downtime int `json:"downtime,omitempty"` - Dupstate string `json:"dup_state,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Dynamicinterval int `json:"dynamicinterval,omitempty"` - Dynamicresponsetimeout int `json:"dynamicresponsetimeout,omitempty"` - Evalrule string `json:"evalrule,omitempty"` - Failureretries int `json:"failureretries,omitempty"` - Filename string `json:"filename,omitempty"` - Filter string `json:"filter,omitempty"` - Firmwarerevision int `json:"firmwarerevision,omitempty"` - Group string `json:"group,omitempty"` - Hostipaddress string `json:"hostipaddress,omitempty"` - Hostname string `json:"hostname,omitempty"` - Httprequest string `json:"httprequest,omitempty"` - Inbandsecurityid string `json:"inbandsecurityid,omitempty"` - Interval int `json:"interval,omitempty"` - Ipaddress interface{} `json:"ipaddress,omitempty"` - Iptunnel string `json:"iptunnel,omitempty"` - Kcdaccount string `json:"kcdaccount,omitempty"` - Lasversion string `json:"lasversion,omitempty"` - Logonpointname string `json:"logonpointname,omitempty"` - Lrtm string `json:"lrtm,omitempty"` - Lrtmconf int `json:"lrtmconf,omitempty"` - Lrtmconfstr string `json:"lrtmconfstr,omitempty"` - Maxforwards int `json:"maxforwards,omitempty"` - Metric string `json:"metric,omitempty"` - Metrictable string `json:"metrictable,omitempty"` - Metricthreshold int `json:"metricthreshold,omitempty"` - Metricweight int `json:"metricweight,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Mssqlprotocolversion string `json:"mssqlprotocolversion,omitempty"` - Multimetrictable interface{} `json:"multimetrictable,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Oraclesid string `json:"oraclesid,omitempty"` - Originhost string `json:"originhost,omitempty"` - Originrealm string `json:"originrealm,omitempty"` - Password string `json:"password,omitempty"` - Productname string `json:"productname,omitempty"` - Query string `json:"query,omitempty"` - Querytype string `json:"querytype,omitempty"` - Radaccountsession string `json:"radaccountsession,omitempty"` - Radaccounttype int `json:"radaccounttype,omitempty"` - Radapn string `json:"radapn,omitempty"` - Radframedip string `json:"radframedip,omitempty"` - Radkey string `json:"radkey,omitempty"` - Radmsisdn string `json:"radmsisdn,omitempty"` - Radnasid string `json:"radnasid,omitempty"` - Radnasip string `json:"radnasip,omitempty"` - Recv string `json:"recv,omitempty"` - Respcode interface{} `json:"respcode,omitempty"` - Resptimeout int `json:"resptimeout,omitempty"` - Resptimeoutthresh int `json:"resptimeoutthresh,omitempty"` - Retries int `json:"retries,omitempty"` - Reverse string `json:"reverse,omitempty"` - Rtsprequest string `json:"rtsprequest,omitempty"` - Scriptargs string `json:"scriptargs,omitempty"` - Scriptname string `json:"scriptname,omitempty"` - Secondarypassword string `json:"secondarypassword,omitempty"` - Secure string `json:"secure,omitempty"` - Send string `json:"send,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - Sipmethod string `json:"sipmethod,omitempty"` - Sipreguri string `json:"sipreguri,omitempty"` - Sipuri string `json:"sipuri,omitempty"` - Sitepath string `json:"sitepath,omitempty"` - Snmpcommunity string `json:"snmpcommunity,omitempty"` - Snmpoid string `json:"Snmpoid,omitempty"` - Snmpthreshold string `json:"snmpthreshold,omitempty"` - Snmpversion string `json:"snmpversion,omitempty"` - Sqlquery string `json:"sqlquery,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` - State string `json:"state,omitempty"` - Storedb string `json:"storedb,omitempty"` - Storefrontacctservice string `json:"storefrontacctservice,omitempty"` - Storefrontcheckbackendservices string `json:"storefrontcheckbackendservices,omitempty"` - Storename string `json:"storename,omitempty"` - Successretries int `json:"successretries,omitempty"` - Supportedvendorids interface{} `json:"supportedvendorids,omitempty"` - Tos string `json:"tos,omitempty"` - Tosid int `json:"tosid,omitempty"` - Transparent string `json:"transparent,omitempty"` - Trofscode int `json:"trofscode,omitempty"` - Trofsstring string `json:"trofsstring,omitempty"` - Type string `json:"type,omitempty"` - Units1 string `json:"units1,omitempty"` - Units2 string `json:"units2,omitempty"` - Units3 string `json:"units3,omitempty"` - Units4 string `json:"units4,omitempty"` - Username string `json:"username,omitempty"` - Validatecred string `json:"validatecred,omitempty"` - Vendorid int `json:"vendorid,omitempty"` - Vendorspecificacctapplicationids interface{} `json:"vendorspecificacctapplicationids,omitempty"` - Vendorspecificauthapplicationids interface{} `json:"vendorspecificauthapplicationids,omitempty"` - Vendorspecificvendorid int `json:"vendorspecificvendorid,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_binding.go deleted file mode 100644 index c5cea3b0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbmonitorbinding struct { - Monitorname string `json:"monitorname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_metric_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_metric_binding.go deleted file mode 100644 index 8de4f69e3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_metric_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package lb - -type Lbmonitormetricbinding struct { - Metric string `json:"metric,omitempty"` - Metrictable string `json:"metrictable,omitempty"` - Metricthreshold int `json:"metricthreshold,omitempty"` - Metricunit string `json:"metric_unit,omitempty"` - Metricweight int `json:"metricweight,omitempty"` - Monitorname string `json:"monitorname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_service_binding.go deleted file mode 100644 index c8f2c0b4e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_service_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package lb - -type Lbmonitorservicebinding struct { - Dupstate string `json:"dup_state,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_servicegroup_binding.go deleted file mode 100644 index 5c4e4bf68..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_servicegroup_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package lb - -type Lbmonitorservicegroupbinding struct { - Dupstate string `json:"dup_state,omitempty"` - Dupweight int `json:"dup_weight,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - State string `json:"state,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_sslcertkey_binding.go deleted file mode 100644 index 93ded6d42..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbmonitor_sslcertkey_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package lb - -type Lbmonitorsslcertkeybinding struct { - Ca bool `json:"ca,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Monitorname string `json:"monitorname,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbparameter.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbparameter.go deleted file mode 100644 index befacc04c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbparameter.go +++ /dev/null @@ -1,22 +0,0 @@ -package lb - -type Lbparameter struct { - Allowboundsvcremoval string `json:"allowboundsvcremoval,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Consolidatedlconn string `json:"consolidatedlconn,omitempty"` - Cookiepassphrase string `json:"cookiepassphrase,omitempty"` - Dbsttl int `json:"dbsttl,omitempty"` - Feature string `json:"feature,omitempty"` - Httponlycookieflag string `json:"httponlycookieflag,omitempty"` - Maxpipelinenat int `json:"maxpipelinenat,omitempty"` - Monitorconnectionclose string `json:"monitorconnectionclose,omitempty"` - Monitorskipmaxclient string `json:"monitorskipmaxclient,omitempty"` - Preferdirectroute string `json:"preferdirectroute,omitempty"` - Retainservicestate string `json:"retainservicestate,omitempty"` - Sessionsthreshold int `json:"sessionsthreshold,omitempty"` - Startuprrfactor int `json:"startuprrfactor,omitempty"` - Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` - Useportforhashlb string `json:"useportforhashlb,omitempty"` - Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` - Vserverspecificmac string `json:"vserverspecificmac,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbpersistentsessions.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbpersistentsessions.go deleted file mode 100644 index f2e33362b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbpersistentsessions.go +++ /dev/null @@ -1,20 +0,0 @@ -package lb - -type Lbpersistentsessions struct { - Cnamepersparam string `json:"cnamepersparam,omitempty"` - Destip string `json:"destip,omitempty"` - Destipv6 string `json:"destipv6,omitempty"` - Destport int `json:"destport,omitempty"` - Flags bool `json:"flags,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Persistenceparam string `json:"persistenceparam,omitempty"` - Persistenceparameter string `json:"persistenceparameter,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Srcip string `json:"srcip,omitempty"` - Srcipv6 string `json:"srcipv6,omitempty"` - Timeout int `json:"timeout,omitempty"` - Type int `json:"type,omitempty"` - Typestring string `json:"typestring,omitempty"` - Vserver string `json:"vserver,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbprofile.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbprofile.go deleted file mode 100644 index d1ab1cfd8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbprofile struct { - Cookiepassphrase string `json:"cookiepassphrase,omitempty"` - Dbslb string `json:"dbslb,omitempty"` - Httponlycookieflag string `json:"httponlycookieflag,omitempty"` - Lbprofilename string `json:"lbprofilename,omitempty"` - Processlocal string `json:"processlocal,omitempty"` - Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` - Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` - Vsvrcount int `json:"vsvrcount,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute.go deleted file mode 100644 index 68019eda5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute.go +++ /dev/null @@ -1,9 +0,0 @@ -package lb - -type Lbroute struct { - Flags string `json:"flags,omitempty"` - Gatewayname string `json:"gatewayname,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute6.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute6.go deleted file mode 100644 index 2753da1e7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbroute6.go +++ /dev/null @@ -1,8 +0,0 @@ -package lb - -type Lbroute6 struct { - Flags string `json:"flags,omitempty"` - Gatewayname string `json:"gatewayname,omitempty"` - Network string `json:"network,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbsipparameters.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbsipparameters.go deleted file mode 100644 index 931514a61..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbsipparameters.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbsipparameters struct { - Addrportvip string `json:"addrportvip,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Retrydur int `json:"retrydur,omitempty"` - Rnatdstport int `json:"rnatdstport,omitempty"` - Rnatsecuredstport int `json:"rnatsecuredstport,omitempty"` - Rnatsecuresrcport int `json:"rnatsecuresrcport,omitempty"` - Rnatsrcport int `json:"rnatsrcport,omitempty"` - Sip503ratethreshold int `json:"sip503ratethreshold,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver.go deleted file mode 100644 index 8609dd19a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver.go +++ /dev/null @@ -1,137 +0,0 @@ -package lb - -type Lbvserver struct { - Activeservices int `json:"activeservices,omitempty"` - Adfsproxyprofile string `json:"adfsproxyprofile,omitempty"` - Appflowlog string `json:"appflowlog,omitempty"` - Authentication string `json:"authentication,omitempty"` - Authenticationhost string `json:"authenticationhost,omitempty"` - Authn401 string `json:"authn401,omitempty"` - Authnprofile string `json:"authnprofile,omitempty"` - Authnvsname string `json:"authnvsname,omitempty"` - Backuplbmethod string `json:"backuplbmethod,omitempty"` - Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` - Backupvserver string `json:"backupvserver,omitempty"` - Backupvserverstatus string `json:"backupvserverstatus,omitempty"` - Bindpoint string `json:"bindpoint,omitempty"` - Bypassaaaa string `json:"bypassaaaa,omitempty"` - Cacheable string `json:"cacheable,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Clttimeout int `json:"clttimeout,omitempty"` - Comment string `json:"comment,omitempty"` - Connfailover string `json:"connfailover,omitempty"` - Consolidatedlconn string `json:"consolidatedlconn,omitempty"` - Consolidatedlconngbl string `json:"consolidatedlconngbl,omitempty"` - Cookiedomain string `json:"cookiedomain,omitempty"` - Cookiename string `json:"cookiename,omitempty"` - Curstate string `json:"curstate,omitempty"` - Datalength int `json:"datalength,omitempty"` - Dataoffset int `json:"dataoffset,omitempty"` - Dbprofilename string `json:"dbprofilename,omitempty"` - Dbslb string `json:"dbslb,omitempty"` - Disableprimaryondown string `json:"disableprimaryondown,omitempty"` - Dns64 string `json:"dns64,omitempty"` - Dnsprofilename string `json:"dnsprofilename,omitempty"` - Dnsvservername string `json:"dnsvservername,omitempty"` - Domain string `json:"domain,omitempty"` - Downstateflush string `json:"downstateflush,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Groupname string `json:"groupname,omitempty"` - Gt2gb string `json:"gt2gb,omitempty"` - Hashlength int `json:"hashlength,omitempty"` - Health int `json:"health,omitempty"` - Healththreshold int `json:"healththreshold,omitempty"` - Homepage string `json:"homepage,omitempty"` - Httpprofilename string `json:"httpprofilename,omitempty"` - Httpsredirecturl string `json:"httpsredirecturl,omitempty"` - Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` - Insertvserveripport string `json:"insertvserveripport,omitempty"` - Ipmapping string `json:"ipmapping,omitempty"` - Ipmask string `json:"ipmask,omitempty"` - Ippattern string `json:"ippattern,omitempty"` - Ipset string `json:"ipset,omitempty"` - Ipv46 string `json:"ipv46,omitempty"` - Isgslb bool `json:"isgslb,omitempty"` - L2conn string `json:"l2conn,omitempty"` - Lbmethod string `json:"lbmethod,omitempty"` - Lbprofilename string `json:"lbprofilename,omitempty"` - Lbrrreason int `json:"lbrrreason,omitempty"` - Listenpolicy string `json:"listenpolicy,omitempty"` - Listenpriority int `json:"listenpriority,omitempty"` - M string `json:"m,omitempty"` - Macmoderetainvlan string `json:"macmoderetainvlan,omitempty"` - Map string `json:"map,omitempty"` - Maxautoscalemembers int `json:"maxautoscalemembers,omitempty"` - Minautoscalemembers int `json:"minautoscalemembers,omitempty"` - Mssqlserverversion string `json:"mssqlserverversion,omitempty"` - Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` - Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` - Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` - Mysqlserverversion string `json:"mysqlserverversion,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Netprofile string `json:"netprofile,omitempty"` - Newname string `json:"newname,omitempty"` - Newservicerequest int `json:"newservicerequest,omitempty"` - Newservicerequestincrementinterval int `json:"newservicerequestincrementinterval,omitempty"` - Newservicerequestunit string `json:"newservicerequestunit,omitempty"` - Ngname string `json:"ngname,omitempty"` - Nodefaultbindings string `json:"nodefaultbindings,omitempty"` - Oracleserverversion string `json:"oracleserverversion,omitempty"` - Persistavpno interface{} `json:"persistavpno,omitempty"` - Persistencebackup string `json:"persistencebackup,omitempty"` - Persistencetype string `json:"persistencetype,omitempty"` - Persistmask string `json:"persistmask,omitempty"` - Port int `json:"port,omitempty"` - Pq string `json:"pq,omitempty"` - Precedence string `json:"precedence,omitempty"` - Processlocal string `json:"processlocal,omitempty"` - Push string `json:"push,omitempty"` - Pushlabel string `json:"pushlabel,omitempty"` - Pushmulticlients string `json:"pushmulticlients,omitempty"` - Pushvserver string `json:"pushvserver,omitempty"` - Range int `json:"range,omitempty"` - Recursionavailable string `json:"recursionavailable,omitempty"` - Redirect string `json:"redirect,omitempty"` - Redirectfromport int `json:"redirectfromport,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Redirurl string `json:"redirurl,omitempty"` - Redirurlflags bool `json:"redirurlflags,omitempty"` - Resrule string `json:"resrule,omitempty"` - Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` - Rhistate string `json:"rhistate,omitempty"` - Rtspnat string `json:"rtspnat,omitempty"` - Rule string `json:"rule,omitempty"` - Ruletype int `json:"ruletype,omitempty"` - Sc string `json:"sc,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Sessionless string `json:"sessionless,omitempty"` - Skippersistency string `json:"skippersistency,omitempty"` - Sobackupaction string `json:"sobackupaction,omitempty"` - Somethod string `json:"somethod,omitempty"` - Sopersistence string `json:"sopersistence,omitempty"` - Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` - Sothreshold int `json:"sothreshold,omitempty"` - State string `json:"state,omitempty"` - Statechangetimemsec int `json:"statechangetimemsec,omitempty"` - Statechangetimesec string `json:"statechangetimesec,omitempty"` - Statechangetimeseconds int `json:"statechangetimeseconds,omitempty"` - Status int `json:"status,omitempty"` - Tcpprofilename string `json:"tcpprofilename,omitempty"` - Td int `json:"td,omitempty"` - Thresholdvalue int `json:"thresholdvalue,omitempty"` - Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` - Timeout int `json:"timeout,omitempty"` - Tosid int `json:"tosid,omitempty"` - Totalservices int `json:"totalservices,omitempty"` - Trofspersistence string `json:"trofspersistence,omitempty"` - Type string `json:"type,omitempty"` - V6netmasklen int `json:"v6netmasklen,omitempty"` - V6persistmasklen int `json:"v6persistmasklen,omitempty"` - Value string `json:"value,omitempty"` - Version int `json:"version,omitempty"` - Vipheader string `json:"vipheader,omitempty"` - Vsvrdynconnsothreshold int `json:"vsvrdynconnsothreshold,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_analyticsprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_analyticsprofile_binding.go deleted file mode 100644 index 30848d83b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_analyticsprofile_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package lb - -type Lbvserveranalyticsprofilebinding struct { - Analyticsprofile string `json:"analyticsprofile,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appflowpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appflowpolicy_binding.go deleted file mode 100644 index 94038bc9b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appflowpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverappflowpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appfwpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appfwpolicy_binding.go deleted file mode 100644 index dee9c66e8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appfwpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvserverappfwpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appqoepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appqoepolicy_binding.go deleted file mode 100644 index 450ae2aab..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_appqoepolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverappqoepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditnslogpolicy_binding.go deleted file mode 100644 index 70c3c475d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditnslogpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvserverauditnslogpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditsyslogpolicy_binding.go deleted file mode 100644 index f4df52886..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvserverauditsyslogpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_authorizationpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_authorizationpolicy_binding.go deleted file mode 100644 index 9d7740ba8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_authorizationpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvserverauthorizationpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_binding.go deleted file mode 100644 index 55c28d6c2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbvserverbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_botpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_botpolicy_binding.go deleted file mode 100644 index 89497504c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_botpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverbotpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cachepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cachepolicy_binding.go deleted file mode 100644 index 55a6f72af..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cachepolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservercachepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_capolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_capolicy_binding.go deleted file mode 100644 index f93365b27..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_capolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservercapolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cmppolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cmppolicy_binding.go deleted file mode 100644 index 5f49651da..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_cmppolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvservercmppolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_contentinspectionpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_contentinspectionpolicy_binding.go deleted file mode 100644 index 363e5a126..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_contentinspectionpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservercontentinspectionpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_copolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_copolicy_binding.go deleted file mode 100644 index e6d72a24f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_copolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservercopolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_csvserver_binding.go deleted file mode 100644 index ab44d31e0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_csvserver_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservercsvserverbinding struct { - Cachetype string `json:"cachetype,omitempty"` - Cachevserver string `json:"cachevserver,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Pipolicyhits int `json:"pipolicyhits,omitempty"` - Policyname string `json:"policyname,omitempty"` - Policysubtype int `json:"policysubtype,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dnspolicy64_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dnspolicy64_binding.go deleted file mode 100644 index d082f5288..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dnspolicy64_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverdnspolicy64binding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dospolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dospolicy_binding.go deleted file mode 100644 index 959600db6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_dospolicy_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package lb - -type Lbvserverdospolicybinding struct { - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_feopolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_feopolicy_binding.go deleted file mode 100644 index 1545bc86d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_feopolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverfeopolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_filterpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_filterpolicy_binding.go deleted file mode 100644 index bc5c2f287..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_filterpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package lb - -type Lbvserverfilterpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Sc string `json:"sc,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_pqpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_pqpolicy_binding.go deleted file mode 100644 index f87fb4cc1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_pqpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverpqpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_responderpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_responderpolicy_binding.go deleted file mode 100644 index 40e0ea0fb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_responderpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverresponderpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_rewritepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_rewritepolicy_binding.go deleted file mode 100644 index e0e6f78e9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_rewritepolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverrewritepolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_scpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_scpolicy_binding.go deleted file mode 100644 index ea073d3be..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_scpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverscpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_service_binding.go deleted file mode 100644 index 7b463ad4e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_service_binding.go +++ /dev/null @@ -1,18 +0,0 @@ -package lb - -type Lbvserverservicebinding struct { - Cookieipport string `json:"cookieipport,omitempty"` - Curstate string `json:"curstate,omitempty"` - Dynamicweight int `json:"dynamicweight,omitempty"` - Ipv46 string `json:"ipv46,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Vserverid string `json:"vserverid,omitempty"` - Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` - Vsvrbindsvcport int `json:"vsvrbindsvcport,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroup_binding.go deleted file mode 100644 index 091ce238b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroup_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package lb - -type Lbvserverservicegroupbinding struct { - Name string `json:"name,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroupmember_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroupmember_binding.go deleted file mode 100644 index 9dacec12e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_servicegroupmember_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package lb - -type Lbvserverservicegroupmemberbinding struct { - Cookieipport string `json:"cookieipport,omitempty"` - Cookiename string `json:"cookiename,omitempty"` - Curstate string `json:"curstate,omitempty"` - Dynamicweight int `json:"dynamicweight,omitempty"` - Ipv46 string `json:"ipv46,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Preferredlocation string `json:"preferredlocation,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicetype string `json:"servicetype,omitempty"` - Vserverid string `json:"vserverid,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_spilloverpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_spilloverpolicy_binding.go deleted file mode 100644 index 238371ee6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_spilloverpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvserverspilloverpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_tmtrafficpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_tmtrafficpolicy_binding.go deleted file mode 100644 index 708326dfa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_tmtrafficpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservertmtrafficpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_transformpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_transformpolicy_binding.go deleted file mode 100644 index cd73a55b3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_transformpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservertransformpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go deleted file mode 100644 index 0bf783479..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservervideooptimizationdetectionpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go deleted file mode 100644 index 4ffb36510..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package lb - -type Lbvservervideooptimizationpacingpolicybinding struct { - Bindpoint string `json:"bindpoint,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm.go deleted file mode 100644 index 92990a85e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm.go +++ /dev/null @@ -1,11 +0,0 @@ -package lb - -type Lbwlm struct { - Ipaddress string `json:"ipaddress,omitempty"` - Katimeout int `json:"katimeout,omitempty"` - Lbuid string `json:"lbuid,omitempty"` - Port int `json:"port,omitempty"` - Secure string `json:"secure,omitempty"` - State string `json:"state,omitempty"` - Wlmname string `json:"wlmname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_binding.go deleted file mode 100644 index 14a72216c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package lb - -type Lbwlmbinding struct { - Wlmname string `json:"wlmname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_lbvserver_binding.go deleted file mode 100644 index f9d0b5003..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/lb/lbwlm_lbvserver_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package lb - -type Lbwlmlbvserverbinding struct { - Vservername string `json:"vservername,omitempty"` - Wlmname string `json:"wlmname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/Interface.go b/vendor/github.com/chiradeep/go-nitro/config/network/Interface.go deleted file mode 100644 index 9d3714b7a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/Interface.go +++ /dev/null @@ -1,115 +0,0 @@ -package network - -type Interface struct { - Actduplex string `json:"actduplex,omitempty"` - Actflowctl string `json:"actflowctl,omitempty"` - Actmedia string `json:"actmedia,omitempty"` - Actspeed string `json:"actspeed,omitempty"` - Actthroughput int `json:"actthroughput,omitempty"` - Actualmtu int `json:"actualmtu,omitempty"` - Actualringsize int `json:"actualringsize,omitempty"` - Autoneg string `json:"autoneg,omitempty"` - Autonegresult int `json:"autonegresult,omitempty"` - Backplane string `json:"backplane,omitempty"` - Bandwidthhigh int `json:"bandwidthhigh,omitempty"` - Bandwidthnormal int `json:"bandwidthnormal,omitempty"` - Bdgmacmoved int `json:"bdgmacmoved,omitempty"` - Bdgmuted int `json:"bdgmuted,omitempty"` - Cleartime int `json:"cleartime,omitempty"` - Description string `json:"description,omitempty"` - Devicename string `json:"devicename,omitempty"` - Downtime int `json:"downtime,omitempty"` - Duplex string `json:"duplex,omitempty"` - Fctls int `json:"fctls,omitempty"` - Flags int `json:"flags,omitempty"` - Flowctl string `json:"flowctl,omitempty"` - Haheartbeat string `json:"haheartbeat,omitempty"` - Hamonitor string `json:"hamonitor,omitempty"` - Hangdetect int `json:"hangdetect,omitempty"` - Hangreset int `json:"hangreset,omitempty"` - Hangs int `json:"hangs,omitempty"` - Id string `json:"id,omitempty"` - Ifalias string `json:"ifalias,omitempty"` - Ifnum interface{} `json:"ifnum,omitempty"` - Indisc int `json:"indisc,omitempty"` - Intfstate int `json:"intfstate,omitempty"` - Intftype string `json:"intftype,omitempty"` - Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` - Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` - Lacpactordistributing string `json:"lacpactordistributing,omitempty"` - Lacpactorinsync string `json:"lacpactorinsync,omitempty"` - Lacpactormode string `json:"lacpactormode,omitempty"` - Lacpactorportno int `json:"lacpactorportno,omitempty"` - Lacpactorpriority int `json:"lacpactorpriority,omitempty"` - Lacpactortimeout string `json:"lacpactortimeout,omitempty"` - Lacpkey int `json:"lacpkey,omitempty"` - Lacpmode string `json:"lacpmode,omitempty"` - Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` - Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` - Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` - Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` - Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` - Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` - Lacppartnerkey int `json:"lacppartnerkey,omitempty"` - Lacppartnerportno int `json:"lacppartnerportno,omitempty"` - Lacppartnerpriority int `json:"lacppartnerpriority,omitempty"` - Lacppartnerstate string `json:"lacppartnerstate,omitempty"` - Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` - Lacppartnersystempriority int `json:"lacppartnersystempriority,omitempty"` - Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` - Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` - Lacpportrxstat string `json:"lacpportrxstat,omitempty"` - Lacpportselectstate string `json:"lacpportselectstate,omitempty"` - Lacppriority int `json:"lacppriority,omitempty"` - Lacptimeout string `json:"lacptimeout,omitempty"` - Lagtype string `json:"lagtype,omitempty"` - Linkredundancy string `json:"linkredundancy,omitempty"` - Linkstate int `json:"linkstate,omitempty"` - Lldpmode string `json:"lldpmode,omitempty"` - Lractiveintf bool `json:"lractiveintf,omitempty"` - Lrsetpriority int `json:"lrsetpriority,omitempty"` - Mac string `json:"mac,omitempty"` - Mode string `json:"mode,omitempty"` - Mtu int `json:"mtu,omitempty"` - Outdisc int `json:"outdisc,omitempty"` - Reqduplex string `json:"reqduplex,omitempty"` - Reqflowcontrol string `json:"reqflowcontrol,omitempty"` - Reqmedia string `json:"reqmedia,omitempty"` - Reqspeed string `json:"reqspeed,omitempty"` - Reqthroughput int `json:"reqthroughput,omitempty"` - Ringsize int `json:"ringsize,omitempty"` - Ringtype string `json:"ringtype,omitempty"` - Rxbytes int `json:"rxbytes,omitempty"` - Rxdrops int `json:"rxdrops,omitempty"` - Rxerrors int `json:"rxerrors,omitempty"` - Rxpackets int `json:"rxpackets,omitempty"` - Rxstalls int `json:"rxstalls,omitempty"` - Slaveduplex int `json:"slaveduplex,omitempty"` - Slaveflowctl int `json:"slaveflowctl,omitempty"` - Slavemedia int `json:"slavemedia,omitempty"` - Slavespeed int `json:"slavespeed,omitempty"` - Slavestate int `json:"slavestate,omitempty"` - Slavetime int `json:"slavetime,omitempty"` - Speed string `json:"speed,omitempty"` - State string `json:"state,omitempty"` - Stsstalls int `json:"stsstalls,omitempty"` - Svmcmd int `json:"svmcmd,omitempty"` - Tagall string `json:"tagall,omitempty"` - Tagged int `json:"tagged,omitempty"` - Taggedany int `json:"taggedany,omitempty"` - Taggedautolearn int `json:"taggedautolearn,omitempty"` - Throughput int `json:"throughput,omitempty"` - Trunk string `json:"trunk,omitempty"` - Trunkallowedvlan interface{} `json:"trunkallowedvlan,omitempty"` - Trunkmode string `json:"trunkmode,omitempty"` - Txbytes int `json:"txbytes,omitempty"` - Txdrops int `json:"txdrops,omitempty"` - Txerrors int `json:"txerrors,omitempty"` - Txpackets int `json:"txpackets,omitempty"` - Txstalls int `json:"txstalls,omitempty"` - Unit int `json:"unit,omitempty"` - Uptime int `json:"uptime,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vmac string `json:"vmac,omitempty"` - Vmac6 string `json:"vmac6,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/appalgparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/appalgparam.go deleted file mode 100644 index cc19ce978..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/appalgparam.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Appalgparam struct { - Pptpgreidletimeout int `json:"pptpgreidletimeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/arp.go b/vendor/github.com/chiradeep/go-nitro/config/network/arp.go deleted file mode 100644 index 87249ba99..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/arp.go +++ /dev/null @@ -1,20 +0,0 @@ -package network - -type Arp struct { - All bool `json:"all,omitempty"` - Channel int `json:"channel,omitempty"` - Controlplane bool `json:"controlplane,omitempty"` - Flags int `json:"flags,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Mac string `json:"mac,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - State int `json:"state,omitempty"` - Td int `json:"td,omitempty"` - Timeout int `json:"timeout,omitempty"` - Type string `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vtep string `json:"vtep,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/arpparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/arpparam.go deleted file mode 100644 index cdf1b9b59..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/arpparam.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Arpparam struct { - Spoofvalidation string `json:"spoofvalidation,omitempty"` - Timeout int `json:"timeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup.go deleted file mode 100644 index 62d6a4c0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup.go +++ /dev/null @@ -1,14 +0,0 @@ -package network - -type Bridgegroup struct { - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Flags bool `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Portbitmap int `json:"portbitmap,omitempty"` - Rnat bool `json:"rnat,omitempty"` - Tagbitmap int `json:"tagbitmap,omitempty"` - Tagifaces string `json:"tagifaces,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_binding.go deleted file mode 100644 index 537d5bb07..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Bridgegroupbinding struct { - Id int `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip6_binding.go deleted file mode 100644 index 0f2889e62..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip6_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package network - -type Bridgegroupnsip6binding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Rnat bool `json:"rnat,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip_binding.go deleted file mode 100644 index 0cbb0283b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_nsip_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package network - -type Bridgegroupnsipbinding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Rnat bool `json:"rnat,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_vlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_vlan_binding.go deleted file mode 100644 index 1b49d90cc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgegroup_vlan_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Bridgegroupvlanbinding struct { - Id int `json:"id,omitempty"` - Rnat bool `json:"rnat,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/bridgetable.go b/vendor/github.com/chiradeep/go-nitro/config/network/bridgetable.go deleted file mode 100644 index 6c252fd3a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/bridgetable.go +++ /dev/null @@ -1,17 +0,0 @@ -package network - -type Bridgetable struct { - Bridgeage int `json:"bridgeage,omitempty"` - Channel int `json:"channel,omitempty"` - Controlplane bool `json:"controlplane,omitempty"` - Devicevlan int `json:"devicevlan,omitempty"` - Flags int `json:"flags,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Mac string `json:"mac,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Type string `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vni int `json:"vni,omitempty"` - Vtep string `json:"vtep,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/channel.go b/vendor/github.com/chiradeep/go-nitro/config/network/channel.go deleted file mode 100644 index 0c88d0407..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/channel.go +++ /dev/null @@ -1,98 +0,0 @@ -package network - -type Channel struct { - Actflowctl string `json:"actflowctl,omitempty"` - Actspeed string `json:"actspeed,omitempty"` - Actthroughput int `json:"actthroughput,omitempty"` - Actualmtu int `json:"actualmtu,omitempty"` - Autoneg int `json:"autoneg,omitempty"` - Autonegresult int `json:"autonegresult,omitempty"` - Backplane string `json:"backplane,omitempty"` - Bandwidthhigh int `json:"bandwidthhigh,omitempty"` - Bandwidthnormal int `json:"bandwidthnormal,omitempty"` - Bdgmuted int `json:"bdgmuted,omitempty"` - Cleartime int `json:"cleartime,omitempty"` - Conndistr string `json:"conndistr,omitempty"` - Description string `json:"description,omitempty"` - Devicename string `json:"devicename,omitempty"` - Downtime int `json:"downtime,omitempty"` - Duplex string `json:"duplex,omitempty"` - Fctls int `json:"fctls,omitempty"` - Flags int `json:"flags,omitempty"` - Flowctl string `json:"flowctl,omitempty"` - Haheartbeat string `json:"haheartbeat,omitempty"` - Hamonitor string `json:"hamonitor,omitempty"` - Hangdetect int `json:"hangdetect,omitempty"` - Hangreset int `json:"hangreset,omitempty"` - Hangs int `json:"hangs,omitempty"` - Id string `json:"id,omitempty"` - Ifalias string `json:"ifalias,omitempty"` - Ifnum interface{} `json:"ifnum,omitempty"` - Indisc int `json:"indisc,omitempty"` - Intfstate int `json:"intfstate,omitempty"` - Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` - Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` - Lacpactordistributing string `json:"lacpactordistributing,omitempty"` - Lacpactorinsync string `json:"lacpactorinsync,omitempty"` - Lacpactorportno int `json:"lacpactorportno,omitempty"` - Lacpactorpriority int `json:"lacpactorpriority,omitempty"` - Lacpmode string `json:"lacpmode,omitempty"` - Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` - Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` - Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` - Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` - Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` - Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` - Lacppartnerkey int `json:"lacppartnerkey,omitempty"` - Lacppartnerportno int `json:"lacppartnerportno,omitempty"` - Lacppartnerpriority int `json:"lacppartnerpriority,omitempty"` - Lacppartnerstate string `json:"lacppartnerstate,omitempty"` - Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` - Lacppartnersystempriority int `json:"lacppartnersystempriority,omitempty"` - Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` - Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` - Lacpportrxstat string `json:"lacpportrxstat,omitempty"` - Lacpportselectstate string `json:"lacpportselectstate,omitempty"` - Lacptimeout string `json:"lacptimeout,omitempty"` - Lamac string `json:"lamac,omitempty"` - Lamode string `json:"lamode,omitempty"` - Linkredundancy string `json:"linkredundancy,omitempty"` - Linkstate int `json:"linkstate,omitempty"` - Lldpmode string `json:"lldpmode,omitempty"` - Lrminthroughput int `json:"lrminthroughput,omitempty"` - Mac string `json:"mac,omitempty"` - Macdistr string `json:"macdistr,omitempty"` - Media string `json:"media,omitempty"` - Mode string `json:"mode,omitempty"` - Mtu int `json:"mtu,omitempty"` - Outdisc int `json:"outdisc,omitempty"` - Reqduplex string `json:"reqduplex,omitempty"` - Reqflowcontrol string `json:"reqflowcontrol,omitempty"` - Reqmedia string `json:"reqmedia,omitempty"` - Reqspeed string `json:"reqspeed,omitempty"` - Reqthroughput int `json:"reqthroughput,omitempty"` - Rxbytes int `json:"rxbytes,omitempty"` - Rxdrops int `json:"rxdrops,omitempty"` - Rxerrors int `json:"rxerrors,omitempty"` - Rxpackets int `json:"rxpackets,omitempty"` - Rxstalls int `json:"rxstalls,omitempty"` - Speed string `json:"speed,omitempty"` - State string `json:"state,omitempty"` - Stsstalls int `json:"stsstalls,omitempty"` - Tagall string `json:"tagall,omitempty"` - Tagged int `json:"tagged,omitempty"` - Taggedany int `json:"taggedany,omitempty"` - Taggedautolearn int `json:"taggedautolearn,omitempty"` - Throughput int `json:"throughput,omitempty"` - Trunk string `json:"trunk,omitempty"` - Txbytes int `json:"txbytes,omitempty"` - Txdrops int `json:"txdrops,omitempty"` - Txerrors int `json:"txerrors,omitempty"` - Txpackets int `json:"txpackets,omitempty"` - Txstalls int `json:"txstalls,omitempty"` - Unit int `json:"unit,omitempty"` - Uptime int `json:"uptime,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vmac string `json:"vmac,omitempty"` - Vmac6 string `json:"vmac6,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/channel_binding.go deleted file mode 100644 index d981e31c2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/channel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Channelbinding struct { - Id string `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/channel_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/channel_interface_binding.go deleted file mode 100644 index ae8b3182e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/channel_interface_binding.go +++ /dev/null @@ -1,15 +0,0 @@ -package network - -type Channelinterfacebinding struct { - Id string `json:"id,omitempty"` - Ifnum interface{} `json:"ifnum,omitempty"` - Lamode string `json:"lamode,omitempty"` - Lractiveintf bool `json:"lractiveintf,omitempty"` - Slaveduplex int `json:"slaveduplex,omitempty"` - Slaveflowctl int `json:"slaveflowctl,omitempty"` - Slavemedia int `json:"slavemedia,omitempty"` - Slavespeed int `json:"slavespeed,omitempty"` - Slavestate int `json:"slavestate,omitempty"` - Slavetime int `json:"slavetime,omitempty"` - Svmcmd int `json:"svmcmd,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ci.go b/vendor/github.com/chiradeep/go-nitro/config/network/ci.go deleted file mode 100644 index 302bfda92..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ci.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Ci struct { - Ifaces string `json:"ifaces,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/fis.go b/vendor/github.com/chiradeep/go-nitro/config/network/fis.go deleted file mode 100644 index a6e15b010..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/fis.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Fis struct { - Ifaces string `json:"ifaces,omitempty"` - Name string `json:"name,omitempty"` - Ownernode int `json:"ownernode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/fis_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/fis_binding.go deleted file mode 100644 index f446564c0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/fis_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Fisbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/fis_channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/fis_channel_binding.go deleted file mode 100644 index 1ac357ccc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/fis_channel_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Fischannelbinding struct { - Ifnum string `json:"ifnum,omitempty"` - Name string `json:"name,omitempty"` - Ownernode int `json:"ownernode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/fis_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/fis_interface_binding.go deleted file mode 100644 index 35a886bfd..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/fis_interface_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Fisinterfacebinding struct { - Ifnum string `json:"ifnum,omitempty"` - Name string `json:"name,omitempty"` - Ownernode int `json:"ownernode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/forwardingsession.go b/vendor/github.com/chiradeep/go-nitro/config/network/forwardingsession.go deleted file mode 100644 index dc9252c57..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/forwardingsession.go +++ /dev/null @@ -1,13 +0,0 @@ -package network - -type Forwardingsession struct { - Acl6name string `json:"acl6name,omitempty"` - Aclname string `json:"aclname,omitempty"` - Connfailover string `json:"connfailover,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` - Processlocal string `json:"processlocal,omitempty"` - Sourceroutecache string `json:"sourceroutecache,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/inat.go b/vendor/github.com/chiradeep/go-nitro/config/network/inat.go deleted file mode 100644 index cf26b4691..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/inat.go +++ /dev/null @@ -1,17 +0,0 @@ -package network - -type Inat struct { - Flags int `json:"flags,omitempty"` - Ftp string `json:"ftp,omitempty"` - Mode string `json:"mode,omitempty"` - Name string `json:"name,omitempty"` - Privateip string `json:"privateip,omitempty"` - Proxyip string `json:"proxyip,omitempty"` - Publicip string `json:"publicip,omitempty"` - Tcpproxy string `json:"tcpproxy,omitempty"` - Td int `json:"td,omitempty"` - Tftp string `json:"tftp,omitempty"` - Useproxyport string `json:"useproxyport,omitempty"` - Usip string `json:"usip,omitempty"` - Usnip string `json:"usnip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/inatparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/inatparam.go deleted file mode 100644 index 30f004cfa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/inatparam.go +++ /dev/null @@ -1,10 +0,0 @@ -package network - -type Inatparam struct { - Nat46fragheader string `json:"nat46fragheader,omitempty"` - Nat46ignoretos string `json:"nat46ignoretos,omitempty"` - Nat46v6mtu int `json:"nat46v6mtu,omitempty"` - Nat46v6prefix string `json:"nat46v6prefix,omitempty"` - Nat46zerochecksum string `json:"nat46zerochecksum,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/interfacepair.go b/vendor/github.com/chiradeep/go-nitro/config/network/interfacepair.go deleted file mode 100644 index dfee1c707..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/interfacepair.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Interfacepair struct { - Id int `json:"id,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Ifnum interface{} `json:"ifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnel.go b/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnel.go deleted file mode 100644 index 025cfb8c6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnel.go +++ /dev/null @@ -1,11 +0,0 @@ -package network - -type Ip6tunnel struct { - Encapip string `json:"encapip,omitempty"` - Local string `json:"local,omitempty"` - Name string `json:"name,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Remote string `json:"remote,omitempty"` - Remoteip string `json:"remoteip,omitempty"` - Type int `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnelparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnelparam.go deleted file mode 100644 index e2fe7272b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ip6tunnelparam.go +++ /dev/null @@ -1,9 +0,0 @@ -package network - -type Ip6tunnelparam struct { - Dropfrag string `json:"dropfrag,omitempty"` - Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` - Srcip string `json:"srcip,omitempty"` - Srciproundrobin string `json:"srciproundrobin,omitempty"` - Useclientsourceipv6 string `json:"useclientsourceipv6,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ipset.go b/vendor/github.com/chiradeep/go-nitro/config/network/ipset.go deleted file mode 100644 index f4accd70e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ipset.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Ipset struct { - Name string `json:"name,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/ipset_binding.go deleted file mode 100644 index 82b9c82e1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Ipsetbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip6_binding.go deleted file mode 100644 index eabfeb937..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip6_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Ipsetnsip6binding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip_binding.go deleted file mode 100644 index dbdaf29f1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ipset_nsip_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Ipsetnsipbinding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/iptunnel.go b/vendor/github.com/chiradeep/go-nitro/config/network/iptunnel.go deleted file mode 100644 index 6f5adf2ce..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/iptunnel.go +++ /dev/null @@ -1,20 +0,0 @@ -package network - -type Iptunnel struct { - Channel int `json:"channel,omitempty"` - Encapip string `json:"encapip,omitempty"` - Grepayload string `json:"grepayload,omitempty"` - Ipsecprofilename string `json:"ipsecprofilename,omitempty"` - Ipsectunnelstatus string `json:"ipsectunnelstatus,omitempty"` - Local string `json:"local,omitempty"` - Name string `json:"name,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Protocol string `json:"protocol,omitempty"` - Refcnt int `json:"refcnt,omitempty"` - Remote string `json:"remote,omitempty"` - Remotesubnetmask string `json:"remotesubnetmask,omitempty"` - Sysname string `json:"sysname,omitempty"` - Tunneltype interface{} `json:"tunneltype,omitempty"` - Type int `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/iptunnelparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/iptunnelparam.go deleted file mode 100644 index 333a6c784..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/iptunnelparam.go +++ /dev/null @@ -1,12 +0,0 @@ -package network - -type Iptunnelparam struct { - Dropfrag string `json:"dropfrag,omitempty"` - Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` - Enablestrictrx string `json:"enablestrictrx,omitempty"` - Enablestricttx string `json:"enablestricttx,omitempty"` - Mac string `json:"mac,omitempty"` - Srcip string `json:"srcip,omitempty"` - Srciproundrobin string `json:"srciproundrobin,omitempty"` - Useclientsourceip string `json:"useclientsourceip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ipv6.go b/vendor/github.com/chiradeep/go-nitro/config/network/ipv6.go deleted file mode 100644 index f51cd7a7b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ipv6.go +++ /dev/null @@ -1,16 +0,0 @@ -package network - -type Ipv6 struct { - Basereachtime int `json:"basereachtime,omitempty"` - Dodad string `json:"dodad,omitempty"` - Natprefix string `json:"natprefix,omitempty"` - Ndbasereachtime int `json:"ndbasereachtime,omitempty"` - Ndreachtime int `json:"ndreachtime,omitempty"` - Ndretransmissiontime int `json:"ndretransmissiontime,omitempty"` - Ralearning string `json:"ralearning,omitempty"` - Reachtime int `json:"reachtime,omitempty"` - Retransmissiontime int `json:"retransmissiontime,omitempty"` - Routerredirection string `json:"routerredirection,omitempty"` - Td int `json:"td,omitempty"` - Usipnatprefix string `json:"usipnatprefix,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/l2param.go b/vendor/github.com/chiradeep/go-nitro/config/network/l2param.go deleted file mode 100644 index de10a3505..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/l2param.go +++ /dev/null @@ -1,19 +0,0 @@ -package network - -type L2param struct { - Bdggrpproxyarp string `json:"bdggrpproxyarp,omitempty"` - Bdgsetting string `json:"bdgsetting,omitempty"` - Bridgeagetimeout int `json:"bridgeagetimeout,omitempty"` - Garponvridintf string `json:"garponvridintf,omitempty"` - Garpreply string `json:"garpreply,omitempty"` - Macmodefwdmypkt string `json:"macmodefwdmypkt,omitempty"` - Maxbridgecollision int `json:"maxbridgecollision,omitempty"` - Mbfinstlearning string `json:"mbfinstlearning,omitempty"` - Mbfpeermacupdate int `json:"mbfpeermacupdate,omitempty"` - Proxyarp string `json:"proxyarp,omitempty"` - Returntoethernetsender string `json:"returntoethernetsender,omitempty"` - Rstintfonhafo string `json:"rstintfonhafo,omitempty"` - Skipproxyingbsdtraffic string `json:"skipproxyingbsdtraffic,omitempty"` - Stopmacmoveupdate string `json:"stopmacmoveupdate,omitempty"` - Usemymac string `json:"usemymac,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/l3param.go b/vendor/github.com/chiradeep/go-nitro/config/network/l3param.go deleted file mode 100644 index effb2eb3b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/l3param.go +++ /dev/null @@ -1,19 +0,0 @@ -package network - -type L3param struct { - Acllogtime int `json:"acllogtime,omitempty"` - Allowclasseipv4 string `json:"allowclasseipv4,omitempty"` - Dropdfflag string `json:"dropdfflag,omitempty"` - Dropipfragments string `json:"dropipfragments,omitempty"` - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Externalloopback string `json:"externalloopback,omitempty"` - Forwardicmpfragments string `json:"forwardicmpfragments,omitempty"` - Icmpgenratethreshold int `json:"icmpgenratethreshold,omitempty"` - Implicitaclallow string `json:"implicitaclallow,omitempty"` - Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` - Miproundrobin string `json:"miproundrobin,omitempty"` - Overridernat string `json:"overridernat,omitempty"` - Srcnat string `json:"srcnat,omitempty"` - Tnlpmtuwoconn string `json:"tnlpmtuwoconn,omitempty"` - Usipserverstraypkt string `json:"usipserverstraypkt,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/l4param.go b/vendor/github.com/chiradeep/go-nitro/config/network/l4param.go deleted file mode 100644 index 8c555694b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/l4param.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type L4param struct { - L2connmethod string `json:"l2connmethod,omitempty"` - L4switch string `json:"l4switch,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/lacp.go b/vendor/github.com/chiradeep/go-nitro/config/network/lacp.go deleted file mode 100644 index d9f51773a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/lacp.go +++ /dev/null @@ -1,12 +0,0 @@ -package network - -type Lacp struct { - Clustermac string `json:"clustermac,omitempty"` - Clustersyspriority int `json:"clustersyspriority,omitempty"` - Devicename string `json:"devicename,omitempty"` - Flags int `json:"flags,omitempty"` - Lacpkey int `json:"lacpkey,omitempty"` - Mac string `json:"mac,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Syspriority int `json:"syspriority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/linkset.go b/vendor/github.com/chiradeep/go-nitro/config/network/linkset.go deleted file mode 100644 index 4b9383165..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/linkset.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Linkset struct { - Id string `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/linkset_binding.go deleted file mode 100644 index b142d2956..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Linksetbinding struct { - Id string `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/linkset_channel_binding.go deleted file mode 100644 index 0b153e221..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_channel_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Linksetchannelbinding struct { - Id string `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/linkset_interface_binding.go deleted file mode 100644 index bf274142c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/linkset_interface_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Linksetinterfacebinding struct { - Id string `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr.go deleted file mode 100644 index fb1ab2d06..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr.go +++ /dev/null @@ -1,9 +0,0 @@ -package network - -type Mapbmr struct { - Eabitlength int `json:"eabitlength,omitempty"` - Name string `json:"name,omitempty"` - Psidlength int `json:"psidlength,omitempty"` - Psidoffset int `json:"psidoffset,omitempty"` - Ruleipv6prefix string `json:"ruleipv6prefix,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_binding.go deleted file mode 100644 index 47336a85a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Mapbmrbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_bmrv4network_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_bmrv4network_binding.go deleted file mode 100644 index c2bea3967..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapbmr_bmrv4network_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Mapbmrbmrv4networkbinding struct { - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapdmr.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapdmr.go deleted file mode 100644 index d28511b65..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapdmr.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Mapdmr struct { - Bripv6prefix string `json:"bripv6prefix,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain.go deleted file mode 100644 index 3e52c9a8d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Mapdomain struct { - Mapdmrname string `json:"mapdmrname,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_binding.go deleted file mode 100644 index 32a682033..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Mapdomainbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_mapbmr_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_mapbmr_binding.go deleted file mode 100644 index 6eb504829..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/mapdomain_mapbmr_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Mapdomainmapbmrbinding struct { - Mapbmrname string `json:"mapbmrname,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nat64.go b/vendor/github.com/chiradeep/go-nitro/config/network/nat64.go deleted file mode 100644 index 8c3b739b9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nat64.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Nat64 struct { - Acl6name string `json:"acl6name,omitempty"` - Name string `json:"name,omitempty"` - Netprofile string `json:"netprofile,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nat64param.go b/vendor/github.com/chiradeep/go-nitro/config/network/nat64param.go deleted file mode 100644 index e5ebd0be2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nat64param.go +++ /dev/null @@ -1,9 +0,0 @@ -package network - -type Nat64param struct { - Nat64fragheader string `json:"nat64fragheader,omitempty"` - Nat64ignoretos string `json:"nat64ignoretos,omitempty"` - Nat64v6mtu int `json:"nat64v6mtu,omitempty"` - Nat64zerochecksum string `json:"nat64zerochecksum,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nd6.go b/vendor/github.com/chiradeep/go-nitro/config/network/nd6.go deleted file mode 100644 index 89fd002f3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nd6.go +++ /dev/null @@ -1,17 +0,0 @@ -package network - -type Nd6 struct { - Channel int `json:"channel,omitempty"` - Controlplane bool `json:"controlplane,omitempty"` - Flags int `json:"flags,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Mac string `json:"mac,omitempty"` - Neighbor string `json:"neighbor,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - State string `json:"state,omitempty"` - Td int `json:"td,omitempty"` - Timeout int `json:"timeout,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vtep string `json:"vtep,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables.go b/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables.go deleted file mode 100644 index 5e2cacc7d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables.go +++ /dev/null @@ -1,20 +0,0 @@ -package network - -type Nd6ravariables struct { - Ceaserouteradv string `json:"ceaserouteradv,omitempty"` - Currhoplimit int `json:"currhoplimit,omitempty"` - Defaultlifetime int `json:"defaultlifetime,omitempty"` - Lastrtadvtime int `json:"lastrtadvtime,omitempty"` - Linkmtu int `json:"linkmtu,omitempty"` - Managedaddrconfig string `json:"managedaddrconfig,omitempty"` - Maxrtadvinterval int `json:"maxrtadvinterval,omitempty"` - Minrtadvinterval int `json:"minrtadvinterval,omitempty"` - Nextrtadvdelay int `json:"nextrtadvdelay,omitempty"` - Onlyunicastrtadvresponse string `json:"onlyunicastrtadvresponse,omitempty"` - Otheraddrconfig string `json:"otheraddrconfig,omitempty"` - Reachabletime int `json:"reachabletime,omitempty"` - Retranstime int `json:"retranstime,omitempty"` - Sendrouteradv string `json:"sendrouteradv,omitempty"` - Srclinklayeraddroption string `json:"srclinklayeraddroption,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_binding.go deleted file mode 100644 index 4262f3d4e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Nd6ravariablesbinding struct { - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_onlinkipv6prefix_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_onlinkipv6prefix_binding.go deleted file mode 100644 index d67d8e461..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/nd6ravariables_onlinkipv6prefix_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Nd6ravariablesonlinkipv6prefixbinding struct { - Ipv6prefix string `json:"ipv6prefix,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge.go deleted file mode 100644 index 0ac79592b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Netbridge struct { - Name string `json:"name,omitempty"` - Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_binding.go deleted file mode 100644 index 5e0f6bceb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Netbridgebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_iptunnel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_iptunnel_binding.go deleted file mode 100644 index 102474e2f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_iptunnel_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Netbridgeiptunnelbinding struct { - Name string `json:"name,omitempty"` - Tunnel string `json:"tunnel,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip6_binding.go deleted file mode 100644 index 773e5eda1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip6_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Netbridgensip6binding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip_binding.go deleted file mode 100644 index 1f868a5b6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_nsip_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Netbridgensipbinding struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Netmask string `json:"netmask,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_vlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_vlan_binding.go deleted file mode 100644 index cc94380bc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netbridge_vlan_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Netbridgevlanbinding struct { - Name string `json:"name,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile.go b/vendor/github.com/chiradeep/go-nitro/config/network/netprofile.go deleted file mode 100644 index db2526c1f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile.go +++ /dev/null @@ -1,12 +0,0 @@ -package network - -type Netprofile struct { - Mbf string `json:"mbf,omitempty"` - Name string `json:"name,omitempty"` - Overridelsn string `json:"overridelsn,omitempty"` - Proxyprotocol string `json:"proxyprotocol,omitempty"` - Proxyprotocoltxversion string `json:"proxyprotocoltxversion,omitempty"` - Srcip string `json:"srcip,omitempty"` - Srcippersistency string `json:"srcippersistency,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_binding.go deleted file mode 100644 index a0864414d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Netprofilebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_natrule_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_natrule_binding.go deleted file mode 100644 index ea759edd5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_natrule_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Netprofilenatrulebinding struct { - Name string `json:"name,omitempty"` - Natrule string `json:"natrule,omitempty"` - Netmask string `json:"netmask,omitempty"` - Rewriteip string `json:"rewriteip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_srcportset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_srcportset_binding.go deleted file mode 100644 index a45287f8a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/netprofile_srcportset_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Netprofilesrcportsetbinding struct { - Name string `json:"name,omitempty"` - Srcportrange string `json:"srcportrange,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/onlinkipv6prefix.go b/vendor/github.com/chiradeep/go-nitro/config/network/onlinkipv6prefix.go deleted file mode 100644 index e2c1bcd55..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/onlinkipv6prefix.go +++ /dev/null @@ -1,13 +0,0 @@ -package network - -type Onlinkipv6prefix struct { - Autonomusprefix string `json:"autonomusprefix,omitempty"` - Decrementprefixlifetimes string `json:"decrementprefixlifetimes,omitempty"` - Depricateprefix string `json:"depricateprefix,omitempty"` - Ipv6prefix string `json:"ipv6prefix,omitempty"` - Onlinkprefix string `json:"onlinkprefix,omitempty"` - Prefixcurrpreferredlft int `json:"prefixcurrpreferredlft,omitempty"` - Prefixcurrvalidelft int `json:"prefixcurrvalidelft,omitempty"` - Prefixpreferredlifetime int `json:"prefixpreferredlifetime,omitempty"` - Prefixvalidelifetime int `json:"prefixvalidelifetime,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/ptp.go b/vendor/github.com/chiradeep/go-nitro/config/network/ptp.go deleted file mode 100644 index 63875cd93..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/ptp.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Ptp struct { - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat.go deleted file mode 100644 index a15642d5d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat.go +++ /dev/null @@ -1,16 +0,0 @@ -package network - -type Rnat struct { - Aclname string `json:"aclname,omitempty"` - Connfailover string `json:"connfailover,omitempty"` - Name string `json:"name,omitempty"` - Natip string `json:"natip,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` - Newname string `json:"newname,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Redirectport int `json:"redirectport,omitempty"` - Srcippersistency string `json:"srcippersistency,omitempty"` - Td int `json:"td,omitempty"` - Useproxyport string `json:"useproxyport,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat6.go deleted file mode 100644 index 9b4b7d3f9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6.go +++ /dev/null @@ -1,11 +0,0 @@ -package network - -type Rnat6 struct { - Acl6name string `json:"acl6name,omitempty"` - Name string `json:"name,omitempty"` - Network string `json:"network,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Redirectport int `json:"redirectport,omitempty"` - Srcippersistency string `json:"srcippersistency,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_binding.go deleted file mode 100644 index 870a2d453..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Rnat6binding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_nsip6_binding.go deleted file mode 100644 index e77ccf4a4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat6_nsip6_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Rnat6nsip6binding struct { - Name string `json:"name,omitempty"` - Natip6 string `json:"natip6,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat_binding.go deleted file mode 100644 index 685ac067c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Rnatbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat_nsip_binding.go deleted file mode 100644 index 539720d89..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_nsip_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Rnatnsipbinding struct { - Name string `json:"name,omitempty"` - Natip string `json:"natip,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_retainsourceportset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnat_retainsourceportset_binding.go deleted file mode 100644 index 044c417ee..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnat_retainsourceportset_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Rnatretainsourceportsetbinding struct { - Name string `json:"name,omitempty"` - Retainsourceportrange string `json:"retainsourceportrange,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_auditsyslogpolicy_binding.go deleted file mode 100644 index 13de28c32..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Rnatglobalauditsyslogpolicybinding struct { - All bool `json:"all,omitempty"` - Policy string `json:"policy,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_binding.go deleted file mode 100644 index 1ae2e9d50..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnatglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package network diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnatparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnatparam.go deleted file mode 100644 index bd72df7e1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnatparam.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Rnatparam struct { - Srcippersistency string `json:"srcippersistency,omitempty"` - Tcpproxy string `json:"tcpproxy,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rnatsession.go b/vendor/github.com/chiradeep/go-nitro/config/network/rnatsession.go deleted file mode 100644 index 79878a5e2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rnatsession.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Rnatsession struct { - Aclname string `json:"aclname,omitempty"` - Natip string `json:"natip,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/route.go b/vendor/github.com/chiradeep/go-nitro/config/network/route.go deleted file mode 100644 index 01e320d8a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/route.go +++ /dev/null @@ -1,52 +0,0 @@ -package network - -type Route struct { - Adv bool `json:"adv,omitempty"` - Advbgp bool `json:"advbgp,omitempty"` - Advertise string `json:"advertise,omitempty"` - Advisis bool `json:"advisis,omitempty"` - Advospf bool `json:"advospf,omitempty"` - Advrip bool `json:"advrip,omitempty"` - Bgp bool `json:"bgp,omitempty"` - Cost int `json:"cost,omitempty"` - Cost1 int `json:"cost1,omitempty"` - Data bool `json:"data,omitempty"` - Data0 bool `json:"data0,omitempty"` - Detail bool `json:"detail,omitempty"` - Dhcp bool `json:"dhcp,omitempty"` - Direct bool `json:"direct,omitempty"` - Distance int `json:"distance,omitempty"` - Dynamic bool `json:"dynamic,omitempty"` - Failedprobes int `json:"failedprobes,omitempty"` - Flags bool `json:"flags,omitempty"` - Gateway string `json:"gateway,omitempty"` - Gatewayname string `json:"gatewayname,omitempty"` - Isis bool `json:"isis,omitempty"` - Lbroute bool `json:"lbroute,omitempty"` - Monitor string `json:"monitor,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Msr string `json:"msr,omitempty"` - Nat bool `json:"nat,omitempty"` - Netmask string `json:"netmask,omitempty"` - Network string `json:"network,omitempty"` - Ospf bool `json:"ospf,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Permanent bool `json:"permanent,omitempty"` - Protocol interface{} `json:"protocol,omitempty"` - Retain int `json:"retain,omitempty"` - Rip bool `json:"rip,omitempty"` - Routeowners interface{} `json:"routeowners,omitempty"` - Routetype string `json:"routetype,omitempty"` - State int `json:"state,omitempty"` - Static bool `json:"Static,omitempty"` - Td int `json:"td,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Totalprobes int `json:"totalprobes,omitempty"` - Tunnel bool `json:"tunnel,omitempty"` - Type bool `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/route6.go b/vendor/github.com/chiradeep/go-nitro/config/network/route6.go deleted file mode 100644 index 38920b726..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/route6.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -type Route6 struct { - Active bool `json:"active,omitempty"` - Advertise string `json:"advertise,omitempty"` - Bgp bool `json:"bgp,omitempty"` - Connected bool `json:"connected,omitempty"` - Cost int `json:"cost,omitempty"` - Data bool `json:"data,omitempty"` - Data1 string `json:"data1,omitempty"` - Detail bool `json:"detail,omitempty"` - Distance int `json:"distance,omitempty"` - Dynamic bool `json:"dynamic,omitempty"` - Failedprobes int `json:"failedprobes,omitempty"` - Flags bool `json:"flags,omitempty"` - Gateway string `json:"gateway,omitempty"` - Gatewayname string `json:"gatewayname,omitempty"` - Isis bool `json:"isis,omitempty"` - Monitor string `json:"monitor,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Msr string `json:"msr,omitempty"` - Network string `json:"network,omitempty"` - Ospfv3 bool `json:"ospfv3,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Permanent bool `json:"permanent,omitempty"` - Raroute bool `json:"raroute,omitempty"` - Retain int `json:"retain,omitempty"` - Rip bool `json:"rip,omitempty"` - Routeowners interface{} `json:"routeowners,omitempty"` - Routetype string `json:"routetype,omitempty"` - State int `json:"state,omitempty"` - Static bool `json:"Static,omitempty"` - Td int `json:"td,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Totalprobes int `json:"totalprobes,omitempty"` - Type bool `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` - Weight int `json:"weight,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/rsskeytype.go b/vendor/github.com/chiradeep/go-nitro/config/network/rsskeytype.go deleted file mode 100644 index 74d6930b0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/rsskeytype.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Rsskeytype struct { - Rsstype string `json:"rsstype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan.go deleted file mode 100644 index 33ec7190b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan.go +++ /dev/null @@ -1,24 +0,0 @@ -package network - -type Vlan struct { - Aliasname string `json:"aliasname,omitempty"` - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Id int `json:"id,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` - Linklocalipv6addr string `json:"linklocalipv6addr,omitempty"` - Lsbitmap int `json:"lsbitmap,omitempty"` - Lstagbitmap int `json:"lstagbitmap,omitempty"` - Mtu int `json:"mtu,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Portbitmap int `json:"portbitmap,omitempty"` - Rnat bool `json:"rnat,omitempty"` - Sdxvlan string `json:"sdxvlan,omitempty"` - Sharing string `json:"sharing,omitempty"` - Tagbitmap int `json:"tagbitmap,omitempty"` - Tagged bool `json:"tagged,omitempty"` - Tagifaces string `json:"tagifaces,omitempty"` - Vlantd int `json:"vlantd,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_binding.go deleted file mode 100644 index a00ee91a0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vlanbinding struct { - Id int `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_channel_binding.go deleted file mode 100644 index 2acfd2f6d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_channel_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vlanchannelbinding struct { - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Tagged bool `json:"tagged,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_interface_binding.go deleted file mode 100644 index acd00da38..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_interface_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vlaninterfacebinding struct { - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Tagged bool `json:"tagged,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_linkset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_linkset_binding.go deleted file mode 100644 index 935aa0afb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_linkset_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vlanlinksetbinding struct { - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Tagged bool `json:"tagged,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip6_binding.go deleted file mode 100644 index 768e785a3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip6_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package network - -type Vlannsip6binding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip_binding.go deleted file mode 100644 index d05a934a4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vlan_nsip_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package network - -type Vlannsipbinding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vpath.go b/vendor/github.com/chiradeep/go-nitro/config/network/vpath.go deleted file mode 100644 index f350db8b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vpath.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vpath struct { - Destip string `json:"destip,omitempty"` - Encapmode string `json:"encapmode,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vpathparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/vpathparam.go deleted file mode 100644 index e10ad9d06..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vpathparam.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Vpathparam struct { - Encapmode string `json:"encapmode,omitempty"` - Srcip string `json:"srcip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid.go deleted file mode 100644 index f638469e4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid.go +++ /dev/null @@ -1,20 +0,0 @@ -package network - -type Vrid struct { - All bool `json:"all,omitempty"` - Effectivepriority int `json:"effectivepriority,omitempty"` - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Operationalownernode int `json:"operationalownernode,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Preemption string `json:"preemption,omitempty"` - Preemptiondelaytimer int `json:"preemptiondelaytimer,omitempty"` - Priority int `json:"priority,omitempty"` - Sharing string `json:"sharing,omitempty"` - State int `json:"state,omitempty"` - Trackifnumpriority int `json:"trackifnumpriority,omitempty"` - Tracking string `json:"tracking,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6.go deleted file mode 100644 index e10c5b2f0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6.go +++ /dev/null @@ -1,21 +0,0 @@ -package network - -type Vrid6 struct { - All bool `json:"all,omitempty"` - Effectivepriority int `json:"effectivepriority,omitempty"` - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifaces string `json:"ifaces,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Operationalownernode int `json:"operationalownernode,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Preemption string `json:"preemption,omitempty"` - Preemptiondelaytimer int `json:"preemptiondelaytimer,omitempty"` - Priority int `json:"priority,omitempty"` - Sharing string `json:"sharing,omitempty"` - State int `json:"state,omitempty"` - Trackifnumpriority int `json:"trackifnumpriority,omitempty"` - Tracking string `json:"tracking,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_binding.go deleted file mode 100644 index 633d2a899..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vrid6binding struct { - Id int `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_channel_binding.go deleted file mode 100644 index 419d657b8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_channel_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vrid6channelbinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_interface_binding.go deleted file mode 100644 index 00c73636d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_interface_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vrid6interfacebinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip6_binding.go deleted file mode 100644 index 28108dbaf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip6_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vrid6nsip6binding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip_binding.go deleted file mode 100644 index 04f36f36a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_nsip_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vrid6nsipbinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_trackinterface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_trackinterface_binding.go deleted file mode 100644 index 231d1125b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid6_trackinterface_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vrid6trackinterfacebinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Trackifnum string `json:"trackifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_binding.go deleted file mode 100644 index 394cbfbe7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vridbinding struct { - Id int `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_channel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_channel_binding.go deleted file mode 100644 index 260408d93..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_channel_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vridchannelbinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_interface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_interface_binding.go deleted file mode 100644 index 820ced9da..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_interface_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package network - -type Vridinterfacebinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ifnum string `json:"ifnum,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip6_binding.go deleted file mode 100644 index 47fa41f26..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip6_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vridnsip6binding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip_binding.go deleted file mode 100644 index 80f75acdf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_nsip_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vridnsipbinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_trackinterface_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vrid_trackinterface_binding.go deleted file mode 100644 index dae724049..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vrid_trackinterface_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vridtrackinterfacebinding struct { - Flags int `json:"flags,omitempty"` - Id int `json:"id,omitempty"` - Trackifnum string `json:"trackifnum,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vridparam.go b/vendor/github.com/chiradeep/go-nitro/config/network/vridparam.go deleted file mode 100644 index 3416654c2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vridparam.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vridparam struct { - Deadinterval int `json:"deadinterval,omitempty"` - Hellointerval int `json:"hellointerval,omitempty"` - Sendtomaster string `json:"sendtomaster,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan.go deleted file mode 100644 index cbb0e6dfb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan.go +++ /dev/null @@ -1,14 +0,0 @@ -package network - -type Vxlan struct { - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Id int `json:"id,omitempty"` - Innervlantagging string `json:"innervlantagging,omitempty"` - Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Port int `json:"port,omitempty"` - Protocol string `json:"protocol,omitempty"` - Td int `json:"td,omitempty"` - Type string `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_binding.go deleted file mode 100644 index 6fef3eb04..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vxlanbinding struct { - Id int `json:"id,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_iptunnel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_iptunnel_binding.go deleted file mode 100644 index e03e464d2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_iptunnel_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Vxlaniptunnelbinding struct { - Id int `json:"id,omitempty"` - Tunnel string `json:"tunnel,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip6_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip6_binding.go deleted file mode 100644 index 2fbbae473..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip6_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vxlannsip6binding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip_binding.go deleted file mode 100644 index 95dc446c3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_nsip_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vxlannsipbinding struct { - Id int `json:"id,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_srcip_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_srcip_binding.go deleted file mode 100644 index 376ee9942..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlan_srcip_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package network - -type Vxlansrcipbinding struct { - Id int `json:"id,omitempty"` - Srcip string `json:"srcip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap.go deleted file mode 100644 index 192e53eab..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vxlanvlanmap struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_binding.go deleted file mode 100644 index a0702beb7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package network - -type Vxlanvlanmapbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_vxlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_vxlan_binding.go deleted file mode 100644 index b0deee1a8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/network/vxlanvlanmap_vxlan_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package network - -type Vxlanvlanmapvxlanbinding struct { - Name string `json:"name,omitempty"` - Vlan interface{} `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl.go deleted file mode 100644 index 2bf4bd8a6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl.go +++ /dev/null @@ -1,41 +0,0 @@ -package ns - -type Nsacl struct { - Aclaction string `json:"aclaction,omitempty"` - Aclassociate interface{} `json:"aclassociate,omitempty"` - Aclname string `json:"aclname,omitempty"` - Destip bool `json:"destip,omitempty"` - Destipop string `json:"destipop,omitempty"` - Destipval string `json:"destipval,omitempty"` - Destport bool `json:"destport,omitempty"` - Destportop string `json:"destportop,omitempty"` - Destportval string `json:"destportval,omitempty"` - Dfdhash string `json:"dfdhash,omitempty"` - Established bool `json:"established,omitempty"` - Hits int `json:"hits,omitempty"` - Icmpcode int `json:"icmpcode,omitempty"` - Icmptype int `json:"icmptype,omitempty"` - Interface string `json:"Interface,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` - Logstate string `json:"logstate,omitempty"` - Newname string `json:"newname,omitempty"` - Priority int `json:"priority,omitempty"` - Protocol string `json:"protocol,omitempty"` - Protocolnumber int `json:"protocolnumber,omitempty"` - Ratelimit int `json:"ratelimit,omitempty"` - Srcip bool `json:"srcip,omitempty"` - Srcipop string `json:"srcipop,omitempty"` - Srcipval string `json:"srcipval,omitempty"` - Srcmac string `json:"srcmac,omitempty"` - Srcmacmask string `json:"srcmacmask,omitempty"` - Srcport bool `json:"srcport,omitempty"` - Srcportop string `json:"srcportop,omitempty"` - Srcportval string `json:"srcportval,omitempty"` - State string `json:"state,omitempty"` - Stateful string `json:"stateful,omitempty"` - Td int `json:"td,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl6.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl6.go deleted file mode 100644 index e00bd8484..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacl6.go +++ /dev/null @@ -1,43 +0,0 @@ -package ns - -type Nsacl6 struct { - Acl6action string `json:"acl6action,omitempty"` - Acl6name string `json:"acl6name,omitempty"` - Aclaction string `json:"aclaction,omitempty"` - Aclassociate interface{} `json:"aclassociate,omitempty"` - Destipop string `json:"destipop,omitempty"` - Destipv6 bool `json:"destipv6,omitempty"` - Destipv6val string `json:"destipv6val,omitempty"` - Destport bool `json:"destport,omitempty"` - Destportop string `json:"destportop,omitempty"` - Destportval string `json:"destportval,omitempty"` - Dfdhash string `json:"dfdhash,omitempty"` - Dfdprefix int `json:"dfdprefix,omitempty"` - Established bool `json:"established,omitempty"` - Hits int `json:"hits,omitempty"` - Icmpcode int `json:"icmpcode,omitempty"` - Icmptype int `json:"icmptype,omitempty"` - Interface string `json:"Interface,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` - Logstate string `json:"logstate,omitempty"` - Newname string `json:"newname,omitempty"` - Priority int `json:"priority,omitempty"` - Protocol string `json:"protocol,omitempty"` - Protocolnumber int `json:"protocolnumber,omitempty"` - Ratelimit int `json:"ratelimit,omitempty"` - Srcipop string `json:"srcipop,omitempty"` - Srcipv6 bool `json:"srcipv6,omitempty"` - Srcipv6val string `json:"srcipv6val,omitempty"` - Srcmac string `json:"srcmac,omitempty"` - Srcmacmask string `json:"srcmacmask,omitempty"` - Srcport bool `json:"srcport,omitempty"` - Srcportop string `json:"srcportop,omitempty"` - Srcportval string `json:"srcportval,omitempty"` - State string `json:"state,omitempty"` - Stateful string `json:"stateful,omitempty"` - Td int `json:"td,omitempty"` - Ttl int `json:"ttl,omitempty"` - Type string `json:"type,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls.go deleted file mode 100644 index 204f2b4f2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsacls struct { - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls6.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls6.go deleted file mode 100644 index 1e0a113d4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsacls6.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsacls6 struct { - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowcollector.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowcollector.go deleted file mode 100644 index 816d25705..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowcollector.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nsappflowcollector struct { - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowparam.go deleted file mode 100644 index fad895031..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsappflowparam.go +++ /dev/null @@ -1,13 +0,0 @@ -package ns - -type Nsappflowparam struct { - Clienttrafficonly string `json:"clienttrafficonly,omitempty"` - Httpcookie string `json:"httpcookie,omitempty"` - Httphost string `json:"httphost,omitempty"` - Httpmethod string `json:"httpmethod,omitempty"` - Httpreferer string `json:"httpreferer,omitempty"` - Httpurl string `json:"httpurl,omitempty"` - Httpuseragent string `json:"httpuseragent,omitempty"` - Templaterefresh int `json:"templaterefresh,omitempty"` - Udppmtu int `json:"udppmtu,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsaptlicense.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsaptlicense.go deleted file mode 100644 index 9c6ff3732..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsaptlicense.go +++ /dev/null @@ -1,19 +0,0 @@ -package ns - -type Nsaptlicense struct { - Bindtype string `json:"bindtype,omitempty"` - Countavailable string `json:"countavailable,omitempty"` - Counttotal string `json:"counttotal,omitempty"` - Dateexp string `json:"dateexp,omitempty"` - Datepurchased string `json:"datepurchased,omitempty"` - Datesa string `json:"datesa,omitempty"` - Features interface{} `json:"features,omitempty"` - Id string `json:"id,omitempty"` - Licensedir string `json:"licensedir,omitempty"` - Name string `json:"name,omitempty"` - Relevance string `json:"relevance,omitempty"` - Response string `json:"response,omitempty"` - Serialno string `json:"serialno,omitempty"` - Sessionid string `json:"sessionid,omitempty"` - Useproxy string `json:"useproxy,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsassignment.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsassignment.go deleted file mode 100644 index dac99bbae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsassignment.go +++ /dev/null @@ -1,16 +0,0 @@ -package ns - -type Nsassignment struct { - Add string `json:"Add,omitempty"` - Append string `json:"append,omitempty"` - Clear bool `json:"clear,omitempty"` - Comment string `json:"comment,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Set string `json:"set,omitempty"` - Sub string `json:"sub,omitempty"` - Undefhits int `json:"undefhits,omitempty"` - Variable string `json:"variable,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nscapacity.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nscapacity.go deleted file mode 100644 index b0ba54bae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nscapacity.go +++ /dev/null @@ -1,16 +0,0 @@ -package ns - -type Nscapacity struct { - Actualbandwidth int `json:"actualbandwidth,omitempty"` - Bandwidth int `json:"bandwidth,omitempty"` - Edition string `json:"edition,omitempty"` - Instancecount int `json:"instancecount,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxvcpucount int `json:"maxvcpucount,omitempty"` - Minbandwidth int `json:"minbandwidth,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Platform string `json:"platform,omitempty"` - Unit string `json:"unit,omitempty"` - Vcpu bool `json:"vcpu,omitempty"` - Vcpucount int `json:"vcpucount,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nscentralmanagementserver.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nscentralmanagementserver.go deleted file mode 100644 index baa58ee98..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nscentralmanagementserver.go +++ /dev/null @@ -1,9 +0,0 @@ -package ns - -type Nscentralmanagementserver struct { - Ipaddress string `json:"ipaddress,omitempty"` - Password string `json:"password,omitempty"` - Servername string `json:"servername,omitempty"` - Type string `json:"type,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconfig.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsconfig.go deleted file mode 100644 index 39963f23d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconfig.go +++ /dev/null @@ -1,49 +0,0 @@ -package ns - -type Nsconfig struct { - All bool `json:"all,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Config string `json:"config,omitempty"` - Config1 string `json:"config1,omitempty"` - Config2 string `json:"config2,omitempty"` - Configchanged bool `json:"configchanged,omitempty"` - Cookieversion string `json:"cookieversion,omitempty"` - Crportrange string `json:"crportrange,omitempty"` - Currentsytemtime string `json:"currentsytemtime,omitempty"` - Exclusivequotamaxclient int `json:"exclusivequotamaxclient,omitempty"` - Exclusivequotaspillover int `json:"exclusivequotaspillover,omitempty"` - Flags int `json:"flags,omitempty"` - Force bool `json:"force,omitempty"` - Ftpportrange string `json:"ftpportrange,omitempty"` - Grantquotamaxclient int `json:"grantquotamaxclient,omitempty"` - Grantquotaspillover int `json:"grantquotaspillover,omitempty"` - Httpport interface{} `json:"httpport,omitempty"` - Ifnum interface{} `json:"ifnum,omitempty"` - Ignoredevicespecific bool `json:"ignoredevicespecific,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Lastconfigchangedtime string `json:"lastconfigchangedtime,omitempty"` - Lastconfigsavetime string `json:"lastconfigsavetime,omitempty"` - Level string `json:"level,omitempty"` - Mappedip string `json:"mappedip,omitempty"` - Maxconn int `json:"maxconn,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Message string `json:"message,omitempty"` - Netmask string `json:"netmask,omitempty"` - Nsvlan int `json:"nsvlan,omitempty"` - Outtype string `json:"outtype,omitempty"` - Pmtumin int `json:"pmtumin,omitempty"` - Pmtutimeout int `json:"pmtutimeout,omitempty"` - Primaryip string `json:"primaryip,omitempty"` - Primaryip6 string `json:"primaryip6,omitempty"` - Range int `json:"range,omitempty"` - Rbaconfig string `json:"rbaconfig,omitempty"` - Response string `json:"response,omitempty"` - Securecookie string `json:"securecookie,omitempty"` - Systemtime int `json:"systemtime,omitempty"` - Systemtype string `json:"systemtype,omitempty"` - Tagged string `json:"tagged,omitempty"` - Template bool `json:"template,omitempty"` - Timezone string `json:"timezone,omitempty"` - Weakpassword bool `json:"weakpassword,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconnectiontable.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsconnectiontable.go deleted file mode 100644 index 17134a767..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconnectiontable.go +++ /dev/null @@ -1,126 +0,0 @@ -package ns - -type Nsconnectiontable struct { - Adaptivetcpprofname string `json:"adaptivetcpprofname,omitempty"` - Advwnd int `json:"advwnd,omitempty"` - Burstratecontrol string `json:"burstratecontrol,omitempty"` - Bwestimate int `json:"bwestimate,omitempty"` - Channelidnnm int `json:"channelidnnm,omitempty"` - Congstate string `json:"congstate,omitempty"` - Connid int `json:"connid,omitempty"` - Connproperties interface{} `json:"connproperties,omitempty"` - Cqabifavg int `json:"cqabifavg,omitempty"` - Cqaccl int `json:"cqaccl,omitempty"` - Cqacsq int `json:"cqacsq,omitempty"` - Cqaiai1mspct int `json:"cqaiai1mspct,omitempty"` - Cqaiai2mspct int `json:"cqaiai2mspct,omitempty"` - Cqaiaiavg int `json:"cqaiaiavg,omitempty"` - Cqaiaisamples int `json:"cqaiaisamples,omitempty"` - Cqaisiavg int `json:"cqaisiavg,omitempty"` - Cqaloaddelayavg int `json:"cqaloaddelayavg,omitempty"` - Cqanetclass string `json:"cqanetclass,omitempty"` - Cqanoisedelayavg int `json:"cqanoisedelayavg,omitempty"` - Cqarcvwndavg int `json:"cqarcvwndavg,omitempty"` - Cqarcvwndmin int `json:"cqarcvwndmin,omitempty"` - Cqaretxcong int `json:"cqaretxcong,omitempty"` - Cqaretxcorr int `json:"cqaretxcorr,omitempty"` - Cqaretxpackets int `json:"cqaretxpackets,omitempty"` - Cqarttavg int `json:"cqarttavg,omitempty"` - Cqarttmax int `json:"cqarttmax,omitempty"` - Cqarttmin int `json:"cqarttmin,omitempty"` - Cqasamples int `json:"cqasamples,omitempty"` - Cqathruputavg int `json:"cqathruputavg,omitempty"` - Creditsinbytes int `json:"creditsinbytes,omitempty"` - Destip string `json:"destip,omitempty"` - Destport int `json:"destport,omitempty"` - Detail interface{} `json:"detail,omitempty"` - Entityname string `json:"entityname,omitempty"` - Filterexpression string `json:"filterexpression,omitempty"` - Filtername bool `json:"filtername,omitempty"` - Flavor string `json:"flavor,omitempty"` - Httpendseq int `json:"httpendseq,omitempty"` - Httprequest string `json:"httprequest,omitempty"` - Httpreqver string `json:"httpreqver,omitempty"` - Httprspcode int `json:"httprspcode,omitempty"` - Httpstate string `json:"httpstate,omitempty"` - Idletime int `json:"idletime,omitempty"` - Irs int `json:"irs,omitempty"` - Iss int `json:"iss,omitempty"` - Link bool `json:"link,omitempty"` - Linkburstratecontrol string `json:"linkburstratecontrol,omitempty"` - Linkbwestimate int `json:"linkbwestimate,omitempty"` - Linkcongstate string `json:"linkcongstate,omitempty"` - Linkconnid int `json:"linkconnid,omitempty"` - Linkcredits int `json:"linkcredits,omitempty"` - Linkdestip string `json:"linkdestip,omitempty"` - Linkdestport int `json:"linkdestport,omitempty"` - Linkentityname string `json:"linkentityname,omitempty"` - Linkflavor string `json:"linkflavor,omitempty"` - Linkidletime int `json:"linkidletime,omitempty"` - Linkmaxrcvbuf int `json:"linkmaxrcvbuf,omitempty"` - Linkmaxsndbuf int `json:"linkmaxsndbuf,omitempty"` - Linkname string `json:"linkname,omitempty"` - Linknsbretxq int `json:"linknsbretxq,omitempty"` - Linknsbtcpwaitq int `json:"linknsbtcpwaitq,omitempty"` - Linknswsvalue int `json:"linknswsvalue,omitempty"` - Linkoptionflag interface{} `json:"linkoptionflag,omitempty"` - Linkpeerwsvalue int `json:"linkpeerwsvalue,omitempty"` - Linkrateinbytes int `json:"linkrateinbytes,omitempty"` - Linkrateschedulerqueue int `json:"linkrateschedulerqueue,omitempty"` - Linkrealtimertt int `json:"linkrealtimertt,omitempty"` - Linkrttmin int `json:"linkrttmin,omitempty"` - Linkrxqsize int `json:"linkrxqsize,omitempty"` - Linksackblocks int `json:"linksackblocks,omitempty"` - Linkservicetype string `json:"linkservicetype,omitempty"` - Linksndbuf int `json:"linksndbuf,omitempty"` - Linksndrecoverle int `json:"linksndrecoverle,omitempty"` - Linksourceip string `json:"linksourceip,omitempty"` - Linksourceport int `json:"linksourceport,omitempty"` - Linkstate string `json:"linkstate,omitempty"` - Linktcpmode string `json:"linktcpmode,omitempty"` - Linktxqsize int `json:"linktxqsize,omitempty"` - Listen bool `json:"listen,omitempty"` - Maxack int `json:"maxack,omitempty"` - Maxrcvbuf int `json:"maxrcvbuf,omitempty"` - Maxsndbuf int `json:"maxsndbuf,omitempty"` - Msgversionnnm int `json:"msgversionnnm,omitempty"` - Mss int `json:"mss,omitempty"` - Name string `json:"name,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Nsbretxq int `json:"nsbretxq,omitempty"` - Nsbtcpwaitq int `json:"nsbtcpwaitq,omitempty"` - Nswsvalue int `json:"nswsvalue,omitempty"` - Optionflags interface{} `json:"optionflags,omitempty"` - Outoforderblocks int `json:"outoforderblocks,omitempty"` - Outoforderbytes int `json:"outoforderbytes,omitempty"` - Outoforderflushedcount int `json:"outoforderflushedcount,omitempty"` - Outoforderpkts int `json:"outoforderpkts,omitempty"` - Peerwsvalue int `json:"peerwsvalue,omitempty"` - Priority string `json:"priority,omitempty"` - Rateinbytes int `json:"rateinbytes,omitempty"` - Rateschedulerqueue int `json:"rateschedulerqueue,omitempty"` - Rcvnxt int `json:"rcvnxt,omitempty"` - Rcvwnd int `json:"rcvwnd,omitempty"` - Realtimertt int `json:"realtimertt,omitempty"` - Retxretrycnt int `json:"retxretrycnt,omitempty"` - Rttmin int `json:"rttmin,omitempty"` - Rttsmoothed int `json:"rttsmoothed,omitempty"` - Rttvariance int `json:"rttvariance,omitempty"` - Rxqsize int `json:"rxqsize,omitempty"` - Sackblocks int `json:"sackblocks,omitempty"` - Sndbuf int `json:"sndbuf,omitempty"` - Sndcwnd int `json:"sndcwnd,omitempty"` - Sndnxt int `json:"sndnxt,omitempty"` - Sndrecoverle int `json:"sndrecoverle,omitempty"` - Sndunack int `json:"sndunack,omitempty"` - Sourceip string `json:"sourceip,omitempty"` - Sourcenodeidnnm int `json:"sourcenodeidnnm,omitempty"` - Sourceport int `json:"sourceport,omitempty"` - State string `json:"state,omitempty"` - Svctype string `json:"svctype,omitempty"` - Targetnodeidnnm int `json:"targetnodeidnnm,omitempty"` - Tcpmode string `json:"tcpmode,omitempty"` - Td int `json:"td,omitempty"` - Trcount int `json:"trcount,omitempty"` - Txqsize int `json:"txqsize,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconsoleloginprompt.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsconsoleloginprompt.go deleted file mode 100644 index d66559a40..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsconsoleloginprompt.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsconsoleloginprompt struct { - Promptstring string `json:"promptstring,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nscqaparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nscqaparam.go deleted file mode 100644 index 04865b08a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nscqaparam.go +++ /dev/null @@ -1,24 +0,0 @@ -package ns - -type Nscqaparam struct { - Harqretxdelay int `json:"harqretxdelay,omitempty"` - Lr1coeflist string `json:"lr1coeflist,omitempty"` - Lr1probthresh float64 `json:"lr1probthresh,omitempty"` - Lr2coeflist string `json:"lr2coeflist,omitempty"` - Lr2probthresh float64 `json:"lr2probthresh,omitempty"` - Minrttnet1 int `json:"minrttnet1,omitempty"` - Minrttnet2 int `json:"minrttnet2,omitempty"` - Minrttnet3 int `json:"minrttnet3,omitempty"` - Net1cclscale string `json:"net1cclscale,omitempty"` - Net1csqscale string `json:"net1csqscale,omitempty"` - Net1label string `json:"net1label,omitempty"` - Net1logcoef string `json:"net1logcoef,omitempty"` - Net2cclscale string `json:"net2cclscale,omitempty"` - Net2csqscale string `json:"net2csqscale,omitempty"` - Net2label string `json:"net2label,omitempty"` - Net2logcoef string `json:"net2logcoef,omitempty"` - Net3cclscale string `json:"net3cclscale,omitempty"` - Net3csqscale string `json:"net3csqscale,omitempty"` - Net3label string `json:"net3label,omitempty"` - Net3logcoef string `json:"net3logcoef,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpip.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpip.go deleted file mode 100644 index 216d96976..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpip.go +++ /dev/null @@ -1 +0,0 @@ -package ns diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpparams.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpparams.go deleted file mode 100644 index 21b575e8e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdhcpparams.go +++ /dev/null @@ -1,10 +0,0 @@ -package ns - -type Nsdhcpparams struct { - Dhcpclient string `json:"dhcpclient,omitempty"` - Hostrtgw string `json:"hostrtgw,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Netmask string `json:"netmask,omitempty"` - Running bool `json:"running,omitempty"` - Saveroute string `json:"saveroute,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdiameter.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsdiameter.go deleted file mode 100644 index 6f0a33466..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsdiameter.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nsdiameter struct { - Identity string `json:"identity,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Realm string `json:"realm,omitempty"` - Serverclosepropagation string `json:"serverclosepropagation,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionkey.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionkey.go deleted file mode 100644 index b4a979a42..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionkey.go +++ /dev/null @@ -1,10 +0,0 @@ -package ns - -type Nsencryptionkey struct { - Comment string `json:"comment,omitempty"` - Iv string `json:"iv,omitempty"` - Keyvalue string `json:"keyvalue,omitempty"` - Method string `json:"method,omitempty"` - Name string `json:"name,omitempty"` - Padding string `json:"padding,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionparams.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionparams.go deleted file mode 100644 index 2104247e0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsencryptionparams.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nsencryptionparams struct { - Keyvalue string `json:"keyvalue,omitempty"` - Method string `json:"method,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsevents.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsevents.go deleted file mode 100644 index 6fe7ee38f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsevents.go +++ /dev/null @@ -1,14 +0,0 @@ -package ns - -type Nsevents struct { - Data0 int `json:"data0,omitempty"` - Data1 int `json:"data1,omitempty"` - Data2 int `json:"data2,omitempty"` - Data3 int `json:"data3,omitempty"` - Devid int `json:"devid,omitempty"` - Devname string `json:"devname,omitempty"` - Eventcode int `json:"eventcode,omitempty"` - Eventno int `json:"eventno,omitempty"` - Text string `json:"text,omitempty"` - Time int `json:"time,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension.go deleted file mode 100644 index ac5019d67..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension.go +++ /dev/null @@ -1,16 +0,0 @@ -package ns - -type Nsextension struct { - Comment string `json:"comment,omitempty"` - Detail string `json:"detail,omitempty"` - Functionhaltcount int `json:"functionhaltcount,omitempty"` - Functionhits int `json:"functionhits,omitempty"` - Functionundefhits int `json:"functionundefhits,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Src string `json:"src,omitempty"` - Trace string `json:"trace,omitempty"` - Tracefunctions string `json:"tracefunctions,omitempty"` - Tracevariables string `json:"tracevariables,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_binding.go deleted file mode 100644 index a263ae268..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsextensionbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_extensionfunction_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_extensionfunction_binding.go deleted file mode 100644 index 2d916e463..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsextension_extensionfunction_binding.go +++ /dev/null @@ -1,17 +0,0 @@ -package ns - -type Nsextensionextensionfunctionbinding struct { - Activeextensionfunction int `json:"activeextensionfunction,omitempty"` - Extensionfuncdescription string `json:"extensionfuncdescription,omitempty"` - Extensionfunctionallparams interface{} `json:"extensionfunctionallparams,omitempty"` - Extensionfunctionallparamscount int `json:"extensionfunctionallparamscount,omitempty"` - Extensionfunctionargcount int `json:"extensionfunctionargcount,omitempty"` - Extensionfunctionargtype interface{} `json:"extensionfunctionargtype,omitempty"` - Extensionfunctionclasses interface{} `json:"extensionfunctionclasses,omitempty"` - Extensionfunctionclassescount int `json:"extensionfunctionclassescount,omitempty"` - Extensionfunctionclasstype string `json:"extensionfunctionclasstype,omitempty"` - Extensionfunctionlinenumber int `json:"extensionfunctionlinenumber,omitempty"` - Extensionfunctionname string `json:"extensionfunctionname,omitempty"` - Extensionfunctionreturntype string `json:"extensionfunctionreturntype,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsfeature.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsfeature.go deleted file mode 100644 index d3e53ccf0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsfeature.go +++ /dev/null @@ -1,48 +0,0 @@ -package ns - -type Nsfeature struct { - Aaa bool `json:"aaa,omitempty"` - Adaptivetcp bool `json:"adaptivetcp,omitempty"` - Appflow bool `json:"appflow,omitempty"` - Appfw bool `json:"appfw,omitempty"` - Appqoe bool `json:"appqoe,omitempty"` - Bgp bool `json:"bgp,omitempty"` - Bot bool `json:"bot,omitempty"` - Cf bool `json:"cf,omitempty"` - Ch bool `json:"ch,omitempty"` - Ci bool `json:"ci,omitempty"` - Cloudbridge bool `json:"cloudbridge,omitempty"` - Cmp bool `json:"cmp,omitempty"` - Contentaccelerator bool `json:"contentaccelerator,omitempty"` - Cqa bool `json:"cqa,omitempty"` - Cr bool `json:"cr,omitempty"` - Cs bool `json:"cs,omitempty"` - Feature interface{} `json:"feature,omitempty"` - Feo bool `json:"feo,omitempty"` - Forwardproxy bool `json:"forwardproxy,omitempty"` - Gslb bool `json:"gslb,omitempty"` - Hdosp bool `json:"hdosp,omitempty"` - Htmlinjection bool `json:"htmlinjection,omitempty"` - Ic bool `json:"ic,omitempty"` - Ipv6pt bool `json:"ipv6pt,omitempty"` - Isis bool `json:"isis,omitempty"` - Lb bool `json:"lb,omitempty"` - Lsn bool `json:"lsn,omitempty"` - Ospf bool `json:"ospf,omitempty"` - Pq bool `json:"pq,omitempty"` - Push bool `json:"push,omitempty"` - Rdpproxy bool `json:"rdpproxy,omitempty"` - Rep bool `json:"rep,omitempty"` - Responder bool `json:"responder,omitempty"` - Rewrite bool `json:"rewrite,omitempty"` - Rip bool `json:"rip,omitempty"` - Rise bool `json:"rise,omitempty"` - Sc bool `json:"sc,omitempty"` - Sp bool `json:"sp,omitempty"` - Ssl bool `json:"ssl,omitempty"` - Sslinterception bool `json:"sslinterception,omitempty"` - Sslvpn bool `json:"sslvpn,omitempty"` - Urlfiltering bool `json:"urlfiltering,omitempty"` - Videooptimization bool `json:"videooptimization,omitempty"` - Wl bool `json:"wl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nshardware.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nshardware.go deleted file mode 100644 index c5c4707df..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nshardware.go +++ /dev/null @@ -1,16 +0,0 @@ -package ns - -type Nshardware struct { - Bmcrevision string `json:"bmcrevision,omitempty"` - Cpufrequncy int `json:"cpufrequncy,omitempty"` - Encodedserialno string `json:"encodedserialno,omitempty"` - Host string `json:"host,omitempty"` - Hostid int `json:"hostid,omitempty"` - Hwdescription string `json:"hwdescription,omitempty"` - Manufactureday int `json:"manufactureday,omitempty"` - Manufacturemonth int `json:"manufacturemonth,omitempty"` - Manufactureyear int `json:"manufactureyear,omitempty"` - Netscaleruuid string `json:"netscaleruuid,omitempty"` - Serialno string `json:"serialno,omitempty"` - Sysid int `json:"sysid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nshmackey.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nshmackey.go deleted file mode 100644 index 3f7ef6f52..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nshmackey.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nshmackey struct { - Comment string `json:"comment,omitempty"` - Digest string `json:"digest,omitempty"` - Keyvalue string `json:"keyvalue,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nshostname.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nshostname.go deleted file mode 100644 index 4c2520f6a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nshostname.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nshostname struct { - Hostname string `json:"hostname,omitempty"` - Ownernode int `json:"ownernode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpparam.go deleted file mode 100644 index acc9ca311..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpparam.go +++ /dev/null @@ -1,16 +0,0 @@ -package ns - -type Nshttpparam struct { - Builtin interface{} `json:"builtin,omitempty"` - Conmultiplex string `json:"conmultiplex,omitempty"` - Dropinvalreqs string `json:"dropinvalreqs,omitempty"` - Feature string `json:"feature,omitempty"` - Http2serverside string `json:"http2serverside,omitempty"` - Ignoreconnectcodingscheme string `json:"ignoreconnectcodingscheme,omitempty"` - Insnssrvrhdr string `json:"insnssrvrhdr,omitempty"` - Logerrresp string `json:"logerrresp,omitempty"` - Markconnreqinval string `json:"markconnreqinval,omitempty"` - Markhttp09inval string `json:"markhttp09inval,omitempty"` - Maxreusepool int `json:"maxreusepool,omitempty"` - Nssrvrhdr string `json:"nssrvrhdr,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpprofile.go deleted file mode 100644 index 5ada1d9b8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nshttpprofile.go +++ /dev/null @@ -1,43 +0,0 @@ -package ns - -type Nshttpprofile struct { - Adpttimeout string `json:"adpttimeout,omitempty"` - Altsvc string `json:"altsvc,omitempty"` - Apdexcltresptimethreshold int `json:"apdexcltresptimethreshold,omitempty"` - Apdexsvrresptimethreshold int `json:"apdexsvrresptimethreshold,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Clientiphdrexpr string `json:"clientiphdrexpr,omitempty"` - Cmponpush string `json:"cmponpush,omitempty"` - Conmultiplex string `json:"conmultiplex,omitempty"` - Dropextracrlf string `json:"dropextracrlf,omitempty"` - Dropextradata string `json:"dropextradata,omitempty"` - Dropinvalreqs string `json:"dropinvalreqs,omitempty"` - Feature string `json:"feature,omitempty"` - Http2 string `json:"http2,omitempty"` - Http2direct string `json:"http2direct,omitempty"` - Http2headertablesize int `json:"http2headertablesize,omitempty"` - Http2initialwindowsize int `json:"http2initialwindowsize,omitempty"` - Http2maxconcurrentstreams int `json:"http2maxconcurrentstreams,omitempty"` - Http2maxframesize int `json:"http2maxframesize,omitempty"` - Http2maxheaderlistsize int `json:"http2maxheaderlistsize,omitempty"` - Http2minseverconn int `json:"http2minseverconn,omitempty"` - Http2strictcipher string `json:"http2strictcipher,omitempty"` - Incomphdrdelay int `json:"incomphdrdelay,omitempty"` - Markconnreqinval string `json:"markconnreqinval,omitempty"` - Markhttp09inval string `json:"markhttp09inval,omitempty"` - Marktracereqinval string `json:"marktracereqinval,omitempty"` - Maxheaderlen int `json:"maxheaderlen,omitempty"` - Maxreq int `json:"maxreq,omitempty"` - Maxreusepool int `json:"maxreusepool,omitempty"` - Minreusepool int `json:"minreusepool,omitempty"` - Name string `json:"name,omitempty"` - Persistentetag string `json:"persistentetag,omitempty"` - Refcnt int `json:"refcnt,omitempty"` - Reqtimeout int `json:"reqtimeout,omitempty"` - Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` - Reusepooltimeout int `json:"reusepooltimeout,omitempty"` - Rtsptunnel string `json:"rtsptunnel,omitempty"` - Spdy string `json:"spdy,omitempty"` - Weblog string `json:"weblog,omitempty"` - Websocket string `json:"websocket,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsicapprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsicapprofile.go deleted file mode 100644 index 7cac45993..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsicapprofile.go +++ /dev/null @@ -1,19 +0,0 @@ -package ns - -type Nsicapprofile struct { - Allow204 string `json:"allow204,omitempty"` - Connectionkeepalive string `json:"connectionkeepalive,omitempty"` - Hostheader string `json:"hostheader,omitempty"` - Inserthttprequest string `json:"inserthttprequest,omitempty"` - Inserticapheaders string `json:"inserticapheaders,omitempty"` - Logaction string `json:"logaction,omitempty"` - Mode string `json:"mode,omitempty"` - Name string `json:"name,omitempty"` - Preview string `json:"preview,omitempty"` - Previewlength int `json:"previewlength,omitempty"` - Queryparams string `json:"queryparams,omitempty"` - Reqtimeout int `json:"reqtimeout,omitempty"` - Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` - Uri string `json:"uri,omitempty"` - Useragent string `json:"useragent,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsip.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsip.go deleted file mode 100644 index cc5678142..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsip.go +++ /dev/null @@ -1,52 +0,0 @@ -package ns - -type Nsip struct { - Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` - Arp string `json:"arp,omitempty"` - Arpowner int `json:"arpowner,omitempty"` - Arpresponse string `json:"arpresponse,omitempty"` - Bgp string `json:"bgp,omitempty"` - Decrementttl string `json:"decrementttl,omitempty"` - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Flags int `json:"flags,omitempty"` - Freeports int `json:"freeports,omitempty"` - Ftp string `json:"ftp,omitempty"` - Gui string `json:"gui,omitempty"` - Hostroute string `json:"hostroute,omitempty"` - Hostrtgw string `json:"hostrtgw,omitempty"` - Hostrtgwact string `json:"hostrtgwact,omitempty"` - Icmp string `json:"icmp,omitempty"` - Icmpresponse string `json:"icmpresponse,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Iptype interface{} `json:"iptype,omitempty"` - Metric int `json:"metric,omitempty"` - Mgmtaccess string `json:"mgmtaccess,omitempty"` - Netmask string `json:"netmask,omitempty"` - Networkroute string `json:"networkroute,omitempty"` - Operationalarpowner int `json:"operationalarpowner,omitempty"` - Ospf string `json:"ospf,omitempty"` - Ospfarea int `json:"ospfarea,omitempty"` - Ospfareaval int `json:"ospfareaval,omitempty"` - Ospflsatype string `json:"ospflsatype,omitempty"` - Ownerdownresponse string `json:"ownerdownresponse,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Restrictaccess string `json:"restrictaccess,omitempty"` - Rip string `json:"rip,omitempty"` - Riserhimsgcode int `json:"riserhimsgcode,omitempty"` - Snmp string `json:"snmp,omitempty"` - Ssh string `json:"ssh,omitempty"` - State string `json:"state,omitempty"` - Tag int `json:"tag,omitempty"` - Td int `json:"td,omitempty"` - Telnet string `json:"telnet,omitempty"` - Type string `json:"type,omitempty"` - Viprtadv2bsd bool `json:"viprtadv2bsd,omitempty"` - Vipvsercount int `json:"vipvsercount,omitempty"` - Vipvserdowncount int `json:"vipvserdowncount,omitempty"` - Vipvsrvrrhiactivecount int `json:"vipvsrvrrhiactivecount,omitempty"` - Vipvsrvrrhiactiveupcount int `json:"vipvsrvrrhiactiveupcount,omitempty"` - Vrid int `json:"vrid,omitempty"` - Vserver string `json:"vserver,omitempty"` - Vserverrhilevel string `json:"vserverrhilevel,omitempty"` - Vserverrhimode string `json:"vserverrhimode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsip6.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsip6.go deleted file mode 100644 index 59142b4ac..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsip6.go +++ /dev/null @@ -1,41 +0,0 @@ -package ns - -type Nsip6 struct { - Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` - Curstate string `json:"curstate,omitempty"` - Decrementhoplimit string `json:"decrementhoplimit,omitempty"` - Dynamicrouting string `json:"dynamicrouting,omitempty"` - Ftp string `json:"ftp,omitempty"` - Gui string `json:"gui,omitempty"` - Hostroute string `json:"hostroute,omitempty"` - Icmp string `json:"icmp,omitempty"` - Ip6hostrtgw string `json:"ip6hostrtgw,omitempty"` - Iptype interface{} `json:"iptype,omitempty"` - Ipv6address string `json:"ipv6address,omitempty"` - Map string `json:"map,omitempty"` - Metric int `json:"metric,omitempty"` - Mgmtaccess string `json:"mgmtaccess,omitempty"` - Nd string `json:"nd,omitempty"` - Networkroute string `json:"networkroute,omitempty"` - Ospf6lsatype string `json:"ospf6lsatype,omitempty"` - Ospfarea int `json:"ospfarea,omitempty"` - Ownerdownresponse string `json:"ownerdownresponse,omitempty"` - Ownernode int `json:"ownernode,omitempty"` - Restrictaccess string `json:"restrictaccess,omitempty"` - Scope string `json:"scope,omitempty"` - Snmp string `json:"snmp,omitempty"` - Ssh string `json:"ssh,omitempty"` - State string `json:"state,omitempty"` - Systemtype string `json:"systemtype,omitempty"` - Tag int `json:"tag,omitempty"` - Td int `json:"td,omitempty"` - Telnet string `json:"telnet,omitempty"` - Type string `json:"type,omitempty"` - Viprtadv2bsd bool `json:"viprtadv2bsd,omitempty"` - Vipvsercount int `json:"vipvsercount,omitempty"` - Vipvserdowncount int `json:"vipvserdowncount,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vrid6 int `json:"vrid6,omitempty"` - Vserver string `json:"vserver,omitempty"` - Vserverrhilevel string `json:"vserverrhilevel,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicense.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslicense.go deleted file mode 100644 index 6c3ea7eae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicense.go +++ /dev/null @@ -1,67 +0,0 @@ -package ns - -type Nslicense struct { - Aaa bool `json:"aaa,omitempty"` - Adaptivetcp bool `json:"adaptivetcp,omitempty"` - Agee bool `json:"agee,omitempty"` - Appflow bool `json:"appflow,omitempty"` - Appflowica bool `json:"appflowica,omitempty"` - Appfw bool `json:"appfw,omitempty"` - Appqoe bool `json:"appqoe,omitempty"` - Bgp bool `json:"bgp,omitempty"` - Bot bool `json:"bot,omitempty"` - Cf bool `json:"cf,omitempty"` - Ch bool `json:"ch,omitempty"` - Cloudbridge bool `json:"cloudbridge,omitempty"` - Cloudbridgeappliance bool `json:"cloudbridgeappliance,omitempty"` - Cloudextenderappliance bool `json:"cloudextenderappliance,omitempty"` - Cluster bool `json:"cluster,omitempty"` - Cmp bool `json:"cmp,omitempty"` - Contentaccelerator bool `json:"contentaccelerator,omitempty"` - Cqa bool `json:"cqa,omitempty"` - Cr bool `json:"cr,omitempty"` - Cs bool `json:"cs,omitempty"` - Daystoexpiration int `json:"daystoexpiration,omitempty"` - Delta bool `json:"delta,omitempty"` - Feo bool `json:"feo,omitempty"` - Ficausers int `json:"f_ica_users,omitempty"` - Forwardproxy bool `json:"forwardproxy,omitempty"` - Fsslvpnusers int `json:"f_sslvpn_users,omitempty"` - Gslb bool `json:"gslb,omitempty"` - Gslbp bool `json:"gslbp,omitempty"` - Hdosp bool `json:"hdosp,omitempty"` - Htmlinjection bool `json:"htmlinjection,omitempty"` - Ic bool `json:"ic,omitempty"` - Ipv6pt bool `json:"ipv6pt,omitempty"` - Isenterpriselic bool `json:"isenterpriselic,omitempty"` - Isis bool `json:"isis,omitempty"` - Isplatinumlic bool `json:"isplatinumlic,omitempty"` - Issgwylic bool `json:"issgwylic,omitempty"` - Isstandardlic bool `json:"isstandardlic,omitempty"` - Isswglic bool `json:"isswglic,omitempty"` - Lb bool `json:"lb,omitempty"` - Licensingmode string `json:"licensingmode,omitempty"` - Lsn bool `json:"lsn,omitempty"` - Modelid int `json:"modelid,omitempty"` - Nsxn bool `json:"nsxn,omitempty"` - Ospf bool `json:"ospf,omitempty"` - Pq bool `json:"pq,omitempty"` - Push bool `json:"push,omitempty"` - Rdpproxy bool `json:"rdpproxy,omitempty"` - Remotecontentinspection bool `json:"remotecontentinspection,omitempty"` - Rep bool `json:"rep,omitempty"` - Responder bool `json:"responder,omitempty"` - Rewrite bool `json:"rewrite,omitempty"` - Rip bool `json:"rip,omitempty"` - Rise bool `json:"rise,omitempty"` - Routing bool `json:"routing,omitempty"` - Sc bool `json:"sc,omitempty"` - Sp bool `json:"sp,omitempty"` - Ssl bool `json:"ssl,omitempty"` - Sslinterception bool `json:"sslinterception,omitempty"` - Sslvpn bool `json:"sslvpn,omitempty"` - Urlfiltering bool `json:"urlfiltering,omitempty"` - Videooptimization bool `json:"videooptimization,omitempty"` - Wionns bool `json:"wionns,omitempty"` - Wl bool `json:"wl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseproxyserver.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseproxyserver.go deleted file mode 100644 index eee58bdd8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseproxyserver.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nslicenseproxyserver struct { - Port int `json:"port,omitempty"` - Serverip string `json:"serverip,omitempty"` - Servername string `json:"servername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserver.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserver.go deleted file mode 100644 index f92f9bbda..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserver.go +++ /dev/null @@ -1,12 +0,0 @@ -package ns - -type Nslicenseserver struct { - Forceupdateip bool `json:"forceupdateip,omitempty"` - Gptimeleft int `json:"gptimeleft,omitempty"` - Grace int `json:"grace,omitempty"` - Licenseserverip string `json:"licenseserverip,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Port int `json:"port,omitempty"` - Servername string `json:"servername,omitempty"` - Status int `json:"status,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserverpool.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserverpool.go deleted file mode 100644 index 34fb398e9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslicenseserverpool.go +++ /dev/null @@ -1,122 +0,0 @@ -package ns - -type Nslicenseserverpool struct { - Cpxinstanceavailable int `json:"cpxinstanceavailable,omitempty"` - Cpxinstancetotal int `json:"cpxinstancetotal,omitempty"` - Enterprisebandwidthavailable int `json:"enterprisebandwidthavailable,omitempty"` - Enterprisebandwidthtotal int `json:"enterprisebandwidthtotal,omitempty"` - Enterprisecpuavailable int `json:"enterprisecpuavailable,omitempty"` - Enterprisecputotal int `json:"enterprisecputotal,omitempty"` - Instanceavailable int `json:"instanceavailable,omitempty"` - Instancetotal int `json:"instancetotal,omitempty"` - Platinumbandwidthavailable int `json:"platinumbandwidthavailable,omitempty"` - Platinumbandwidthtotal int `json:"platinumbandwidthtotal,omitempty"` - Platinumcpuavailable int `json:"platinumcpuavailable,omitempty"` - Platinumcputotal int `json:"platinumcputotal,omitempty"` - Standardbandwidthavailable int `json:"standardbandwidthavailable,omitempty"` - Standardbandwidthtotal int `json:"standardbandwidthtotal,omitempty"` - Standardcpuavailable int `json:"standardcpuavailable,omitempty"` - Standardcputotal int `json:"standardcputotal,omitempty"` - Vpx100000eavailable int `json:"vpx100000eavailable,omitempty"` - Vpx100000etotal int `json:"vpx100000etotal,omitempty"` - Vpx100000pavailable int `json:"vpx100000pavailable,omitempty"` - Vpx100000ptotal int `json:"vpx100000ptotal,omitempty"` - Vpx100000savailable int `json:"vpx100000savailable,omitempty"` - Vpx100000stotal int `json:"vpx100000stotal,omitempty"` - Vpx10000eavailable int `json:"vpx10000eavailable,omitempty"` - Vpx10000etotal int `json:"vpx10000etotal,omitempty"` - Vpx10000pavailable int `json:"vpx10000pavailable,omitempty"` - Vpx10000ptotal int `json:"vpx10000ptotal,omitempty"` - Vpx10000savailable int `json:"vpx10000savailable,omitempty"` - Vpx10000stotal int `json:"vpx10000stotal,omitempty"` - Vpx1000eavailable int `json:"vpx1000eavailable,omitempty"` - Vpx1000etotal int `json:"vpx1000etotal,omitempty"` - Vpx1000pavailable int `json:"vpx1000pavailable,omitempty"` - Vpx1000ptotal int `json:"vpx1000ptotal,omitempty"` - Vpx1000savailable int `json:"vpx1000savailable,omitempty"` - Vpx1000stotal int `json:"vpx1000stotal,omitempty"` - Vpx100eavailable int `json:"vpx100eavailable,omitempty"` - Vpx100etotal int `json:"vpx100etotal,omitempty"` - Vpx100pavailable int `json:"vpx100pavailable,omitempty"` - Vpx100ptotal int `json:"vpx100ptotal,omitempty"` - Vpx100savailable int `json:"vpx100savailable,omitempty"` - Vpx100stotal int `json:"vpx100stotal,omitempty"` - Vpx10eavailable int `json:"vpx10eavailable,omitempty"` - Vpx10etotal int `json:"vpx10etotal,omitempty"` - Vpx10pavailable int `json:"vpx10pavailable,omitempty"` - Vpx10ptotal int `json:"vpx10ptotal,omitempty"` - Vpx10savailable int `json:"vpx10savailable,omitempty"` - Vpx10stotal int `json:"vpx10stotal,omitempty"` - Vpx15000eavailable int `json:"vpx15000eavailable,omitempty"` - Vpx15000etotal int `json:"vpx15000etotal,omitempty"` - Vpx15000pavailable int `json:"vpx15000pavailable,omitempty"` - Vpx15000ptotal int `json:"vpx15000ptotal,omitempty"` - Vpx15000savailable int `json:"vpx15000savailable,omitempty"` - Vpx15000stotal int `json:"vpx15000stotal,omitempty"` - Vpx1pavailable int `json:"vpx1pavailable,omitempty"` - Vpx1ptotal int `json:"vpx1ptotal,omitempty"` - Vpx1savailable int `json:"vpx1savailable,omitempty"` - Vpx1stotal int `json:"vpx1stotal,omitempty"` - Vpx2000pavailable int `json:"vpx2000pavailable,omitempty"` - Vpx2000ptotal int `json:"vpx2000ptotal,omitempty"` - Vpx200eavailable int `json:"vpx200eavailable,omitempty"` - Vpx200etotal int `json:"vpx200etotal,omitempty"` - Vpx200pavailable int `json:"vpx200pavailable,omitempty"` - Vpx200ptotal int `json:"vpx200ptotal,omitempty"` - Vpx200savailable int `json:"vpx200savailable,omitempty"` - Vpx200stotal int `json:"vpx200stotal,omitempty"` - Vpx25000eavailable int `json:"vpx25000eavailable,omitempty"` - Vpx25000etotal int `json:"vpx25000etotal,omitempty"` - Vpx25000pavailable int `json:"vpx25000pavailable,omitempty"` - Vpx25000ptotal int `json:"vpx25000ptotal,omitempty"` - Vpx25000savailable int `json:"vpx25000savailable,omitempty"` - Vpx25000stotal int `json:"vpx25000stotal,omitempty"` - Vpx25eavailable int `json:"vpx25eavailable,omitempty"` - Vpx25etotal int `json:"vpx25etotal,omitempty"` - Vpx25pavailable int `json:"vpx25pavailable,omitempty"` - Vpx25ptotal int `json:"vpx25ptotal,omitempty"` - Vpx25savailable int `json:"vpx25savailable,omitempty"` - Vpx25stotal int `json:"vpx25stotal,omitempty"` - Vpx3000eavailable int `json:"vpx3000eavailable,omitempty"` - Vpx3000etotal int `json:"vpx3000etotal,omitempty"` - Vpx3000pavailable int `json:"vpx3000pavailable,omitempty"` - Vpx3000ptotal int `json:"vpx3000ptotal,omitempty"` - Vpx3000savailable int `json:"vpx3000savailable,omitempty"` - Vpx3000stotal int `json:"vpx3000stotal,omitempty"` - Vpx40000eavailable int `json:"vpx40000eavailable,omitempty"` - Vpx40000etotal int `json:"vpx40000etotal,omitempty"` - Vpx40000pavailable int `json:"vpx40000pavailable,omitempty"` - Vpx40000ptotal int `json:"vpx40000ptotal,omitempty"` - Vpx40000savailable int `json:"vpx40000savailable,omitempty"` - Vpx40000stotal int `json:"vpx40000stotal,omitempty"` - Vpx4000pavailable int `json:"vpx4000pavailable,omitempty"` - Vpx4000ptotal int `json:"vpx4000ptotal,omitempty"` - Vpx5000eavailable int `json:"vpx5000eavailable,omitempty"` - Vpx5000etotal int `json:"vpx5000etotal,omitempty"` - Vpx5000pavailable int `json:"vpx5000pavailable,omitempty"` - Vpx5000ptotal int `json:"vpx5000ptotal,omitempty"` - Vpx5000savailable int `json:"vpx5000savailable,omitempty"` - Vpx5000stotal int `json:"vpx5000stotal,omitempty"` - Vpx500eavailable int `json:"vpx500eavailable,omitempty"` - Vpx500etotal int `json:"vpx500etotal,omitempty"` - Vpx500pavailable int `json:"vpx500pavailable,omitempty"` - Vpx500ptotal int `json:"vpx500ptotal,omitempty"` - Vpx500savailable int `json:"vpx500savailable,omitempty"` - Vpx500stotal int `json:"vpx500stotal,omitempty"` - Vpx50eavailable int `json:"vpx50eavailable,omitempty"` - Vpx50etotal int `json:"vpx50etotal,omitempty"` - Vpx50pavailable int `json:"vpx50pavailable,omitempty"` - Vpx50ptotal int `json:"vpx50ptotal,omitempty"` - Vpx50savailable int `json:"vpx50savailable,omitempty"` - Vpx50stotal int `json:"vpx50stotal,omitempty"` - Vpx5pavailable int `json:"vpx5pavailable,omitempty"` - Vpx5ptotal int `json:"vpx5ptotal,omitempty"` - Vpx5savailable int `json:"vpx5savailable,omitempty"` - Vpx5stotal int `json:"vpx5stotal,omitempty"` - Vpx8000eavailable int `json:"vpx8000eavailable,omitempty"` - Vpx8000etotal int `json:"vpx8000etotal,omitempty"` - Vpx8000pavailable int `json:"vpx8000pavailable,omitempty"` - Vpx8000ptotal int `json:"vpx8000ptotal,omitempty"` - Vpx8000savailable int `json:"vpx8000savailable,omitempty"` - Vpx8000stotal int `json:"vpx8000stotal,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier.go deleted file mode 100644 index 69e9964ed..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier.go +++ /dev/null @@ -1,21 +0,0 @@ -package ns - -type Nslimitidentifier struct { - Computedtraptimeslice int `json:"computedtraptimeslice,omitempty"` - Drop int `json:"drop,omitempty"` - Hits int `json:"hits,omitempty"` - Limitidentifier string `json:"limitidentifier,omitempty"` - Limittype string `json:"limittype,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Mode string `json:"mode,omitempty"` - Ngname string `json:"ngname,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Rule interface{} `json:"rule,omitempty"` - Selectorname string `json:"selectorname,omitempty"` - Threshold int `json:"threshold,omitempty"` - Time int `json:"time,omitempty"` - Timeslice int `json:"timeslice,omitempty"` - Total int `json:"total,omitempty"` - Trapscomputedintimeslice int `json:"trapscomputedintimeslice,omitempty"` - Trapsintimeslice int `json:"trapsintimeslice,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_binding.go deleted file mode 100644 index 19c7fb0e6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nslimitidentifierbinding struct { - Limitidentifier string `json:"limitidentifier,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_nslimitsessions_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_nslimitsessions_binding.go deleted file mode 100644 index 7111fe3b2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitidentifier_nslimitsessions_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nslimitidentifiernslimitsessionsbinding struct { - Limitidentifier string `json:"limitidentifier,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitselector.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitselector.go deleted file mode 100644 index c9a3ebc5b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitselector.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nslimitselector struct { - Rule interface{} `json:"rule,omitempty"` - Selectorname string `json:"selectorname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitsessions.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitsessions.go deleted file mode 100644 index a1f05bea2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nslimitsessions.go +++ /dev/null @@ -1,18 +0,0 @@ -package ns - -type Nslimitsessions struct { - Detail bool `json:"detail,omitempty"` - Drop int `json:"drop,omitempty"` - Flag int `json:"flag,omitempty"` - Flags int `json:"flags,omitempty"` - Hits int `json:"hits,omitempty"` - Limitidentifier string `json:"limitidentifier,omitempty"` - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Name string `json:"name,omitempty"` - Number interface{} `json:"number,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Selectoripv61 string `json:"selectoripv61,omitempty"` - Selectoripv62 string `json:"selectoripv62,omitempty"` - Timeout int `json:"timeout,omitempty"` - Unit int `json:"unit,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsmigration.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsmigration.go deleted file mode 100644 index 349865e5a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsmigration.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nsmigration struct { - Migrationendtime string `json:"migrationendtime,omitempty"` - Migrationrollbackstarttime string `json:"migrationrollbackstarttime,omitempty"` - Migrationstarttime string `json:"migrationstarttime,omitempty"` - Migrationstatus string `json:"migrationstatus,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsmode.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsmode.go deleted file mode 100644 index 8a9b3126f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsmode.go +++ /dev/null @@ -1,25 +0,0 @@ -package ns - -type Nsmode struct { - Bridgebpdus bool `json:"bridgebpdus,omitempty"` - Cka bool `json:"cka,omitempty"` - Dradv bool `json:"dradv,omitempty"` - Dradv6 bool `json:"dradv6,omitempty"` - Edge bool `json:"edge,omitempty"` - Fr bool `json:"fr,omitempty"` - Iradv bool `json:"iradv,omitempty"` - L2 bool `json:"l2,omitempty"` - L3 bool `json:"l3,omitempty"` - Mbf bool `json:"mbf,omitempty"` - Mediaclassification bool `json:"mediaclassification,omitempty"` - Mode interface{} `json:"mode,omitempty"` - Pmtud bool `json:"pmtud,omitempty"` - Riseapbr bool `json:"rise_apbr,omitempty"` - Riserhi bool `json:"rise_rhi,omitempty"` - Sradv bool `json:"sradv,omitempty"` - Sradv6 bool `json:"sradv6,omitempty"` - Tcpb bool `json:"tcpb,omitempty"` - Ulfd bool `json:"ulfd,omitempty"` - Usip bool `json:"usip,omitempty"` - Usnip bool `json:"usnip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsparam.go deleted file mode 100644 index c2675ac44..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsparam.go +++ /dev/null @@ -1,31 +0,0 @@ -package ns - -type Nsparam struct { - Advancedanalyticsstats string `json:"advancedanalyticsstats,omitempty"` - Aftpallowrandomsourceport string `json:"aftpallowrandomsourceport,omitempty"` - Cip string `json:"cip,omitempty"` - Cipheader string `json:"cipheader,omitempty"` - Cookieversion string `json:"cookieversion,omitempty"` - Crportrange string `json:"crportrange,omitempty"` - Exclusivequotamaxclient int `json:"exclusivequotamaxclient"` // 0 is a valid value - Exclusivequotaspillover int `json:"exclusivequotaspillover"` // 0 is a valid value - Ftpportrange string `json:"ftpportrange,omitempty"` - Grantquotamaxclient int `json:"grantquotamaxclient"` // 0 is a valid value - Grantquotaspillover int `json:"grantquotaspillover"` // 0 is a valid value - Httpport interface{} `json:"httpport,omitempty"` - Icaports interface{} `json:"icaports,omitempty"` - Internaluserlogin string `json:"internaluserlogin,omitempty"` - Maxconn int `json:"maxconn"` // 0 is a valid value - Maxreq int `json:"maxreq"` // 0 is a valid value - Mgmthttpport int `json:"mgmthttpport,omitempty"` - Mgmthttpsport int `json:"mgmthttpsport,omitempty"` - Pmtumin int `json:"pmtumin,omitempty"` - Pmtutimeout int `json:"pmtutimeout,omitempty"` - Proxyprotocol string `json:"proxyprotocol,omitempty"` - Securecookie string `json:"securecookie,omitempty"` - Secureicaports interface{} `json:"secureicaports,omitempty"` - Servicepathingressvlan int `json:"servicepathingressvlan,omitempty"` - Tcpcip string `json:"tcpcip,omitempty"` - Timezone string `json:"timezone,omitempty"` - Useproxyport string `json:"useproxyport,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition.go deleted file mode 100644 index 5740ff2e8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition.go +++ /dev/null @@ -1,13 +0,0 @@ -package ns - -type Nspartition struct { - Maxbandwidth int `json:"maxbandwidth,omitempty"` - Maxconn int `json:"maxconn,omitempty"` - Maxmemlimit int `json:"maxmemlimit,omitempty"` - Minbandwidth int `json:"minbandwidth,omitempty"` - Partitionid int `json:"partitionid,omitempty"` - Partitionmac string `json:"partitionmac,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Partitiontype string `json:"partitiontype,omitempty"` - Pmacinternal bool `json:"pmacinternal,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_binding.go deleted file mode 100644 index 0cf131b91..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nspartitionbinding struct { - Partitionname string `json:"partitionname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_bridgegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_bridgegroup_binding.go deleted file mode 100644 index 77b82cf08..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_bridgegroup_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nspartitionbridgegroupbinding struct { - Bridgegroup int `json:"bridgegroup,omitempty"` - Partitionname string `json:"partitionname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vlan_binding.go deleted file mode 100644 index 3cfbd3f96..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vlan_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nspartitionvlanbinding struct { - Partitionname string `json:"partitionname,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vxlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vxlan_binding.go deleted file mode 100644 index 5f7d98273..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartition_vxlan_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nspartitionvxlanbinding struct { - Partitionname string `json:"partitionname,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartitionmac.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspartitionmac.go deleted file mode 100644 index e15051e87..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspartitionmac.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nspartitionmac struct { - Partitionmac string `json:"partitionmac,omitempty"` - Partitionname string `json:"partitionname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr.go deleted file mode 100644 index dc32d78e4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr.go +++ /dev/null @@ -1,48 +0,0 @@ -package ns - -type Nspbr struct { - Action string `json:"action,omitempty"` - Curstate int `json:"curstate,omitempty"` - Data bool `json:"data,omitempty"` - Destip bool `json:"destip,omitempty"` - Destipop string `json:"destipop,omitempty"` - Destipval string `json:"destipval,omitempty"` - Destport bool `json:"destport,omitempty"` - Destportop string `json:"destportop,omitempty"` - Destportval string `json:"destportval,omitempty"` - Detail bool `json:"detail,omitempty"` - Failedprobes int `json:"failedprobes,omitempty"` - Hits int `json:"hits,omitempty"` - Interface string `json:"Interface,omitempty"` - Iptunnel bool `json:"iptunnel,omitempty"` - Iptunnelname string `json:"iptunnelname,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` - Monitor string `json:"monitor,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Msr string `json:"msr,omitempty"` - Name string `json:"name,omitempty"` - Nexthop bool `json:"nexthop,omitempty"` - Nexthopval string `json:"nexthopval,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Priority int `json:"priority,omitempty"` - Protocol string `json:"protocol,omitempty"` - Protocolnumber int `json:"protocolnumber,omitempty"` - Srcip bool `json:"srcip,omitempty"` - Srcipop string `json:"srcipop,omitempty"` - Srcipval string `json:"srcipval,omitempty"` - Srcmac string `json:"srcmac,omitempty"` - Srcmacmask string `json:"srcmacmask,omitempty"` - Srcport bool `json:"srcport,omitempty"` - Srcportop string `json:"srcportop,omitempty"` - Srcportval string `json:"srcportval,omitempty"` - State string `json:"state,omitempty"` - Td int `json:"td,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Totalprobes int `json:"totalprobes,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` - Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr6.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr6.go deleted file mode 100644 index d7855b037..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbr6.go +++ /dev/null @@ -1,48 +0,0 @@ -package ns - -type Nspbr6 struct { - Action string `json:"action,omitempty"` - Curstate int `json:"curstate,omitempty"` - Data bool `json:"data,omitempty"` - Destipop string `json:"destipop,omitempty"` - Destipv6 bool `json:"destipv6,omitempty"` - Destipv6val string `json:"destipv6val,omitempty"` - Destport bool `json:"destport,omitempty"` - Destportop string `json:"destportop,omitempty"` - Destportval string `json:"destportval,omitempty"` - Detail bool `json:"detail,omitempty"` - Failedprobes int `json:"failedprobes,omitempty"` - Hits int `json:"hits,omitempty"` - Interface string `json:"Interface,omitempty"` - Iptunnel string `json:"iptunnel,omitempty"` - Kernelstate string `json:"kernelstate,omitempty"` - Monitor string `json:"monitor,omitempty"` - Monstatcode int `json:"monstatcode,omitempty"` - Monstatparam1 int `json:"monstatparam1,omitempty"` - Monstatparam2 int `json:"monstatparam2,omitempty"` - Monstatparam3 int `json:"monstatparam3,omitempty"` - Msr string `json:"msr,omitempty"` - Name string `json:"name,omitempty"` - Nexthop bool `json:"nexthop,omitempty"` - Nexthopval string `json:"nexthopval,omitempty"` - Nexthopvlan int `json:"nexthopvlan,omitempty"` - Ownergroup string `json:"ownergroup,omitempty"` - Priority int `json:"priority,omitempty"` - Protocol string `json:"protocol,omitempty"` - Protocolnumber int `json:"protocolnumber,omitempty"` - Srcipop string `json:"srcipop,omitempty"` - Srcipv6 bool `json:"srcipv6,omitempty"` - Srcipv6val string `json:"srcipv6val,omitempty"` - Srcmac string `json:"srcmac,omitempty"` - Srcmacmask string `json:"srcmacmask,omitempty"` - Srcport bool `json:"srcport,omitempty"` - Srcportop string `json:"srcportop,omitempty"` - Srcportval string `json:"srcportval,omitempty"` - State string `json:"state,omitempty"` - Td int `json:"td,omitempty"` - Totalfailedprobes int `json:"totalfailedprobes,omitempty"` - Totalprobes int `json:"totalprobes,omitempty"` - Vlan int `json:"vlan,omitempty"` - Vxlan int `json:"vxlan,omitempty"` - Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbrs.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nspbrs.go deleted file mode 100644 index 216d96976..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nspbrs.go +++ /dev/null @@ -1 +0,0 @@ -package ns diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsratecontrol.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsratecontrol.go deleted file mode 100644 index b477ebf11..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsratecontrol.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nsratecontrol struct { - Icmpthreshold int `json:"icmpthreshold,omitempty"` - Tcprstthreshold int `json:"tcprstthreshold,omitempty"` - Tcpthreshold int `json:"tcpthreshold,omitempty"` - Udpthreshold int `json:"udpthreshold,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrollbackcmd.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsrollbackcmd.go deleted file mode 100644 index 667a75016..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrollbackcmd.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nsrollbackcmd struct { - Filename string `json:"filename,omitempty"` - Outtype string `json:"outtype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrpcnode.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsrpcnode.go deleted file mode 100644 index 10f304868..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrpcnode.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nsrpcnode struct { - Ipaddress string `json:"ipaddress,omitempty"` - Password string `json:"password,omitempty"` - Secure string `json:"secure,omitempty"` - Srcip string `json:"srcip,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrunningconfig.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsrunningconfig.go deleted file mode 100644 index 87a91ec73..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsrunningconfig.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nsrunningconfig struct { - Response string `json:"response,omitempty"` - Withdefaults bool `json:"withdefaults,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nssavedconfig.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nssavedconfig.go deleted file mode 100644 index 02a5ae4ee..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nssavedconfig.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nssavedconfig struct { - Textblob string `json:"textblob,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicefunction.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicefunction.go deleted file mode 100644 index 4ec8d16b9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicefunction.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nsservicefunction struct { - Ingressvlan int `json:"ingressvlan,omitempty"` - Servicefunctionname string `json:"servicefunctionname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath.go deleted file mode 100644 index d3f2e5150..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsservicepath struct { - Servicepathname string `json:"servicepathname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_binding.go deleted file mode 100644 index c477ab8e8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsservicepathbinding struct { - Servicepathname string `json:"servicepathname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_nsservicefunction_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_nsservicefunction_binding.go deleted file mode 100644 index 36291d63a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsservicepath_nsservicefunction_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nsservicepathnsservicefunctionbinding struct { - Index int `json:"index,omitempty"` - Servicefunction string `json:"servicefunction,omitempty"` - Servicepathname string `json:"servicepathname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl.go deleted file mode 100644 index ae82675be..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl.go +++ /dev/null @@ -1,13 +0,0 @@ -package ns - -type Nssimpleacl struct { - Aclaction string `json:"aclaction,omitempty"` - Aclname string `json:"aclname,omitempty"` - Destport int `json:"destport,omitempty"` - Estsessions bool `json:"estsessions,omitempty"` - Hits int `json:"hits,omitempty"` - Protocol string `json:"protocol,omitempty"` - Srcip string `json:"srcip,omitempty"` - Td int `json:"td,omitempty"` - Ttl int `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl6.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl6.go deleted file mode 100644 index 3bf7f47be..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nssimpleacl6.go +++ /dev/null @@ -1,13 +0,0 @@ -package ns - -type Nssimpleacl6 struct { - Aclaction string `json:"aclaction,omitempty"` - Aclname string `json:"aclname,omitempty"` - Destport int `json:"destport,omitempty"` - Estsessions bool `json:"estsessions,omitempty"` - Hits int `json:"hits,omitempty"` - Protocol string `json:"protocol,omitempty"` - Srcipv6 string `json:"srcipv6,omitempty"` - Td int `json:"td,omitempty"` - Ttl int `json:"ttl,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nssourceroutecachetable.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nssourceroutecachetable.go deleted file mode 100644 index 7ec211a75..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nssourceroutecachetable.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nssourceroutecachetable struct { - Interface string `json:"Interface,omitempty"` - Sourceip string `json:"sourceip,omitempty"` - Sourcemac string `json:"sourcemac,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsspparams.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsspparams.go deleted file mode 100644 index 054da9445..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsspparams.go +++ /dev/null @@ -1,9 +0,0 @@ -package ns - -type Nsspparams struct { - Basethreshold int `json:"basethreshold,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Table0 interface{} `json:"table0,omitempty"` - Throttle string `json:"throttle,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsstats.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsstats.go deleted file mode 100644 index 5fb8e8b4a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsstats.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nsstats struct { - Cleanuplevel string `json:"cleanuplevel,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nssurgeq.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nssurgeq.go deleted file mode 100644 index 9b1fdc12e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nssurgeq.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nssurgeq struct { - Name string `json:"name,omitempty"` - Port int `json:"port,omitempty"` - Servername string `json:"servername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpbufparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpbufparam.go deleted file mode 100644 index 1a4dbf7ae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpbufparam.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nstcpbufparam struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Memlimit int `json:"memlimit,omitempty"` - Size int `json:"size,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpparam.go deleted file mode 100644 index 798317b47..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpparam.go +++ /dev/null @@ -1,50 +0,0 @@ -package ns - -type Nstcpparam struct { - Ackonpush string `json:"ackonpush,omitempty"` - Autosyncookietimeout int `json:"autosyncookietimeout,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Connflushifnomem string `json:"connflushifnomem,omitempty"` - Connflushthres int `json:"connflushthres,omitempty"` - Delayedack int `json:"delayedack,omitempty"` - Downstaterst string `json:"downstaterst,omitempty"` - Feature string `json:"feature,omitempty"` - Initialcwnd int `json:"initialcwnd,omitempty"` - Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` - Learnvsvrmss string `json:"learnvsvrmss,omitempty"` - Limitedpersist string `json:"limitedpersist,omitempty"` - Maxburst int `json:"maxburst,omitempty"` - Maxdynserverprobes int `json:"maxdynserverprobes,omitempty"` - Maxpktpermss int `json:"maxpktpermss,omitempty"` - Maxsynackretx int `json:"maxsynackretx,omitempty"` - Maxsynhold int `json:"maxsynhold,omitempty"` - Maxsynholdperprobe int `json:"maxsynholdperprobe,omitempty"` - Maxtimewaitconn int `json:"maxtimewaitconn,omitempty"` - Minrto int `json:"minrto,omitempty"` - Mptcpchecksum string `json:"mptcpchecksum,omitempty"` - Mptcpclosemptcpsessiononlastsfclose string `json:"mptcpclosemptcpsessiononlastsfclose,omitempty"` - Mptcpconcloseonpassivesf string `json:"mptcpconcloseonpassivesf,omitempty"` - Mptcpimmediatesfcloseonfin string `json:"mptcpimmediatesfcloseonfin,omitempty"` - Mptcpmaxpendingsf int `json:"mptcpmaxpendingsf,omitempty"` - Mptcpmaxsf int `json:"mptcpmaxsf,omitempty"` - Mptcppendingjointhreshold int `json:"mptcppendingjointhreshold,omitempty"` - Mptcprtostoswitchsf int `json:"mptcprtostoswitchsf,omitempty"` - Mptcpsfreplacetimeout int `json:"mptcpsfreplacetimeout,omitempty"` - Mptcpsftimeout int `json:"mptcpsftimeout,omitempty"` - Mptcpusebackupondss string `json:"mptcpusebackupondss,omitempty"` - Msslearndelay int `json:"msslearndelay,omitempty"` - Msslearninterval int `json:"msslearninterval,omitempty"` - Nagle string `json:"nagle,omitempty"` - Oooqsize int `json:"oooqsize,omitempty"` - Pktperretx int `json:"pktperretx,omitempty"` - Recvbuffsize int `json:"recvbuffsize,omitempty"` - Sack string `json:"sack,omitempty"` - Slowstartincr int `json:"slowstartincr,omitempty"` - Synattackdetection string `json:"synattackdetection,omitempty"` - Synholdfastgiveup int `json:"synholdfastgiveup,omitempty"` - Tcpfastopencookietimeout int `json:"tcpfastopencookietimeout,omitempty"` - Tcpfintimeout int `json:"tcpfintimeout,omitempty"` - Tcpmaxretries int `json:"tcpmaxretries,omitempty"` - Ws string `json:"ws,omitempty"` - Wsval int `json:"wsval,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpprofile.go deleted file mode 100644 index b1451f1e4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstcpprofile.go +++ /dev/null @@ -1,62 +0,0 @@ -package ns - -type Nstcpprofile struct { - Ackaggregation string `json:"ackaggregation,omitempty"` - Ackonpush string `json:"ackonpush,omitempty"` - Applyadaptivetcp string `json:"applyadaptivetcp,omitempty"` - Buffersize int `json:"buffersize,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Burstratecontrol string `json:"burstratecontrol,omitempty"` - Clientiptcpoption string `json:"clientiptcpoption,omitempty"` - Clientiptcpoptionnumber int `json:"clientiptcpoptionnumber,omitempty"` - Delayedack int `json:"delayedack,omitempty"` - Dropestconnontimeout string `json:"dropestconnontimeout,omitempty"` - Drophalfclosedconnontimeout string `json:"drophalfclosedconnontimeout,omitempty"` - Dsack string `json:"dsack,omitempty"` - Dupackthresh int `json:"dupackthresh,omitempty"` - Dynamicreceivebuffering string `json:"dynamicreceivebuffering,omitempty"` - Ecn string `json:"ecn,omitempty"` - Establishclientconn string `json:"establishclientconn,omitempty"` - Fack string `json:"fack,omitempty"` - Feature string `json:"feature,omitempty"` - Flavor string `json:"flavor,omitempty"` - Frto string `json:"frto,omitempty"` - Hystart string `json:"hystart,omitempty"` - Initialcwnd int `json:"initialcwnd,omitempty"` - Ka string `json:"ka,omitempty"` - Kaconnidletime int `json:"kaconnidletime,omitempty"` - Kamaxprobes int `json:"kamaxprobes,omitempty"` - Kaprobeinterval int `json:"kaprobeinterval,omitempty"` - Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` - Maxburst int `json:"maxburst,omitempty"` - Maxcwnd int `json:"maxcwnd,omitempty"` - Maxpktpermss int `json:"maxpktpermss,omitempty"` - Minrto int `json:"minrto,omitempty"` - Mptcp string `json:"mptcp,omitempty"` - Mptcpdropdataonpreestsf string `json:"mptcpdropdataonpreestsf,omitempty"` - Mptcpfastopen string `json:"mptcpfastopen,omitempty"` - Mptcpsessiontimeout int `json:"mptcpsessiontimeout,omitempty"` - Mss int `json:"mss,omitempty"` - Nagle string `json:"nagle,omitempty"` - Name string `json:"name,omitempty"` - Oooqsize int `json:"oooqsize,omitempty"` - Pktperretx int `json:"pktperretx,omitempty"` - Rateqmax int `json:"rateqmax,omitempty"` - Refcnt int `json:"refcnt,omitempty"` - Rstmaxack string `json:"rstmaxack,omitempty"` - Rstwindowattenuate string `json:"rstwindowattenuate,omitempty"` - Sack string `json:"sack,omitempty"` - Sendbuffsize int `json:"sendbuffsize,omitempty"` - Slowstartincr int `json:"slowstartincr,omitempty"` - Spoofsyndrop string `json:"spoofsyndrop,omitempty"` - Syncookie string `json:"syncookie,omitempty"` - Taillossprobe string `json:"taillossprobe,omitempty"` - Tcpfastopen string `json:"tcpfastopen,omitempty"` - Tcpfastopencookiesize int `json:"tcpfastopencookiesize,omitempty"` - Tcpmode string `json:"tcpmode,omitempty"` - Tcprate int `json:"tcprate,omitempty"` - Tcpsegoffload string `json:"tcpsegoffload,omitempty"` - Timestamp string `json:"timestamp,omitempty"` - Ws string `json:"ws,omitempty"` - Wsval int `json:"wsval,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimeout.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstimeout.go deleted file mode 100644 index 1ebaeed92..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimeout.go +++ /dev/null @@ -1,20 +0,0 @@ -package ns - -type Nstimeout struct { - Anyclient int `json:"anyclient,omitempty"` - Anyserver int `json:"anyserver,omitempty"` - Anytcpclient int `json:"anytcpclient,omitempty"` - Anytcpserver int `json:"anytcpserver,omitempty"` - Client int `json:"client,omitempty"` - Halfclose int `json:"halfclose,omitempty"` - Httpclient int `json:"httpclient,omitempty"` - Httpserver int `json:"httpserver,omitempty"` - Newconnidletimeout int `json:"newconnidletimeout,omitempty"` - Nontcpzombie int `json:"nontcpzombie,omitempty"` - Reducedfintimeout int `json:"reducedfintimeout,omitempty"` - Reducedrsttimeout int `json:"reducedrsttimeout,omitempty"` - Server int `json:"server,omitempty"` - Tcpclient int `json:"tcpclient,omitempty"` - Tcpserver int `json:"tcpserver,omitempty"` - Zombie int `json:"zombie,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer.go deleted file mode 100644 index aaacf1c34..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer.go +++ /dev/null @@ -1,9 +0,0 @@ -package ns - -type Nstimer struct { - Comment string `json:"comment,omitempty"` - Interval int `json:"interval,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Unit string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_autoscalepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_autoscalepolicy_binding.go deleted file mode 100644 index ce06460f4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_autoscalepolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ns - -type Nstimerautoscalepolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Name string `json:"name,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Samplesize int `json:"samplesize,omitempty"` - Threshold int `json:"threshold,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_binding.go deleted file mode 100644 index deead6fee..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimer_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nstimerbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimezone.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstimezone.go deleted file mode 100644 index 4f1094d81..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstimezone.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nstimezone struct { - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain.go deleted file mode 100644 index 244d6744c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain.go +++ /dev/null @@ -1,8 +0,0 @@ -package ns - -type Nstrafficdomain struct { - Aliasname string `json:"aliasname,omitempty"` - State string `json:"state,omitempty"` - Td int `json:"td,omitempty"` - Vmac string `json:"vmac,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_binding.go deleted file mode 100644 index 8f9d03d7f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Nstrafficdomainbinding struct { - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_bridgegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_bridgegroup_binding.go deleted file mode 100644 index f8be23970..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_bridgegroup_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nstrafficdomainbridgegroupbinding struct { - Bridgegroup int `json:"bridgegroup,omitempty"` - Td int `json:"td,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vlan_binding.go deleted file mode 100644 index d7ea58c6e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vlan_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nstrafficdomainvlanbinding struct { - Td int `json:"td,omitempty"` - Vlan int `json:"vlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vxlan_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vxlan_binding.go deleted file mode 100644 index 3cf5253f0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nstrafficdomain_vxlan_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ns - -type Nstrafficdomainvxlanbinding struct { - Td int `json:"td,omitempty"` - Vxlan int `json:"vxlan,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsvariable.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsvariable.go deleted file mode 100644 index 6068d4f13..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsvariable.go +++ /dev/null @@ -1,14 +0,0 @@ -package ns - -type Nsvariable struct { - Comment string `json:"comment,omitempty"` - Expires int `json:"expires,omitempty"` - Iffull string `json:"iffull,omitempty"` - Ifnovalue string `json:"ifnovalue,omitempty"` - Ifvaluetoobig string `json:"ifvaluetoobig,omitempty"` - Init string `json:"init,omitempty"` - Name string `json:"name,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Scope string `json:"scope,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsversion.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsversion.go deleted file mode 100644 index 8bdad1a80..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsversion.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nsversion struct { - Installedversion bool `json:"installedversion,omitempty"` - Mode int `json:"mode,omitempty"` - Version string `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsvpxparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsvpxparam.go deleted file mode 100644 index 4ddb89630..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsvpxparam.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nsvpxparam struct { - Cpuyield string `json:"cpuyield,omitempty"` - Masterclockcpu1 string `json:"masterclockcpu1,omitempty"` - Ownernode int `json:"ownernode,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsweblogparam.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsweblogparam.go deleted file mode 100644 index d4adc0565..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsweblogparam.go +++ /dev/null @@ -1,9 +0,0 @@ -package ns - -type Nsweblogparam struct { - Buffersizemb int `json:"buffersizemb,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Customreqhdrs interface{} `json:"customreqhdrs,omitempty"` - Customrsphdrs interface{} `json:"customrsphdrs,omitempty"` - Feature string `json:"feature,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/nsxmlnamespace.go b/vendor/github.com/chiradeep/go-nitro/config/ns/nsxmlnamespace.go deleted file mode 100644 index da95fcd0b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/nsxmlnamespace.go +++ /dev/null @@ -1,7 +0,0 @@ -package ns - -type Nsxmlnamespace struct { - Description string `json:"description,omitempty"` - Namespace string `json:"Namespace,omitempty"` - Prefix string `json:"prefix,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/reboot.go b/vendor/github.com/chiradeep/go-nitro/config/ns/reboot.go deleted file mode 100644 index 355446e50..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/reboot.go +++ /dev/null @@ -1,5 +0,0 @@ -package ns - -type Reboot struct { - Warm bool `json:"warm,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ns/shutdown.go b/vendor/github.com/chiradeep/go-nitro/config/ns/shutdown.go deleted file mode 100644 index 216d96976..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ns/shutdown.go +++ /dev/null @@ -1 +0,0 @@ -package ns diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset.go deleted file mode 100644 index 0e2353e7f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset.go +++ /dev/null @@ -1,9 +0,0 @@ -package policy - -type Policydataset struct { - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Indextype string `json:"indextype,omitempty"` - Name string `json:"name,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_binding.go deleted file mode 100644 index 2b4e36b7d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package policy - -type Policydatasetbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_value_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_value_binding.go deleted file mode 100644 index c164433ab..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policydataset_value_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package policy - -type Policydatasetvaluebinding struct { - Comment string `json:"comment,omitempty"` - Index int `json:"index,omitempty"` - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policyevaluation.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policyevaluation.go deleted file mode 100644 index 6729b7d40..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policyevaluation.go +++ /dev/null @@ -1,35 +0,0 @@ -package policy - -type Policyevaluation struct { - Action string `json:"action,omitempty"` - Expression string `json:"expression,omitempty"` - Input string `json:"input,omitempty"` - Istruncatedrefresult bool `json:"istruncatedrefresult,omitempty"` - Pitactionerrorresult string `json:"pitactionerrorresult,omitempty"` - Pitactionevaltime int `json:"pitactionevaltime,omitempty"` - Pitboolerrorresult string `json:"pitboolerrorresult,omitempty"` - Pitboolevaltime int `json:"pitboolevaltime,omitempty"` - Pitboolresult bool `json:"pitboolresult,omitempty"` - Pitdoubleerrorresult string `json:"pitdoubleerrorresult,omitempty"` - Pitdoubleevaltime int `json:"pitdoubleevaltime,omitempty"` - Pitdoubleresult float64 `json:"pitdoubleresult,omitempty"` - Pitmodifiedinputdata string `json:"pitmodifiedinputdata,omitempty"` - Pitnewoffsetarray interface{} `json:"pitnewoffsetarray,omitempty"` - Pitnumerrorresult string `json:"pitnumerrorresult,omitempty"` - Pitnumevaltime int `json:"pitnumevaltime,omitempty"` - Pitnumresult int `json:"pitnumresult,omitempty"` - Pitoffseterrorresult string `json:"pitoffseterrorresult,omitempty"` - Pitoffsetevaltime int `json:"pitoffsetevaltime,omitempty"` - Pitoffsetlengtharray interface{} `json:"pitoffsetlengtharray,omitempty"` - Pitoffsetresult int `json:"pitoffsetresult,omitempty"` - Pitoffsetresultlen int `json:"pitoffsetresultlen,omitempty"` - Pitoldoffsetarray interface{} `json:"pitoldoffsetarray,omitempty"` - Pitoperationperformerarray interface{} `json:"pitoperationperformerarray,omitempty"` - Pitreferrorresult string `json:"pitreferrorresult,omitempty"` - Pitrefevaltime int `json:"pitrefevaltime,omitempty"` - Pitrefresult string `json:"pitrefresult,omitempty"` - Pitulongerrorresult string `json:"pitulongerrorresult,omitempty"` - Pitulongevaltime int `json:"pitulongevaltime,omitempty"` - Pitulongresult int `json:"pitulongresult,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policyexpression.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policyexpression.go deleted file mode 100644 index 3367a83eb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policyexpression.go +++ /dev/null @@ -1,16 +0,0 @@ -package policy - -type Policyexpression struct { - Builtin interface{} `json:"builtin,omitempty"` - Clientsecuritymessage string `json:"clientsecuritymessage,omitempty"` - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Name string `json:"name,omitempty"` - Pihits int `json:"pihits,omitempty"` - Type string `json:"type,omitempty"` - Type1 string `json:"type1,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policyhttpcallout.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policyhttpcallout.go deleted file mode 100644 index 8f0422682..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policyhttpcallout.go +++ /dev/null @@ -1,26 +0,0 @@ -package policy - -type Policyhttpcallout struct { - Bodyexpr string `json:"bodyexpr,omitempty"` - Cacheforsecs int `json:"cacheforsecs,omitempty"` - Comment string `json:"comment,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Fullreqexpr string `json:"fullreqexpr,omitempty"` - Headers interface{} `json:"headers,omitempty"` - Hits int `json:"hits,omitempty"` - Hostexpr string `json:"hostexpr,omitempty"` - Httpmethod string `json:"httpmethod,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Name string `json:"name,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` - Port int `json:"port,omitempty"` - Recursivecallout int `json:"recursivecallout,omitempty"` - Resultexpr string `json:"resultexpr,omitempty"` - Returntype string `json:"returntype,omitempty"` - Scheme string `json:"scheme,omitempty"` - Svrstate string `json:"svrstate,omitempty"` - Undefhits int `json:"undefhits,omitempty"` - Undefreason string `json:"undefreason,omitempty"` - Urlstemexpr string `json:"urlstemexpr,omitempty"` - Vserver string `json:"vserver,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policymap.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policymap.go deleted file mode 100644 index e8eb70c84..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policymap.go +++ /dev/null @@ -1,10 +0,0 @@ -package policy - -type Policymap struct { - Mappolicyname string `json:"mappolicyname,omitempty"` - Sd string `json:"sd,omitempty"` - Su string `json:"su,omitempty"` - Targetname string `json:"targetname,omitempty"` - Td string `json:"td,omitempty"` - Tu string `json:"tu,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policyparam.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policyparam.go deleted file mode 100644 index 6af343dc6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policyparam.go +++ /dev/null @@ -1,5 +0,0 @@ -package policy - -type Policyparam struct { - Timeout int `json:"timeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset.go deleted file mode 100644 index 8bebced44..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset.go +++ /dev/null @@ -1,8 +0,0 @@ -package policy - -type Policypatset struct { - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Indextype string `json:"indextype,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_binding.go deleted file mode 100644 index ec730987f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package policy - -type Policypatsetbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_pattern_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_pattern_binding.go deleted file mode 100644 index 45968dc47..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policypatset_pattern_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package policy - -type Policypatsetpatternbinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Charset string `json:"charset,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Index int `json:"index,omitempty"` - Name string `json:"name,omitempty"` - String string `json:"String,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap.go deleted file mode 100644 index b8185f03b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap.go +++ /dev/null @@ -1,6 +0,0 @@ -package policy - -type Policystringmap struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_binding.go deleted file mode 100644 index a9cd7815e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package policy - -type Policystringmapbinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_pattern_binding.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_pattern_binding.go deleted file mode 100644 index 7375e9753..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policystringmap_pattern_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package policy - -type Policystringmappatternbinding struct { - Key string `json:"key,omitempty"` - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/policy/policyurlset.go b/vendor/github.com/chiradeep/go-nitro/config/policy/policyurlset.go deleted file mode 100644 index 810fb7d9e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/policy/policyurlset.go +++ /dev/null @@ -1,16 +0,0 @@ -package policy - -type Policyurlset struct { - Canaryurl string `json:"canaryurl,omitempty"` - Comment string `json:"comment,omitempty"` - Delimiter string `json:"delimiter,omitempty"` - Imported bool `json:"imported,omitempty"` - Interval int `json:"interval,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Patterncount int `json:"patterncount,omitempty"` - Privateset bool `json:"privateset,omitempty"` - Rowseparator string `json:"rowseparator,omitempty"` - Subdomainexactmatch bool `json:"subdomainexactmatch,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderaction.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderaction.go deleted file mode 100644 index 123b1a660..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderaction.go +++ /dev/null @@ -1,19 +0,0 @@ -package responder - -type Responderaction struct { - Builtin interface{} `json:"builtin,omitempty"` - Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Headers interface{} `json:"headers,omitempty"` - Hits int `json:"hits,omitempty"` - Htmlpage string `json:"htmlpage,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Reasonphrase string `json:"reasonphrase,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Responsestatuscode int `json:"responsestatuscode,omitempty"` - Target string `json:"target,omitempty"` - Type string `json:"type,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_binding.go deleted file mode 100644 index bef8a9fb8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package responder diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_responderpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_responderpolicy_binding.go deleted file mode 100644 index 7243c3aad..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderglobal_responderpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package responder - -type Responderglobalresponderpolicybinding struct { - Flowtype int `json:"flowtype,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderhtmlpage.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderhtmlpage.go deleted file mode 100644 index 85d2809a6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderhtmlpage.go +++ /dev/null @@ -1,9 +0,0 @@ -package responder - -type Responderhtmlpage struct { - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Overwrite bool `json:"overwrite,omitempty"` - Response string `json:"response,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderparam.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderparam.go deleted file mode 100644 index 38fd25334..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderparam.go +++ /dev/null @@ -1,5 +0,0 @@ -package responder - -type Responderparam struct { - Undefaction string `json:"undefaction,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy.go deleted file mode 100644 index 94de5fbd1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy.go +++ /dev/null @@ -1,16 +0,0 @@ -package responder - -type Responderpolicy struct { - Action string `json:"action,omitempty"` - Appflowaction string `json:"appflowaction,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Logaction string `json:"logaction,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Rule string `json:"rule,omitempty"` - Undefaction string `json:"undefaction,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_binding.go deleted file mode 100644 index e1e33f027..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package responder - -type Responderpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_crvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_crvserver_binding.go deleted file mode 100644 index 5044f82d9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_crvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicycrvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_csvserver_binding.go deleted file mode 100644 index f8916b15e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_lbvserver_binding.go deleted file mode 100644 index e1faaf64a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderglobal_binding.go deleted file mode 100644 index 5937a8e86..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicyresponderglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderpolicylabel_binding.go deleted file mode 100644 index fdb9a7490..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicy_responderpolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicyresponderpolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel.go deleted file mode 100644 index 16fd35cba..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel.go +++ /dev/null @@ -1,14 +0,0 @@ -package responder - -type Responderpolicylabel struct { - Comment string `json:"comment,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policylabeltype string `json:"policylabeltype,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_binding.go deleted file mode 100644 index 4179fd8f5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package responder - -type Responderpolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_policybinding_binding.go deleted file mode 100644 index 21a60a769..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_responderpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_responderpolicy_binding.go deleted file mode 100644 index 8c7ff9879..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/responder/responderpolicylabel_responderpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package responder - -type Responderpolicylabelresponderpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteaction.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteaction.go deleted file mode 100644 index 679032c28..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteaction.go +++ /dev/null @@ -1,21 +0,0 @@ -package rewrite - -type Rewriteaction struct { - Builtin interface{} `json:"builtin,omitempty"` - Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Pattern string `json:"pattern,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Refinesearch string `json:"refinesearch,omitempty"` - Search string `json:"search,omitempty"` - Stringbuilderexpr string `json:"stringbuilderexpr,omitempty"` - Target string `json:"target,omitempty"` - Type string `json:"type,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_binding.go deleted file mode 100644 index 11c9629e4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package rewrite diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_rewritepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_rewritepolicy_binding.go deleted file mode 100644 index 6f00717cc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteglobal_rewritepolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package rewrite - -type Rewriteglobalrewritepolicybinding struct { - Flowtype int `json:"flowtype,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteparam.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteparam.go deleted file mode 100644 index 262f469da..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewriteparam.go +++ /dev/null @@ -1,6 +0,0 @@ -package rewrite - -type Rewriteparam struct { - Timeout int `json:"timeout,omitempty"` - Undefaction string `json:"undefaction,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy.go deleted file mode 100644 index d12829446..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy.go +++ /dev/null @@ -1,17 +0,0 @@ -package rewrite - -type Rewritepolicy struct { - Action string `json:"action,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Logaction string `json:"logaction,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Rule string `json:"rule,omitempty"` - Undefaction string `json:"undefaction,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_binding.go deleted file mode 100644 index 6650723ff..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package rewrite - -type Rewritepolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_csvserver_binding.go deleted file mode 100644 index f2ab9ce67..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_lbvserver_binding.go deleted file mode 100644 index b6034c99b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewriteglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewriteglobal_binding.go deleted file mode 100644 index c79bcb189..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewriteglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicyrewriteglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go deleted file mode 100644 index 77cbde281..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicyrewritepolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel.go deleted file mode 100644 index e34564e12..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel.go +++ /dev/null @@ -1,19 +0,0 @@ -package rewrite - -type Rewritepolicylabel struct { - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Flowtype int `json:"flowtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Priority int `json:"priority,omitempty"` - Transform string `json:"transform,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_binding.go deleted file mode 100644 index c5b5fd0fa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package rewrite - -type Rewritepolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_policybinding_binding.go deleted file mode 100644 index 8123cd2fb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go deleted file mode 100644 index e21ced202..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package rewrite - -type Rewritepolicylabelrewritepolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/router/routerdynamicrouting.go b/vendor/github.com/chiradeep/go-nitro/config/router/routerdynamicrouting.go deleted file mode 100644 index 09be46539..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/router/routerdynamicrouting.go +++ /dev/null @@ -1,7 +0,0 @@ -package router - -type Routerdynamicrouting struct { - Commandstring string `json:"commandstring,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Output string `json:"output,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslaction.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslaction.go deleted file mode 100644 index c1e84c06e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslaction.go +++ /dev/null @@ -1,38 +0,0 @@ -package ssl - -type Sslaction struct { - Builtin interface{} `json:"builtin,omitempty"` - Cacertgrpname string `json:"cacertgrpname,omitempty"` - Certfingerprintdigest string `json:"certfingerprintdigest,omitempty"` - Certfingerprintheader string `json:"certfingerprintheader,omitempty"` - Certhashheader string `json:"certhashheader,omitempty"` - Certheader string `json:"certheader,omitempty"` - Certissuerheader string `json:"certissuerheader,omitempty"` - Certnotafterheader string `json:"certnotafterheader,omitempty"` - Certnotbeforeheader string `json:"certnotbeforeheader,omitempty"` - Certserialheader string `json:"certserialheader,omitempty"` - Certsubjectheader string `json:"certsubjectheader,omitempty"` - Cipher string `json:"cipher,omitempty"` - Cipherheader string `json:"cipherheader,omitempty"` - Clientauth string `json:"clientauth,omitempty"` - Clientcert string `json:"clientcert,omitempty"` - Clientcertfingerprint string `json:"clientcertfingerprint,omitempty"` - Clientcerthash string `json:"clientcerthash,omitempty"` - Clientcertissuer string `json:"clientcertissuer,omitempty"` - Clientcertnotafter string `json:"clientcertnotafter,omitempty"` - Clientcertnotbefore string `json:"clientcertnotbefore,omitempty"` - Clientcertserialnumber string `json:"clientcertserialnumber,omitempty"` - Clientcertsubject string `json:"clientcertsubject,omitempty"` - Clientcertverification string `json:"clientcertverification,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Forward string `json:"forward,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Owasupport string `json:"owasupport,omitempty"` - Referencecount int `json:"referencecount,omitempty"` - Sessionid string `json:"sessionid,omitempty"` - Sessionidheader string `json:"sessionidheader,omitempty"` - Ssllogprofile string `json:"ssllogprofile,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup.go deleted file mode 100644 index 5d0fad1ad..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslcacertgroup struct { - Cacertgroupname string `json:"cacertgroupname,omitempty"` - Cacertgroupreferences int `json:"cacertgroupreferences,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_binding.go deleted file mode 100644 index fc08c031d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcacertgroupbinding struct { - Cacertgroupname string `json:"cacertgroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_sslcertkey_binding.go deleted file mode 100644 index 6fd483dff..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcacertgroup_sslcertkey_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslcacertgroupsslcertkeybinding struct { - Cacertgroupname string `json:"cacertgroupname,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcert.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcert.go deleted file mode 100644 index 5de55a223..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcert.go +++ /dev/null @@ -1,18 +0,0 @@ -package ssl - -type Sslcert struct { - Cacert string `json:"cacert,omitempty"` - Cacertform string `json:"cacertform,omitempty"` - Cakey string `json:"cakey,omitempty"` - Cakeyform string `json:"cakeyform,omitempty"` - Caserial string `json:"caserial,omitempty"` - Certfile string `json:"certfile,omitempty"` - Certform string `json:"certform,omitempty"` - Certtype string `json:"certtype,omitempty"` - Days int `json:"days,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Pempassphrase string `json:"pempassphrase,omitempty"` - Reqfile string `json:"reqfile,omitempty"` - Subjectaltname string `json:"subjectaltname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertbundle.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertbundle.go deleted file mode 100644 index c05b26dfb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertbundle.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslcertbundle struct { - Inuse string `json:"inuse,omitempty"` - Name string `json:"name,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain.go deleted file mode 100644 index 25deb5679..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcertchain struct { - Certkeyname string `json:"certkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_binding.go deleted file mode 100644 index 8c9490ff9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcertchainbinding struct { - Certkeyname string `json:"certkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_sslcertkey_binding.go deleted file mode 100644 index c24632d42..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertchain_sslcertkey_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package ssl - -type Sslcertchainsslcertkeybinding struct { - Addsubject bool `json:"addsubject,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Isca bool `json:"isca,omitempty"` - Islinked bool `json:"islinked,omitempty"` - Linkcertkeyname string `json:"linkcertkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertfile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertfile.go deleted file mode 100644 index 71e2f9d7b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertfile.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslcertfile struct { - Name string `json:"name,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertificatechain.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertificatechain.go deleted file mode 100644 index 3219a84ff..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertificatechain.go +++ /dev/null @@ -1,9 +0,0 @@ -package ssl - -type Sslcertificatechain struct { - Certkeyname string `json:"certkeyname,omitempty"` - Chaincomplete int `json:"chaincomplete,omitempty"` - Chainissuer string `json:"chainissuer,omitempty"` - Chainlinked interface{} `json:"chainlinked,omitempty"` - Chainpossiblelinks interface{} `json:"chainpossiblelinks,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey.go deleted file mode 100644 index 6409e8ae4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey.go +++ /dev/null @@ -1,38 +0,0 @@ -package ssl - -type Sslcertkey struct { - Builtin interface{} `json:"builtin,omitempty"` - Bundle string `json:"bundle,omitempty"` - Cert string `json:"cert,omitempty"` - Certificatetype interface{} `json:"certificatetype,omitempty"` - Certkey string `json:"certkey,omitempty"` - Clientcertnotafter string `json:"clientcertnotafter,omitempty"` - Clientcertnotbefore string `json:"clientcertnotbefore,omitempty"` - Data int `json:"data,omitempty"` - Daystoexpiration int `json:"daystoexpiration,omitempty"` - Deletefromdevice bool `json:"deletefromdevice,omitempty"` - Expirymonitor string `json:"expirymonitor,omitempty"` - Feature string `json:"feature,omitempty"` - Fipskey string `json:"fipskey,omitempty"` - Hsmkey string `json:"hsmkey,omitempty"` - Inform string `json:"inform,omitempty"` - Issuer string `json:"issuer,omitempty"` - Key string `json:"key,omitempty"` - Linkcertkeyname string `json:"linkcertkeyname,omitempty"` - Nodomaincheck bool `json:"nodomaincheck,omitempty"` - Notificationperiod int `json:"notificationperiod,omitempty"` - Ocspresponsestatus string `json:"ocspresponsestatus,omitempty"` - Ocspstaplingcache bool `json:"ocspstaplingcache,omitempty"` - Passcrypt string `json:"passcrypt,omitempty"` - Passplain string `json:"passplain,omitempty"` - Password bool `json:"password,omitempty"` - Priority int `json:"priority,omitempty"` - Publickey string `json:"publickey,omitempty"` - Publickeysize int `json:"publickeysize,omitempty"` - Serial string `json:"serial,omitempty"` - Servicename string `json:"servicename,omitempty"` - Signaturealg string `json:"signaturealg,omitempty"` - Status string `json:"status,omitempty"` - Subject string `json:"subject,omitempty"` - Version int `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_binding.go deleted file mode 100644 index af6d5fb1c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcertkeybinding struct { - Certkey string `json:"certkey,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_crldistribution_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_crldistribution_binding.go deleted file mode 100644 index f057d8fe8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_crldistribution_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslcertkeycrldistributionbinding struct { - Ca bool `json:"ca,omitempty"` - Certkey string `json:"certkey,omitempty"` - Issuer string `json:"issuer,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_service_binding.go deleted file mode 100644 index d8e6369ae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_service_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslcertkeyservicebinding struct { - Ca bool `json:"ca,omitempty"` - Certkey string `json:"certkey,omitempty"` - Data int `json:"data,omitempty"` - Service bool `json:"service,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - Version int `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslocspresponder_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslocspresponder_binding.go deleted file mode 100644 index e6c18c780..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslocspresponder_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslcertkeysslocspresponderbinding struct { - Ca bool `json:"ca,omitempty"` - Certkey string `json:"certkey,omitempty"` - Ocspresponder string `json:"ocspresponder,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslprofile_binding.go deleted file mode 100644 index c124cc46b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslprofile_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslcertkeysslprofilebinding struct { - Ca bool `json:"ca,omitempty"` - Certkey string `json:"certkey,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslvserver_binding.go deleted file mode 100644 index 800acf9f9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertkey_sslvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslcertkeysslvserverbinding struct { - Ca bool `json:"ca,omitempty"` - Certkey string `json:"certkey,omitempty"` - Data int `json:"data,omitempty"` - Servername string `json:"servername,omitempty"` - Version int `json:"version,omitempty"` - Vserver bool `json:"vserver,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertlink.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertlink.go deleted file mode 100644 index 7577ad620..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertlink.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslcertlink struct { - Certkeyname string `json:"certkeyname,omitempty"` - Linkcertkeyname string `json:"linkcertkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertreq.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertreq.go deleted file mode 100644 index 8ef18dc47..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcertreq.go +++ /dev/null @@ -1,20 +0,0 @@ -package ssl - -type Sslcertreq struct { - Challengepassword string `json:"challengepassword,omitempty"` - Commonname string `json:"commonname,omitempty"` - Companyname string `json:"companyname,omitempty"` - Countryname string `json:"countryname,omitempty"` - Digestmethod string `json:"digestmethod,omitempty"` - Emailaddress string `json:"emailaddress,omitempty"` - Fipskeyname string `json:"fipskeyname,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Localityname string `json:"localityname,omitempty"` - Organizationname string `json:"organizationname,omitempty"` - Organizationunitname string `json:"organizationunitname,omitempty"` - Pempassphrase string `json:"pempassphrase,omitempty"` - Reqfile string `json:"reqfile,omitempty"` - Statename string `json:"statename,omitempty"` - Subjectaltname string `json:"subjectaltname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher.go deleted file mode 100644 index f189ca9d8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher.go +++ /dev/null @@ -1,9 +0,0 @@ -package ssl - -type Sslcipher struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpalias string `json:"ciphgrpalias,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_binding.go deleted file mode 100644 index f88a6d73a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcipherbinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_individualcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_individualcipher_binding.go deleted file mode 100644 index 401e8f73d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_individualcipher_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package ssl - -type Sslcipherindividualcipherbinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Description string `json:"description,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_service_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_service_binding.go deleted file mode 100644 index b86009ea8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_service_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslcipherservicebinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Service bool `json:"service,omitempty"` - Servicegroup bool `json:"servicegroup,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_servicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_servicegroup_binding.go deleted file mode 100644 index 2c38cd5b5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_servicegroup_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslcipherservicegroupbinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Service bool `json:"service,omitempty"` - Servicegroup bool `json:"servicegroup,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslciphersuite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslciphersuite_binding.go deleted file mode 100644 index 2bcd61bd1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslciphersuite_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package ssl - -type Sslciphersslciphersuitebinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Description string `json:"description,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslprofile_binding.go deleted file mode 100644 index ee78f6393..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslprofile_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package ssl - -type Sslciphersslprofilebinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Description string `json:"description,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslvserver_binding.go deleted file mode 100644 index 9d4b83711..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcipher_sslvserver_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package ssl - -type Sslciphersslvserverbinding struct { - Ciphergroupname string `json:"ciphergroupname,omitempty"` - Cipheroperation string `json:"cipheroperation,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Ciphgrpals string `json:"ciphgrpals,omitempty"` - Vserver bool `json:"vserver,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslciphersuite.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslciphersuite.go deleted file mode 100644 index 9e1ceda0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslciphersuite.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslciphersuite struct { - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl.go deleted file mode 100644 index 63c9947c8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl.go +++ /dev/null @@ -1,34 +0,0 @@ -package ssl - -type Sslcrl struct { - Basedn string `json:"basedn,omitempty"` - Binary string `json:"binary,omitempty"` - Binddn string `json:"binddn,omitempty"` - Cacert string `json:"cacert,omitempty"` - Cacertfile string `json:"cacertfile,omitempty"` - Cakeyfile string `json:"cakeyfile,omitempty"` - Crlname string `json:"crlname,omitempty"` - Crlpath string `json:"crlpath,omitempty"` - Day int `json:"day,omitempty"` - Daystoexpiration int `json:"daystoexpiration,omitempty"` - Flags int `json:"flags,omitempty"` - Gencrl string `json:"gencrl,omitempty"` - Indexfile string `json:"indexfile,omitempty"` - Inform string `json:"inform,omitempty"` - Interval string `json:"interval,omitempty"` - Issuer string `json:"issuer,omitempty"` - Lastupdate string `json:"lastupdate,omitempty"` - Lastupdatetime int `json:"lastupdatetime,omitempty"` - Method string `json:"method,omitempty"` - Nextupdate string `json:"nextupdate,omitempty"` - Password string `json:"password,omitempty"` - Port int `json:"port,omitempty"` - Refresh string `json:"refresh,omitempty"` - Revoke string `json:"revoke,omitempty"` - Scope string `json:"scope,omitempty"` - Server string `json:"server,omitempty"` - Signaturealgo string `json:"signaturealgo,omitempty"` - Time string `json:"time,omitempty"` - Url string `json:"url,omitempty"` - Version int `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_binding.go deleted file mode 100644 index be545b3c7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslcrlbinding struct { - Crlname string `json:"crlname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_serialnumber_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_serialnumber_binding.go deleted file mode 100644 index d3bc5e42f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrl_serialnumber_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslcrlserialnumberbinding struct { - Crlname string `json:"crlname,omitempty"` - Date string `json:"date,omitempty"` - Number string `json:"number,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrlfile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrlfile.go deleted file mode 100644 index c7fb09a0c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslcrlfile.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslcrlfile struct { - Name string `json:"name,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhfile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhfile.go deleted file mode 100644 index 467646434..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhfile.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Ssldhfile struct { - Name string `json:"name,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhparam.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhparam.go deleted file mode 100644 index c177c5b72..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldhparam.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Ssldhparam struct { - Bits int `json:"bits,omitempty"` - Dhfile string `json:"dhfile,omitempty"` - Gen string `json:"gen,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldsakey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldsakey.go deleted file mode 100644 index bc150bf46..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldsakey.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Ssldsakey struct { - Aes256 bool `json:"aes256,omitempty"` - Bits int `json:"bits,omitempty"` - Des bool `json:"des,omitempty"` - Des3 bool `json:"des3,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Password string `json:"password,omitempty"` - Pkcs8 bool `json:"pkcs8,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldtlsprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldtlsprofile.go deleted file mode 100644 index bbf949bfa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssldtlsprofile.go +++ /dev/null @@ -1,13 +0,0 @@ -package ssl - -type Ssldtlsprofile struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Helloverifyrequest string `json:"helloverifyrequest,omitempty"` - Maxpacketsize int `json:"maxpacketsize,omitempty"` - Maxrecordsize int `json:"maxrecordsize,omitempty"` - Maxretrytime int `json:"maxretrytime,omitempty"` - Name string `json:"name,omitempty"` - Pmtudiscovery string `json:"pmtudiscovery,omitempty"` - Terminatesession string `json:"terminatesession,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslecdsakey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslecdsakey.go deleted file mode 100644 index 591247cf8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslecdsakey.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslecdsakey struct { - Aes256 bool `json:"aes256,omitempty"` - Curve string `json:"curve,omitempty"` - Des bool `json:"des,omitempty"` - Des3 bool `json:"des3,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Password string `json:"password,omitempty"` - Pkcs8 bool `json:"pkcs8,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfips.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfips.go deleted file mode 100644 index 679d6ce81..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfips.go +++ /dev/null @@ -1,29 +0,0 @@ -package ssl - -type Sslfips struct { - Coresenabled int `json:"coresenabled,omitempty"` - Coresmax int `json:"coresmax,omitempty"` - Erasedata string `json:"erasedata,omitempty"` - Fipsfw string `json:"fipsfw,omitempty"` - Fipshwmajorversion int `json:"fipshwmajorversion,omitempty"` - Fipshwminorversion int `json:"fipshwminorversion,omitempty"` - Fipshwversionstring string `json:"fipshwversionstring,omitempty"` - Firmwarereleasedate string `json:"firmwarereleasedate,omitempty"` - Flag int `json:"flag,omitempty"` - Flashmemoryfree int `json:"flashmemoryfree,omitempty"` - Flashmemorytotal int `json:"flashmemorytotal,omitempty"` - Hsmlabel string `json:"hsmlabel,omitempty"` - Inithsm string `json:"inithsm,omitempty"` - Majorversion int `json:"majorversion,omitempty"` - Minorversion int `json:"minorversion,omitempty"` - Model string `json:"model,omitempty"` - Oldsopassword string `json:"oldsopassword,omitempty"` - Serial int `json:"serial,omitempty"` - Serialno string `json:"serialno,omitempty"` - Sopassword string `json:"sopassword,omitempty"` - Sramfree int `json:"sramfree,omitempty"` - Sramtotal int `json:"sramtotal,omitempty"` - State int `json:"state,omitempty"` - Status int `json:"status,omitempty"` - Userpassword string `json:"userpassword,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipskey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipskey.go deleted file mode 100644 index c60249ab4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipskey.go +++ /dev/null @@ -1,14 +0,0 @@ -package ssl - -type Sslfipskey struct { - Curve string `json:"curve,omitempty"` - Exponent string `json:"exponent,omitempty"` - Fipskeyname string `json:"fipskeyname,omitempty"` - Inform string `json:"inform,omitempty"` - Iv string `json:"iv,omitempty"` - Key string `json:"key,omitempty"` - Keytype string `json:"keytype,omitempty"` - Modulus int `json:"modulus,omitempty"` - Size int `json:"size,omitempty"` - Wrapkeyname string `json:"wrapkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimsource.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimsource.go deleted file mode 100644 index 796b8df25..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimsource.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslfipssimsource struct { - Certfile string `json:"certfile,omitempty"` - Sourcesecret string `json:"sourcesecret,omitempty"` - Targetsecret string `json:"targetsecret,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimtarget.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimtarget.go deleted file mode 100644 index 22c11ffde..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslfipssimtarget.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslfipssimtarget struct { - Certfile string `json:"certfile,omitempty"` - Keyvector string `json:"keyvector,omitempty"` - Sourcesecret string `json:"sourcesecret,omitempty"` - Targetsecret string `json:"targetsecret,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_binding.go deleted file mode 100644 index 912c43fad..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package ssl diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_sslpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_sslpolicy_binding.go deleted file mode 100644 index ee9a95768..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslglobal_sslpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslglobalsslpolicybinding struct { - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslhsmkey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslhsmkey.go deleted file mode 100644 index 83cb03634..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslhsmkey.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslhsmkey struct { - Hsmkeyname string `json:"hsmkeyname,omitempty"` - Hsmtype string `json:"hsmtype,omitempty"` - Key string `json:"key,omitempty"` - Keystore string `json:"keystore,omitempty"` - Password string `json:"password,omitempty"` - Serialnum string `json:"serialnum,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslkeyfile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslkeyfile.go deleted file mode 100644 index 453b39f38..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslkeyfile.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslkeyfile struct { - Name string `json:"name,omitempty"` - Password string `json:"password,omitempty"` - Src string `json:"src,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssllogprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/ssllogprofile.go deleted file mode 100644 index 413f71d39..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/ssllogprofile.go +++ /dev/null @@ -1,9 +0,0 @@ -package ssl - -type Ssllogprofile struct { - Name string `json:"name,omitempty"` - Ssllogclauth string `json:"ssllogclauth,omitempty"` - Ssllogclauthfailures string `json:"ssllogclauthfailures,omitempty"` - Sslloghs string `json:"sslloghs,omitempty"` - Sslloghsfailures string `json:"sslloghsfailures,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslocspresponder.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslocspresponder.go deleted file mode 100644 index a31c6bbf2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslocspresponder.go +++ /dev/null @@ -1,22 +0,0 @@ -package ssl - -type Sslocspresponder struct { - Batchingdelay int `json:"batchingdelay,omitempty"` - Batchingdepth int `json:"batchingdepth,omitempty"` - Cache string `json:"cache,omitempty"` - Cachetimeout int `json:"cachetimeout,omitempty"` - Httpmethod string `json:"httpmethod,omitempty"` - Insertclientcert string `json:"insertclientcert,omitempty"` - Name string `json:"name,omitempty"` - Ocspaiarefcount int `json:"ocspaiarefcount,omitempty"` - Ocspipaddrstr string `json:"ocspipaddrstr,omitempty"` - Ocspurlresolvetimeout int `json:"ocspurlresolvetimeout,omitempty"` - Port int `json:"port,omitempty"` - Producedattimeskew int `json:"producedattimeskew,omitempty"` - Respondercert string `json:"respondercert,omitempty"` - Resptimeout int `json:"resptimeout,omitempty"` - Signingcert string `json:"signingcert,omitempty"` - Trustresponder bool `json:"trustresponder,omitempty"` - Url string `json:"url,omitempty"` - Usenonce string `json:"usenonce,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslparameter.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslparameter.go deleted file mode 100644 index 53bb97d83..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslparameter.go +++ /dev/null @@ -1,31 +0,0 @@ -package ssl - -type Sslparameter struct { - Crlmemorysizemb int `json:"crlmemorysizemb,omitempty"` - Cryptodevdisablelimit int `json:"cryptodevdisablelimit,omitempty"` - Defaultprofile string `json:"defaultprofile,omitempty"` - Denysslreneg string `json:"denysslreneg,omitempty"` - Dropreqwithnohostheader string `json:"dropreqwithnohostheader,omitempty"` - Encrypttriggerpktcount int `json:"encrypttriggerpktcount,omitempty"` - Heterogeneoussslhw string `json:"heterogeneoussslhw,omitempty"` - Hybridfipsmode string `json:"hybridfipsmode,omitempty"` - Insertcertspace string `json:"insertcertspace,omitempty"` - Insertionencoding string `json:"insertionencoding,omitempty"` - Montls1112disable string `json:"montls1112disable,omitempty"` - Ndcppcompliancecertcheck string `json:"ndcppcompliancecertcheck,omitempty"` - Ocspcachesize int `json:"ocspcachesize,omitempty"` - Pushenctriggertimeout int `json:"pushenctriggertimeout,omitempty"` - Pushflag int `json:"pushflag,omitempty"` - Quantumsize string `json:"quantumsize,omitempty"` - Sendclosenotify string `json:"sendclosenotify,omitempty"` - Sigdigesttype interface{} `json:"sigdigesttype,omitempty"` - Snihttphostmatch string `json:"snihttphostmatch,omitempty"` - Softwarecryptothreshold int `json:"softwarecryptothreshold,omitempty"` - Sslierrorcache string `json:"sslierrorcache,omitempty"` - Sslimaxerrorcachemem int `json:"sslimaxerrorcachemem,omitempty"` - Ssltriggertimeout int `json:"ssltriggertimeout,omitempty"` - Strictcachecks string `json:"strictcachecks,omitempty"` - Svctls1112disable string `json:"svctls1112disable,omitempty"` - Undefactioncontrol string `json:"undefactioncontrol,omitempty"` - Undefactiondata string `json:"undefactiondata,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs12.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs12.go deleted file mode 100644 index dbf70602f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs12.go +++ /dev/null @@ -1,15 +0,0 @@ -package ssl - -type Sslpkcs12 struct { - Aes256 bool `json:"aes256,omitempty"` - Certfile string `json:"certfile,omitempty"` - Des bool `json:"des,omitempty"` - Des3 bool `json:"des3,omitempty"` - Export bool `json:"export,omitempty"` - Import bool `json:"Import,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Outfile string `json:"outfile,omitempty"` - Password string `json:"password,omitempty"` - Pempassphrase string `json:"pempassphrase,omitempty"` - Pkcs12file string `json:"pkcs12file,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs8.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs8.go deleted file mode 100644 index d05b0d065..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpkcs8.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslpkcs8 struct { - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Password string `json:"password,omitempty"` - Pkcs8file string `json:"pkcs8file,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy.go deleted file mode 100644 index 9d151284e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy.go +++ /dev/null @@ -1,16 +0,0 @@ -package ssl - -type Sslpolicy struct { - Action string `json:"action,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Description string `json:"description,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Name string `json:"name,omitempty"` - Policytype string `json:"policytype,omitempty"` - Reqaction string `json:"reqaction,omitempty"` - Rule string `json:"rule,omitempty"` - Undefaction string `json:"undefaction,omitempty"` - Undefhits int `json:"undefhits,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_binding.go deleted file mode 100644 index dfd81efc8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_csvserver_binding.go deleted file mode 100644 index 844078d3c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_lbvserver_binding.go deleted file mode 100644 index 32844f978..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslglobal_binding.go deleted file mode 100644 index b04cf0087..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicysslglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslpolicylabel_binding.go deleted file mode 100644 index 58d112319..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslpolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicysslpolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslservice_binding.go deleted file mode 100644 index 8563499a1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslservice_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicysslservicebinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslvserver_binding.go deleted file mode 100644 index 6504e6d58..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicy_sslvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicysslvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel.go deleted file mode 100644 index 5eec9206d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel.go +++ /dev/null @@ -1,16 +0,0 @@ -package ssl - -type Sslpolicylabel struct { - Description string `json:"description,omitempty"` - Flowtype int `json:"flowtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_binding.go deleted file mode 100644 index 96f9f37de..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslpolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_sslpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_sslpolicy_binding.go deleted file mode 100644 index 0af20a47e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslpolicylabel_sslpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package ssl - -type Sslpolicylabelsslpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile.go deleted file mode 100644 index 02cb11011..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile.go +++ /dev/null @@ -1,77 +0,0 @@ -package ssl - -type Sslprofile struct { - Builtin interface{} `json:"builtin,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Cipherredirect string `json:"cipherredirect,omitempty"` - Cipherurl string `json:"cipherurl,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Clientauth string `json:"clientauth,omitempty"` - Clientauthuseboundcachain string `json:"clientauthuseboundcachain,omitempty"` - Clientcert string `json:"clientcert,omitempty"` - Commonname string `json:"commonname,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Denysslreneg string `json:"denysslreneg,omitempty"` - Dh string `json:"dh,omitempty"` - Dhcount int `json:"dhcount,omitempty"` - Dhekeyexchangewithpsk string `json:"dhekeyexchangewithpsk,omitempty"` - Dhfile string `json:"dhfile,omitempty"` - Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` - Dropreqwithnohostheader string `json:"dropreqwithnohostheader,omitempty"` - Encrypttriggerpktcount int `json:"encrypttriggerpktcount,omitempty"` - Ersa string `json:"ersa,omitempty"` - Ersacount int `json:"ersacount,omitempty"` - Feature string `json:"feature,omitempty"` - Hsts string `json:"hsts,omitempty"` - Includesubdomains string `json:"includesubdomains,omitempty"` - Insertionencoding string `json:"insertionencoding,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Maxage int `json:"maxage,omitempty"` - Name string `json:"name,omitempty"` - Nonfipsciphers string `json:"nonfipsciphers,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Ocspstapling string `json:"ocspstapling,omitempty"` - Preload string `json:"preload,omitempty"` - Prevsessionkeylifetime int `json:"prevsessionkeylifetime,omitempty"` - Pushenctrigger string `json:"pushenctrigger,omitempty"` - Pushenctriggertimeout int `json:"pushenctriggertimeout,omitempty"` - Pushflag int `json:"pushflag,omitempty"` - Quantumsize string `json:"quantumsize,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Sendclosenotify string `json:"sendclosenotify,omitempty"` - Serverauth string `json:"serverauth,omitempty"` - Service int `json:"service,omitempty"` - Sessionkeylifetime int `json:"sessionkeylifetime,omitempty"` - Sessionticket string `json:"sessionticket,omitempty"` - Sessionticketkeydata string `json:"sessionticketkeydata,omitempty"` - Sessionticketkeyrefresh string `json:"sessionticketkeyrefresh,omitempty"` - Sessionticketlifetime int `json:"sessionticketlifetime,omitempty"` - Sessreuse string `json:"sessreuse,omitempty"` - Sesstimeout int `json:"sesstimeout,omitempty"` - Skipcaname bool `json:"skipcaname,omitempty"` - Skipclientcertpolicycheck string `json:"skipclientcertpolicycheck,omitempty"` - Snicert bool `json:"snicert,omitempty"` - Snienable string `json:"snienable,omitempty"` - Snihttphostmatch string `json:"snihttphostmatch,omitempty"` - Ssl3 string `json:"ssl3,omitempty"` - Sslimaxsessperserver int `json:"sslimaxsessperserver,omitempty"` - Sslinterception string `json:"sslinterception,omitempty"` - Ssliocspcheck string `json:"ssliocspcheck,omitempty"` - Sslireneg string `json:"sslireneg,omitempty"` - Ssliverifyservercertforreuse string `json:"ssliverifyservercertforreuse,omitempty"` - Ssllogprofile string `json:"ssllogprofile,omitempty"` - Sslpfobjecttype int `json:"sslpfobjecttype,omitempty"` - Sslprofiletype string `json:"sslprofiletype,omitempty"` - Sslredirect string `json:"sslredirect,omitempty"` - Ssltriggertimeout int `json:"ssltriggertimeout,omitempty"` - Strictcachecks string `json:"strictcachecks,omitempty"` - Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` - Tls1 string `json:"tls1,omitempty"` - Tls11 string `json:"tls11,omitempty"` - Tls12 string `json:"tls12,omitempty"` - Tls13 string `json:"tls13,omitempty"` - Tls13sessionticketsperauthcontext int `json:"tls13sessionticketsperauthcontext,omitempty"` - Zerorttearlydata string `json:"zerorttearlydata,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_binding.go deleted file mode 100644 index 9fb93d33d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslprofilebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_ecccurve_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_ecccurve_binding.go deleted file mode 100644 index 89314eec6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_ecccurve_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslprofileecccurvebinding struct { - Cipherpriority int `json:"cipherpriority,omitempty"` - Ecccurvename string `json:"ecccurvename,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcertkey_binding.go deleted file mode 100644 index abc140588..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcertkey_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslprofilesslcertkeybinding struct { - Cipherpriority int `json:"cipherpriority,omitempty"` - Name string `json:"name,omitempty"` - Sslicacertkey string `json:"sslicacertkey,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcipher_binding.go deleted file mode 100644 index c549f61b8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslcipher_binding.go +++ /dev/null @@ -1,9 +0,0 @@ -package ssl - -type Sslprofilesslcipherbinding struct { - Cipheraliasname string `json:"cipheraliasname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Description string `json:"description,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslciphersuite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslciphersuite_binding.go deleted file mode 100644 index a794d8c95..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslciphersuite_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslprofilesslciphersuitebinding struct { - Ciphername string `json:"ciphername,omitempty"` - Cipherpriority int `json:"cipherpriority,omitempty"` - Description string `json:"description,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslvserver_binding.go deleted file mode 100644 index e4f0c53ed..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslprofile_sslvserver_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslprofilesslvserverbinding struct { - Cipherpriority int `json:"cipherpriority,omitempty"` - Description string `json:"description,omitempty"` - Name string `json:"name,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslrsakey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslrsakey.go deleted file mode 100644 index a26b0a542..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslrsakey.go +++ /dev/null @@ -1,13 +0,0 @@ -package ssl - -type Sslrsakey struct { - Aes256 bool `json:"aes256,omitempty"` - Bits int `json:"bits,omitempty"` - Des bool `json:"des,omitempty"` - Des3 bool `json:"des3,omitempty"` - Exponent string `json:"exponent,omitempty"` - Keyfile string `json:"keyfile,omitempty"` - Keyform string `json:"keyform,omitempty"` - Password string `json:"password,omitempty"` - Pkcs8 bool `json:"pkcs8,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice.go deleted file mode 100644 index 7caf9427c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice.go +++ /dev/null @@ -1,42 +0,0 @@ -package ssl - -type Sslservice struct { - Cipherredirect string `json:"cipherredirect,omitempty"` - Cipherurl string `json:"cipherurl,omitempty"` - Clientauth string `json:"clientauth,omitempty"` - Clientcert string `json:"clientcert,omitempty"` - Commonname string `json:"commonname,omitempty"` - Dh string `json:"dh,omitempty"` - Dhcount int `json:"dhcount,omitempty"` - Dhfile string `json:"dhfile,omitempty"` - Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` - Dtls1 string `json:"dtls1,omitempty"` - Dtls12 string `json:"dtls12,omitempty"` - Dtlsflag bool `json:"dtlsflag,omitempty"` - Dtlsprofilename string `json:"dtlsprofilename,omitempty"` - Ersa string `json:"ersa,omitempty"` - Ersacount int `json:"ersacount,omitempty"` - Nonfipsciphers string `json:"nonfipsciphers,omitempty"` - Ocspstapling string `json:"ocspstapling,omitempty"` - Pushenctrigger string `json:"pushenctrigger,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Sendclosenotify string `json:"sendclosenotify,omitempty"` - Serverauth string `json:"serverauth,omitempty"` - Service int `json:"service,omitempty"` - Servicename string `json:"servicename,omitempty"` - Sessreuse string `json:"sessreuse,omitempty"` - Sesstimeout int `json:"sesstimeout,omitempty"` - Skipcaname bool `json:"skipcaname,omitempty"` - Snienable string `json:"snienable,omitempty"` - Ssl2 string `json:"ssl2,omitempty"` - Ssl3 string `json:"ssl3,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` - Sslredirect string `json:"sslredirect,omitempty"` - Sslv2redirect string `json:"sslv2redirect,omitempty"` - Sslv2url string `json:"sslv2url,omitempty"` - Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` - Tls1 string `json:"tls1,omitempty"` - Tls11 string `json:"tls11,omitempty"` - Tls12 string `json:"tls12,omitempty"` - Tls13 string `json:"tls13,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_binding.go deleted file mode 100644 index a0b4cb783..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslservicebinding struct { - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_ecccurve_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_ecccurve_binding.go deleted file mode 100644 index 91728b8d2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_ecccurve_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslserviceecccurvebinding struct { - Ecccurvename string `json:"ecccurvename,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcertkey_binding.go deleted file mode 100644 index 5b28d2af0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcertkey_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslservicesslcertkeybinding struct { - Ca bool `json:"ca,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Servicename string `json:"servicename,omitempty"` - Skipcaname bool `json:"skipcaname,omitempty"` - Snicert bool `json:"snicert,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcipher_binding.go deleted file mode 100644 index dd201ed7b..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslcipher_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslservicesslcipherbinding struct { - Cipheraliasname string `json:"cipheraliasname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslciphersuite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslciphersuite_binding.go deleted file mode 100644 index 772d80b29..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslciphersuite_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslservicesslciphersuitebinding struct { - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslpolicy_binding.go deleted file mode 100644 index 5f323cbfb..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservice_sslpolicy_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslservicesslpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Polinherit int `json:"polinherit,omitempty"` - Priority int `json:"priority,omitempty"` - Servicename string `json:"servicename,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup.go deleted file mode 100644 index a06c4c3ca..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup.go +++ /dev/null @@ -1,41 +0,0 @@ -package ssl - -type Sslservicegroup struct { - Ca bool `json:"ca,omitempty"` - Cipherredirect string `json:"cipherredirect,omitempty"` - Cipherurl string `json:"cipherurl,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Clientauth string `json:"clientauth,omitempty"` - Clientcert string `json:"clientcert,omitempty"` - Commonname string `json:"commonname,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Dh string `json:"dh,omitempty"` - Dhcount int `json:"dhcount,omitempty"` - Dhfile string `json:"dhfile,omitempty"` - Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` - Ersa string `json:"ersa,omitempty"` - Ersacount int `json:"ersacount,omitempty"` - Nonfipsciphers string `json:"nonfipsciphers,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Ocspstapling string `json:"ocspstapling,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Sendclosenotify string `json:"sendclosenotify,omitempty"` - Serverauth string `json:"serverauth,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Servicename string `json:"servicename,omitempty"` - Sessreuse string `json:"sessreuse,omitempty"` - Sesstimeout int `json:"sesstimeout,omitempty"` - Snicert bool `json:"snicert,omitempty"` - Snienable string `json:"snienable,omitempty"` - Ssl2 string `json:"ssl2,omitempty"` - Ssl3 string `json:"ssl3,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` - Sslredirect string `json:"sslredirect,omitempty"` - Sslv2redirect string `json:"sslv2redirect,omitempty"` - Sslv2url string `json:"sslv2url,omitempty"` - Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` - Tls1 string `json:"tls1,omitempty"` - Tls11 string `json:"tls11,omitempty"` - Tls12 string `json:"tls12,omitempty"` - Tls13 string `json:"tls13,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_binding.go deleted file mode 100644 index 68e963043..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslservicegroupbinding struct { - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_ecccurve_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_ecccurve_binding.go deleted file mode 100644 index ff42b07d7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_ecccurve_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslservicegroupecccurvebinding struct { - Ecccurvename string `json:"ecccurvename,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcertkey_binding.go deleted file mode 100644 index 5dd8b7c98..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcertkey_binding.go +++ /dev/null @@ -1,10 +0,0 @@ -package ssl - -type Sslservicegroupsslcertkeybinding struct { - Ca bool `json:"ca,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` - Snicert bool `json:"snicert,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcipher_binding.go deleted file mode 100644 index a4da49910..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslcipher_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslservicegroupsslcipherbinding struct { - Cipheraliasname string `json:"cipheraliasname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslciphersuite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslciphersuite_binding.go deleted file mode 100644 index 422b07fd8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslservicegroup_sslciphersuite_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslservicegroupsslciphersuitebinding struct { - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Servicegroupname string `json:"servicegroupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver.go deleted file mode 100644 index f07e410be..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver.go +++ /dev/null @@ -1,52 +0,0 @@ -package ssl - -type Sslvserver struct { - Ca bool `json:"ca,omitempty"` - Cipherredirect string `json:"cipherredirect,omitempty"` - Cipherurl string `json:"cipherurl,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Clientauth string `json:"clientauth,omitempty"` - Clientcert string `json:"clientcert,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Dh string `json:"dh,omitempty"` - Dhcount int `json:"dhcount,omitempty"` - Dhekeyexchangewithpsk string `json:"dhekeyexchangewithpsk,omitempty"` - Dhfile string `json:"dhfile,omitempty"` - Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` - Dtls1 string `json:"dtls1,omitempty"` - Dtls12 string `json:"dtls12,omitempty"` - Dtlsflag bool `json:"dtlsflag,omitempty"` - Dtlsprofilename string `json:"dtlsprofilename,omitempty"` - Ersa string `json:"ersa,omitempty"` - Ersacount int `json:"ersacount,omitempty"` - Hsts string `json:"hsts,omitempty"` - Includesubdomains string `json:"includesubdomains,omitempty"` - Maxage int `json:"maxage,omitempty"` - Nonfipsciphers string `json:"nonfipsciphers,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Ocspstapling string `json:"ocspstapling,omitempty"` - Preload string `json:"preload,omitempty"` - Pushenctrigger string `json:"pushenctrigger,omitempty"` - Redirectportrewrite string `json:"redirectportrewrite,omitempty"` - Sendclosenotify string `json:"sendclosenotify,omitempty"` - Service int `json:"service,omitempty"` - Sessreuse string `json:"sessreuse,omitempty"` - Sesstimeout int `json:"sesstimeout,omitempty"` - Skipcaname bool `json:"skipcaname,omitempty"` - Snicert bool `json:"snicert,omitempty"` - Snienable string `json:"snienable,omitempty"` - Ssl2 string `json:"ssl2,omitempty"` - Ssl3 string `json:"ssl3,omitempty"` - Sslprofile string `json:"sslprofile,omitempty"` - Sslredirect string `json:"sslredirect,omitempty"` - Sslv2redirect string `json:"sslv2redirect,omitempty"` - Sslv2url string `json:"sslv2url,omitempty"` - Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` - Tls1 string `json:"tls1,omitempty"` - Tls11 string `json:"tls11,omitempty"` - Tls12 string `json:"tls12,omitempty"` - Tls13 string `json:"tls13,omitempty"` - Tls13sessionticketsperauthcontext int `json:"tls13sessionticketsperauthcontext,omitempty"` - Vservername string `json:"vservername,omitempty"` - Zerorttearlydata string `json:"zerorttearlydata,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_binding.go deleted file mode 100644 index 278cd7f09..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package ssl - -type Sslvserverbinding struct { - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_ecccurve_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_ecccurve_binding.go deleted file mode 100644 index 62ebfec11..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_ecccurve_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package ssl - -type Sslvserverecccurvebinding struct { - Ecccurvename string `json:"ecccurvename,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcertkey_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcertkey_binding.go deleted file mode 100644 index 18399f02a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcertkey_binding.go +++ /dev/null @@ -1,12 +0,0 @@ -package ssl - -type Sslvserversslcertkeybinding struct { - Ca bool `json:"ca,omitempty"` - Certkeyname string `json:"certkeyname,omitempty"` - Cleartextport int `json:"cleartextport,omitempty"` - Crlcheck string `json:"crlcheck,omitempty"` - Ocspcheck string `json:"ocspcheck,omitempty"` - Skipcaname bool `json:"skipcaname,omitempty"` - Snicert bool `json:"snicert,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcipher_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcipher_binding.go deleted file mode 100644 index 71b370295..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslcipher_binding.go +++ /dev/null @@ -1,8 +0,0 @@ -package ssl - -type Sslvserversslcipherbinding struct { - Cipheraliasname string `json:"cipheraliasname,omitempty"` - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslciphersuite_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslciphersuite_binding.go deleted file mode 100644 index 71a61b99f..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslciphersuite_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslvserversslciphersuitebinding struct { - Ciphername string `json:"ciphername,omitempty"` - Description string `json:"description,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslpolicy_binding.go deleted file mode 100644 index 5e33a59cf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslvserver_sslpolicy_binding.go +++ /dev/null @@ -1,13 +0,0 @@ -package ssl - -type Sslvserversslpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Polinherit int `json:"polinherit,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` - Vservername string `json:"vservername,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslwrapkey.go b/vendor/github.com/chiradeep/go-nitro/config/ssl/sslwrapkey.go deleted file mode 100644 index f47675ebc..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/ssl/sslwrapkey.go +++ /dev/null @@ -1,7 +0,0 @@ -package ssl - -type Sslwrapkey struct { - Password string `json:"password,omitempty"` - Salt string `json:"salt,omitempty"` - Wrapkeyname string `json:"wrapkeyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemautorestorefeature.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemautorestorefeature.go deleted file mode 100644 index 9b140a34d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemautorestorefeature.go +++ /dev/null @@ -1 +0,0 @@ -package system diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systembackup.go b/vendor/github.com/chiradeep/go-nitro/config/system/systembackup.go deleted file mode 100644 index 7cce7265d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systembackup.go +++ /dev/null @@ -1,15 +0,0 @@ -package system - -type Systembackup struct { - Comment string `json:"comment,omitempty"` - Createdby string `json:"createdby,omitempty"` - Creationtime string `json:"creationtime,omitempty"` - Filename string `json:"filename,omitempty"` - Includekernel string `json:"includekernel,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Level string `json:"level,omitempty"` - Size int `json:"size,omitempty"` - Skipbackup bool `json:"skipbackup,omitempty"` - Uselocaltimezone bool `json:"uselocaltimezone,omitempty"` - Version string `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemcmdpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemcmdpolicy.go deleted file mode 100644 index ca30ba42c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemcmdpolicy.go +++ /dev/null @@ -1,9 +0,0 @@ -package system - -type Systemcmdpolicy struct { - Action string `json:"action,omitempty"` - Builtin interface{} `json:"builtin,omitempty"` - Cmdspec string `json:"cmdspec,omitempty"` - Feature string `json:"feature,omitempty"` - Policyname string `json:"policyname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemcollectionparam.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemcollectionparam.go deleted file mode 100644 index 2a3a4d4bf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemcollectionparam.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemcollectionparam struct { - Communityname string `json:"communityname,omitempty"` - Datapath string `json:"datapath,omitempty"` - Loglevel string `json:"loglevel,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemcore.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemcore.go deleted file mode 100644 index d5f44dd50..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemcore.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemcore struct { - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemcountergroup.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemcountergroup.go deleted file mode 100644 index 285eac7ce..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemcountergroup.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemcountergroup struct { - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemcounters.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemcounters.go deleted file mode 100644 index 0e3223e5a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemcounters.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemcounters struct { - Countergroup string `json:"countergroup,omitempty"` - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemdatasource.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemdatasource.go deleted file mode 100644 index 3ace6a017..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemdatasource.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemdatasource struct { - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systementity.go b/vendor/github.com/chiradeep/go-nitro/config/system/systementity.go deleted file mode 100644 index cef5752ed..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systementity.go +++ /dev/null @@ -1,8 +0,0 @@ -package system - -type Systementity struct { - Core int `json:"core,omitempty"` - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systementitydata.go b/vendor/github.com/chiradeep/go-nitro/config/system/systementitydata.go deleted file mode 100644 index 1f89c4e2e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systementitydata.go +++ /dev/null @@ -1,18 +0,0 @@ -package system - -type Systementitydata struct { - Alldeleted bool `json:"alldeleted,omitempty"` - Allinactive bool `json:"allinactive,omitempty"` - Core int `json:"core,omitempty"` - Counters string `json:"counters,omitempty"` - Datasource string `json:"datasource,omitempty"` - Endtime string `json:"endtime,omitempty"` - Last int `json:"last,omitempty"` - Lastupdate int `json:"lastupdate,omitempty"` - Name string `json:"name,omitempty"` - Response string `json:"response,omitempty"` - Starttime string `json:"starttime,omitempty"` - Startupdate int `json:"startupdate,omitempty"` - Type string `json:"type,omitempty"` - Unit string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systementitytype.go b/vendor/github.com/chiradeep/go-nitro/config/system/systementitytype.go deleted file mode 100644 index 5742cbadf..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systementitytype.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systementitytype struct { - Datasource string `json:"datasource,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemeventhistory.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemeventhistory.go deleted file mode 100644 index ed6ccab34..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemeventhistory.go +++ /dev/null @@ -1,10 +0,0 @@ -package system - -type Systemeventhistory struct { - Datasource string `json:"datasource,omitempty"` - Endtime string `json:"endtime,omitempty"` - Last int `json:"last,omitempty"` - Response string `json:"response,omitempty"` - Starttime string `json:"starttime,omitempty"` - Unit string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemextramgmtcpu.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemextramgmtcpu.go deleted file mode 100644 index 887e37409..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemextramgmtcpu.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemextramgmtcpu struct { - Configuredstate string `json:"configuredstate,omitempty"` - Effectivestate string `json:"effectivestate,omitempty"` - Nodeid int `json:"nodeid,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemfile.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemfile.go deleted file mode 100644 index 336dd4ca4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemfile.go +++ /dev/null @@ -1,12 +0,0 @@ -package system - -type Systemfile struct { - Fileaccesstime string `json:"fileaccesstime,omitempty"` - Filecontent string `json:"filecontent,omitempty"` - Fileencoding string `json:"fileencoding,omitempty"` - Filelocation string `json:"filelocation,omitempty"` - Filemode interface{} `json:"filemode,omitempty"` - Filemodifiedtime string `json:"filemodifiedtime,omitempty"` - Filename string `json:"filename,omitempty"` - Filesize int `json:"filesize,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditnslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditnslogpolicy_binding.go deleted file mode 100644 index beb2f02b8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditnslogpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauditnslogpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditsyslogpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditsyslogpolicy_binding.go deleted file mode 100644 index b3019fd5d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_auditsyslogpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauditsyslogpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationldappolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationldappolicy_binding.go deleted file mode 100644 index 66e8fc6e0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationldappolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauthenticationldappolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationlocalpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationlocalpolicy_binding.go deleted file mode 100644 index ecc41455a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationlocalpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauthenticationlocalpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationpolicy_binding.go deleted file mode 100644 index 5270a29f9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauthenticationpolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationradiuspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationradiuspolicy_binding.go deleted file mode 100644 index 6a80ac78d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationradiuspolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauthenticationradiuspolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationtacacspolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationtacacspolicy_binding.go deleted file mode 100644 index a5e56d7db..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_authenticationtacacspolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemglobalauthenticationtacacspolicybinding struct { - Builtin interface{} `json:"builtin,omitempty"` - Feature string `json:"feature,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Nextfactor string `json:"nextfactor,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_binding.go deleted file mode 100644 index 9b140a34d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package system diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobaldata.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemglobaldata.go deleted file mode 100644 index 070bfc4f8..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemglobaldata.go +++ /dev/null @@ -1,15 +0,0 @@ -package system - -type Systemglobaldata struct { - Core int `json:"core,omitempty"` - Countergroup string `json:"countergroup,omitempty"` - Counters string `json:"counters,omitempty"` - Datasource string `json:"datasource,omitempty"` - Endtime string `json:"endtime,omitempty"` - Last int `json:"last,omitempty"` - Lastupdate int `json:"lastupdate,omitempty"` - Response string `json:"response,omitempty"` - Starttime string `json:"starttime,omitempty"` - Startupdate int `json:"startupdate,omitempty"` - Unit string `json:"unit,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup.go deleted file mode 100644 index 82c328f61..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup.go +++ /dev/null @@ -1,8 +0,0 @@ -package system - -type Systemgroup struct { - Allowedmanagementinterface interface{} `json:"allowedmanagementinterface,omitempty"` - Groupname string `json:"groupname,omitempty"` - Promptstring string `json:"promptstring,omitempty"` - Timeout int `json:"timeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_binding.go deleted file mode 100644 index e9476b419..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package system - -type Systemgroupbinding struct { - Groupname string `json:"groupname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_nspartition_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_nspartition_binding.go deleted file mode 100644 index d23d2cbc2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_nspartition_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemgroupnspartitionbinding struct { - Groupname string `json:"groupname,omitempty"` - Partitionname string `json:"partitionname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemcmdpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemcmdpolicy_binding.go deleted file mode 100644 index 26131379d..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemcmdpolicy_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemgroupsystemcmdpolicybinding struct { - Groupname string `json:"groupname,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemuser_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemuser_binding.go deleted file mode 100644 index 271a53848..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemgroup_systemuser_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemgroupsystemuserbinding struct { - Groupname string `json:"groupname,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemhwerror.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemhwerror.go deleted file mode 100644 index 61bf95cb4..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemhwerror.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemhwerror struct { - Diskcheck bool `json:"diskcheck,omitempty"` - Hwerrorcount int `json:"hwerrorcount,omitempty"` - Response string `json:"response,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemkek.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemkek.go deleted file mode 100644 index ddb2878ae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemkek.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemkek struct { - Passphrase string `json:"passphrase,omitempty"` - Password string `json:"password,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemparameter.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemparameter.go deleted file mode 100644 index 63f6f695a..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemparameter.go +++ /dev/null @@ -1,24 +0,0 @@ -package system - -type Systemparameter struct { - Allowdefaultpartition string `json:"allowdefaultpartition,omitempty"` - Basicauth string `json:"basicauth,omitempty"` - Cliloglevel string `json:"cliloglevel,omitempty"` - Doppler string `json:"doppler,omitempty"` - Fipsusermode string `json:"fipsusermode,omitempty"` - Forcepasswordchange string `json:"forcepasswordchange,omitempty"` - Googleanalytics string `json:"googleanalytics,omitempty"` - Localauth string `json:"localauth,omitempty"` - Maxclient int `json:"maxclient,omitempty"` - Minpasswordlen int `json:"minpasswordlen,omitempty"` - Natpcbforceflushlimit int `json:"natpcbforceflushlimit,omitempty"` - Natpcbrstontimeout string `json:"natpcbrstontimeout,omitempty"` - Promptstring string `json:"promptstring,omitempty"` - Rbaonresponse string `json:"rbaonresponse,omitempty"` - Reauthonauthparamchange string `json:"reauthonauthparamchange,omitempty"` - Removesensitivefiles string `json:"removesensitivefiles,omitempty"` - Restrictedtimeout string `json:"restrictedtimeout,omitempty"` - Strongpassword string `json:"strongpassword,omitempty"` - Timeout int `json:"timeout,omitempty"` - Totalauthtimeout int `json:"totalauthtimeout,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemrestorepoint.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemrestorepoint.go deleted file mode 100644 index 74c690111..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemrestorepoint.go +++ /dev/null @@ -1,11 +0,0 @@ -package system - -type Systemrestorepoint struct { - Backupfilename string `json:"backupfilename,omitempty"` - Createdby string `json:"createdby,omitempty"` - Creationtime string `json:"creationtime,omitempty"` - Filename string `json:"filename,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Techsuprtname string `json:"techsuprtname,omitempty"` - Version string `json:"version,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemsession.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemsession.go deleted file mode 100644 index fccc84223..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemsession.go +++ /dev/null @@ -1,16 +0,0 @@ -package system - -type Systemsession struct { - All bool `json:"all,omitempty"` - Clienttype string `json:"clienttype,omitempty"` - Currentconn bool `json:"currentconn,omitempty"` - Expirytime int `json:"expirytime,omitempty"` - Lastactivitytime string `json:"lastactivitytime,omitempty"` - Lastactivitytimelocal string `json:"lastactivitytimelocal,omitempty"` - Logintime string `json:"logintime,omitempty"` - Logintimelocal string `json:"logintimelocal,omitempty"` - Numofconnections int `json:"numofconnections,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Sid int `json:"sid,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemsshkey.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemsshkey.go deleted file mode 100644 index 7ca9986c7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemsshkey.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemsshkey struct { - Name string `json:"name,omitempty"` - Src string `json:"src,omitempty"` - Sshkeytype string `json:"sshkeytype,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemuser.go deleted file mode 100644 index 72959cdce..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser.go +++ /dev/null @@ -1,17 +0,0 @@ -package system - -type Systemuser struct { - Allowedmanagementinterface interface{} `json:"allowedmanagementinterface,omitempty"` - Allowedmanagementinterfacekind string `json:"allowedmanagementinterfacekind,omitempty"` - Encrypted bool `json:"encrypted,omitempty"` - Externalauth string `json:"externalauth,omitempty"` - Hashmethod string `json:"hashmethod,omitempty"` - Logging string `json:"logging,omitempty"` - Maxsession int `json:"maxsession,omitempty"` - Password string `json:"password,omitempty"` - Promptinheritedfrom string `json:"promptinheritedfrom,omitempty"` - Promptstring string `json:"promptstring,omitempty"` - Timeout int `json:"timeout,omitempty"` - Timeoutkind string `json:"timeoutkind,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_binding.go deleted file mode 100644 index 9aabd05aa..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package system - -type Systemuserbinding struct { - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_nspartition_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_nspartition_binding.go deleted file mode 100644 index 10929f3c6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_nspartition_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemusernspartitionbinding struct { - Partitionname string `json:"partitionname,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemcmdpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemcmdpolicy_binding.go deleted file mode 100644 index 8e296a73c..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemcmdpolicy_binding.go +++ /dev/null @@ -1,7 +0,0 @@ -package system - -type Systemusersystemcmdpolicybinding struct { - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemgroup_binding.go b/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemgroup_binding.go deleted file mode 100644 index 22698d944..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/system/systemuser_systemgroup_binding.go +++ /dev/null @@ -1,6 +0,0 @@ -package system - -type Systemusersystemgroupbinding struct { - Groupname string `json:"groupname,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformaction.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformaction.go deleted file mode 100644 index 6251d6bb3..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformaction.go +++ /dev/null @@ -1,16 +0,0 @@ -package transform - -type Transformaction struct { - Comment string `json:"comment,omitempty"` - Continuematching string `json:"continuematching,omitempty"` - Cookiedomainfrom string `json:"cookiedomainfrom,omitempty"` - Cookiedomaininto string `json:"cookiedomaininto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` - Profilename string `json:"profilename,omitempty"` - Requrlfrom string `json:"requrlfrom,omitempty"` - Requrlinto string `json:"requrlinto,omitempty"` - Resurlfrom string `json:"resurlfrom,omitempty"` - Resurlinto string `json:"resurlinto,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_binding.go deleted file mode 100644 index 5796f91c6..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_binding.go +++ /dev/null @@ -1 +0,0 @@ -package transform diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_transformpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_transformpolicy_binding.go deleted file mode 100644 index b34cad032..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformglobal_transformpolicy_binding.go +++ /dev/null @@ -1,14 +0,0 @@ -package transform - -type Transformglobaltransformpolicybinding struct { - Flowtype int `json:"flowtype,omitempty"` - Globalbindtype string `json:"globalbindtype,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy.go deleted file mode 100644 index dae02c414..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy.go +++ /dev/null @@ -1,14 +0,0 @@ -package transform - -type Transformpolicy struct { - Builtin interface{} `json:"builtin,omitempty"` - Comment string `json:"comment,omitempty"` - Feature string `json:"feature,omitempty"` - Hits int `json:"hits,omitempty"` - Isdefault bool `json:"isdefault,omitempty"` - Logaction string `json:"logaction,omitempty"` - Name string `json:"name,omitempty"` - Newname string `json:"newname,omitempty"` - Profilename string `json:"profilename,omitempty"` - Rule string `json:"rule,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_binding.go deleted file mode 100644 index 283ead5c9..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package transform - -type Transformpolicybinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_csvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_csvserver_binding.go deleted file mode 100644 index aeb968a68..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_csvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicycsvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_lbvserver_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_lbvserver_binding.go deleted file mode 100644 index 03e7fe8f0..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_lbvserver_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicylbvserverbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformglobal_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformglobal_binding.go deleted file mode 100644 index 1b25b3eae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformglobal_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicytransformglobalbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformpolicylabel_binding.go deleted file mode 100644 index f3171c086..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicy_transformpolicylabel_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicytransformpolicylabelbinding struct { - Activepolicy int `json:"activepolicy,omitempty"` - Boundto string `json:"boundto,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel.go deleted file mode 100644 index 54ac2ac42..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel.go +++ /dev/null @@ -1,14 +0,0 @@ -package transform - -type Transformpolicylabel struct { - Description string `json:"description,omitempty"` - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Hits int `json:"hits,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Newname string `json:"newname,omitempty"` - Numpol int `json:"numpol,omitempty"` - Policylabeltype string `json:"policylabeltype,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_binding.go deleted file mode 100644 index 7e3b5b271..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package transform - -type Transformpolicylabelbinding struct { - Labelname string `json:"labelname,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_policybinding_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_policybinding_binding.go deleted file mode 100644 index 6db159ce7..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_policybinding_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicylabelpolicybindingbinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_transformpolicy_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_transformpolicy_binding.go deleted file mode 100644 index c02c1e4c1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformpolicylabel_transformpolicy_binding.go +++ /dev/null @@ -1,11 +0,0 @@ -package transform - -type Transformpolicylabeltransformpolicybinding struct { - Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` - Invoke bool `json:"invoke,omitempty"` - Invokelabelname string `json:"invoke_labelname,omitempty"` - Labelname string `json:"labelname,omitempty"` - Labeltype string `json:"labeltype,omitempty"` - Policyname string `json:"policyname,omitempty"` - Priority int `json:"priority,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile.go deleted file mode 100644 index 27b7a5914..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile.go +++ /dev/null @@ -1,14 +0,0 @@ -package transform - -type Transformprofile struct { - Additionalreqheaderslist string `json:"additionalreqheaderslist,omitempty"` - Additionalrespheaderslist string `json:"additionalrespheaderslist,omitempty"` - Comment string `json:"comment,omitempty"` - Name string `json:"name,omitempty"` - Onlytransformabsurlinbody string `json:"onlytransformabsurlinbody,omitempty"` - Regexforfindingurlincss string `json:"regexforfindingurlincss,omitempty"` - Regexforfindingurlinjavascript string `json:"regexforfindingurlinjavascript,omitempty"` - Regexforfindingurlinxcomponent string `json:"regexforfindingurlinxcomponent,omitempty"` - Regexforfindingurlinxml string `json:"regexforfindingurlinxml,omitempty"` - Type string `json:"type,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_binding.go deleted file mode 100644 index 5b4510247..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_binding.go +++ /dev/null @@ -1,5 +0,0 @@ -package transform - -type Transformprofilebinding struct { - Name string `json:"name,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_transformaction_binding.go b/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_transformaction_binding.go deleted file mode 100644 index 88499b21e..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/transform/transformprofile_transformaction_binding.go +++ /dev/null @@ -1,16 +0,0 @@ -package transform - -type Transformprofiletransformactionbinding struct { - Actioncomment string `json:"actioncomment,omitempty"` - Actionname string `json:"actionname,omitempty"` - Cookiedomainfrom string `json:"cookiedomainfrom,omitempty"` - Cookiedomaininto string `json:"cookiedomaininto,omitempty"` - Name string `json:"name,omitempty"` - Priority int `json:"priority,omitempty"` - Profilename string `json:"profilename,omitempty"` - Requrlfrom string `json:"requrlfrom,omitempty"` - Requrlinto string `json:"requrlinto,omitempty"` - Resurlfrom string `json:"resurlfrom,omitempty"` - Resurlinto string `json:"resurlinto,omitempty"` - State string `json:"state,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/callhome.go b/vendor/github.com/chiradeep/go-nitro/config/utility/callhome.go deleted file mode 100644 index efc3fc271..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/callhome.go +++ /dev/null @@ -1,26 +0,0 @@ -package utility - -type Callhome struct { - Callhomestatus interface{} `json:"callhomestatus,omitempty"` - Emailaddress string `json:"emailaddress,omitempty"` - Flashfirstfail string `json:"flashfirstfail,omitempty"` - Flashlatestfailure string `json:"flashlatestfailure,omitempty"` - Hbcustominterval int `json:"hbcustominterval,omitempty"` - Hddfirstfail string `json:"hddfirstfail,omitempty"` - Hddlatestfailure string `json:"hddlatestfailure,omitempty"` - Ipaddress string `json:"ipaddress,omitempty"` - Memthrefirstanomaly string `json:"memthrefirstanomaly,omitempty"` - Memthrelatestanomaly string `json:"memthrelatestanomaly,omitempty"` - Mode string `json:"mode,omitempty"` - Nodeid int `json:"nodeid,omitempty"` - Port int `json:"port,omitempty"` - Powfirstfail string `json:"powfirstfail,omitempty"` - Powlatestfailure string `json:"powlatestfailure,omitempty"` - Proxyauthservice string `json:"proxyauthservice,omitempty"` - Proxymode string `json:"proxymode,omitempty"` - Restartlatestfail string `json:"restartlatestfail,omitempty"` - Rlfirsthighdrop string `json:"rlfirsthighdrop,omitempty"` - Rllatesthighdrop string `json:"rllatesthighdrop,omitempty"` - Sslcardfirstfailure string `json:"sslcardfirstfailure,omitempty"` - Sslcardlatestfailure string `json:"sslcardlatestfailure,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/install.go b/vendor/github.com/chiradeep/go-nitro/config/utility/install.go deleted file mode 100644 index 7013169c5..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/install.go +++ /dev/null @@ -1,9 +0,0 @@ -package utility - -type Install struct { - Enhancedupgrade bool `json:"enhancedupgrade,omitempty"` - L bool `json:"l,omitempty"` - Resizeswapvar bool `json:"resizeswapvar,omitempty"` - Url string `json:"url,omitempty"` - Y bool `json:"y,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/ping.go b/vendor/github.com/chiradeep/go-nitro/config/utility/ping.go deleted file mode 100644 index 0518566ae..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/ping.go +++ /dev/null @@ -1,13 +0,0 @@ -package utility - -type Ping struct { - C int `json:"c,omitempty"` - HostName string `json:"hostName,omitempty"` - I int `json:"i,omitempty"` - N bool `json:"n,omitempty"` - P string `json:"p,omitempty"` - Q bool `json:"q,omitempty"` - Response string `json:"response,omitempty"` - S int `json:"s,omitempty"` - T int `json:"T,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/ping6.go b/vendor/github.com/chiradeep/go-nitro/config/utility/ping6.go deleted file mode 100644 index 352a09856..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/ping6.go +++ /dev/null @@ -1,16 +0,0 @@ -package utility - -type Ping6 struct { - B int `json:"b,omitempty"` - C int `json:"c,omitempty"` - HostName string `json:"hostName,omitempty"` - I int `json:"i,omitempty"` - M bool `json:"m,omitempty"` - N bool `json:"n,omitempty"` - P string `json:"p,omitempty"` - Q bool `json:"q,omitempty"` - Response string `json:"response,omitempty"` - S int `json:"s,omitempty"` - T int `json:"T,omitempty"` - V int `json:"V,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/raid.go b/vendor/github.com/chiradeep/go-nitro/config/utility/raid.go deleted file mode 100644 index 17fb9c343..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/raid.go +++ /dev/null @@ -1 +0,0 @@ -package utility diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/techsupport.go b/vendor/github.com/chiradeep/go-nitro/config/utility/techsupport.go deleted file mode 100644 index e6071fac2..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/techsupport.go +++ /dev/null @@ -1,15 +0,0 @@ -package utility - -type Techsupport struct { - Casenumber string `json:"casenumber,omitempty"` - Description string `json:"description,omitempty"` - File string `json:"file,omitempty"` - Partitionname string `json:"partitionname,omitempty"` - Password string `json:"password,omitempty"` - Proxy string `json:"proxy,omitempty"` - Response string `json:"response,omitempty"` - Scope string `json:"scope,omitempty"` - Servername string `json:"servername,omitempty"` - Upload bool `json:"upload,omitempty"` - Username string `json:"username,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute.go b/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute.go deleted file mode 100644 index 2e2bc1906..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute.go +++ /dev/null @@ -1,16 +0,0 @@ -package utility - -type Traceroute struct { - Host string `json:"host,omitempty"` - M int `json:"M,omitempty"` - N bool `json:"n,omitempty"` - P int `json:"P,omitempty"` - Packetlen int `json:"packetlen,omitempty"` - Q int `json:"q,omitempty"` - R bool `json:"r,omitempty"` - Response string `json:"response,omitempty"` - S string `json:"S,omitempty"` - T int `json:"T,omitempty"` - V bool `json:"v,omitempty"` - W int `json:"w,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute6.go b/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute6.go deleted file mode 100644 index 44316c5e1..000000000 --- a/vendor/github.com/chiradeep/go-nitro/config/utility/traceroute6.go +++ /dev/null @@ -1,17 +0,0 @@ -package utility - -type Traceroute6 struct { - Host string `json:"host,omitempty"` - I bool `json:"I,omitempty"` - M int `json:"m,omitempty"` - N bool `json:"n,omitempty"` - P int `json:"p,omitempty"` - Packetlen int `json:"packetlen,omitempty"` - Q int `json:"q,omitempty"` - R bool `json:"r,omitempty"` - Response string `json:"response,omitempty"` - S string `json:"s,omitempty"` - T int `json:"T,omitempty"` - V bool `json:"v,omitempty"` - W int `json:"w,omitempty"` -} diff --git a/vendor/github.com/chiradeep/go-nitro/LICENSE b/vendor/github.com/citrix/adc-nitro-go/LICENSE similarity index 89% rename from vendor/github.com/chiradeep/go-nitro/LICENSE rename to vendor/github.com/citrix/adc-nitro-go/LICENSE index 8f71f43fe..66a27ec5f 100644 --- a/vendor/github.com/chiradeep/go-nitro/LICENSE +++ b/vendor/github.com/citrix/adc-nitro-go/LICENSE @@ -175,28 +175,3 @@ END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwarchive.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwarchive.go new file mode 100644 index 000000000..61a103b3b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwarchive.go @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for archive resource. +*/ +type Appfwarchive struct { + /** + * Name of tar archive + */ + Name string `json:"name,omitempty"` + /** + * Path to the file to be exported + */ + Target string `json:"target,omitempty"` + /** + * Indicates the source of the tar archive file as a URL + of the form + ://[:][/] + is http or https. + is the DNS name or IP address of the http or https server. + is the port number of the server. If omitted, the + default port for http or https will be used. + is the path of the file on the server. + Import will fail if an https server requires client + certificate authentication. + + */ + Src string `json:"src,omitempty"` + /** + * Comments associated with this archive. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwconfidfield.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwconfidfield.go new file mode 100644 index 000000000..e2926eb31 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwconfidfield.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for configured confidential form fields resource. +*/ +type Appfwconfidfield struct { + /** + * Name of the form field to designate as confidential. + */ + Fieldname string `json:"fieldname,omitempty"` + /** + * URL of the web page that contains the web form. + */ + Url string `json:"url,omitempty"` + /** + * Method of specifying the form field name. Available settings function as follows: + * REGEX. Form field is a regular expression. + * NOTREGEX. Form field is a literal string. + */ + Isregex string `json:"isregex,omitempty"` + /** + * Any comments to preserve information about the form field designation. + */ + Comment string `json:"comment,omitempty"` + /** + * Enable or disable the confidential field designation. + */ + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwcustomsettings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwcustomsettings.go new file mode 100644 index 000000000..ae77a7d43 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwcustomsettings.go @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall custom settings XML configuration resource. +*/ +type Appfwcustomsettings struct { + Name string `json:"name,omitempty"` + Target string `json:"target,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go new file mode 100644 index 000000000..0276a8db7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall form field type resource. +*/ +type Appfwfieldtype struct { + /** + * Name for the field type. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the field type is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my field type" or 'my field type'). + */ + Name string `json:"name,omitempty"` + /** + * PCRE - format regular expression defining the characters and length allowed for this field type. + */ + Regex string `json:"regex,omitempty"` + /** + * Positive integer specifying the priority of the field type. A lower number specifies a higher priority. Field types are checked in the order of their priority numbers. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Comment describing the type of field that this field type is intended to match. + */ + Comment string `json:"comment,omitempty"` + /** + * will not show internal field types added as part of FieldFormat learn rules deployment + */ + Nocharmaps bool `json:"nocharmaps,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_binding.go new file mode 100644 index 000000000..5eaa2d5ae --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding object which returns the resources bound to appfwglobal_binding. +*/ +type Appfwglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_nslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_nslogpolicy_binding.go new file mode 100644 index 000000000..202b17ad5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_nslogpolicy_binding.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the nslogpolicy that can be bound to appfwglobal. +*/ +type Appfwglobalnslogpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + /** + * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is smaller than the current policy's priority number. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_policy_binding.go new file mode 100644 index 000000000..1b68a8f58 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_policy_binding.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the policy that can be bound to appfwglobal. +*/ +type Appfwglobalpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * flowtype of the bound application firewall policy. + */ + Flowtype uint32 `json:"flowtype,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_syslogpolicy_binding.go new file mode 100644 index 000000000..829394947 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_syslogpolicy_binding.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the syslogpolicy that can be bound to appfwglobal. +*/ +type Appfwglobalsyslogpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + /** + * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is smaller than the current policy's priority number. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwhtmlerrorpage.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwhtmlerrorpage.go new file mode 100644 index 000000000..5aa9eff24 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwhtmlerrorpage.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for HTML error page resource. +*/ +type Appfwhtmlerrorpage struct { + /** + * Name of the XML error object to remove. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and name) for the location at which to store the imported HTML error object. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Any comments to preserve information about the HTML error object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing HTML error object of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsoncontenttype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsoncontenttype.go new file mode 100644 index 000000000..7ec449dae --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsoncontenttype.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for JSON content type resource. +*/ +type Appfwjsoncontenttype struct { + /** + * Content type to be classified as JSON + */ + Jsoncontenttypevalue string `json:"jsoncontenttypevalue,omitempty"` + /** + * Is json content type a regular expression? + */ + Isregex string `json:"isregex,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsonerrorpage.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsonerrorpage.go new file mode 100644 index 000000000..a80935ab8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwjsonerrorpage.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for JSON error page resource. +*/ +type Appfwjsonerrorpage struct { + /** + * Indicates name of the imported json error page to be removed. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and name) for the location at which to store the imported JSON error object. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Any comments to preserve information about the JSON error object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing JSON error object of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningdata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningdata.go new file mode 100644 index 000000000..185846498 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningdata.go @@ -0,0 +1,168 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for learning data resource. +*/ +type Appfwlearningdata struct { + /** + * Name of the profile. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Start URL configuration. + */ + Starturl string `json:"starturl,omitempty"` + /** + * Cookie Name. + */ + Cookieconsistency string `json:"cookieconsistency,omitempty"` + /** + * Form field name. + */ + Fieldconsistency string `json:"fieldconsistency,omitempty"` + /** + * Form action URL. + */ + Formactionurlffc string `json:"formactionurl_ffc,omitempty"` + /** + * Content Type Name. + */ + Contenttype string `json:"contenttype,omitempty"` + /** + * Cross-site scripting. + */ + Crosssitescripting string `json:"crosssitescripting,omitempty"` + /** + * Form action URL. + */ + Formactionurlxss string `json:"formactionurl_xss,omitempty"` + /** + * Location of cross-site scripting exception - form field, header, cookie or url. + */ + Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` + /** + * XSS value type. (Tag | Attribute | Pattern) + */ + Asvaluetypexss string `json:"as_value_type_xss,omitempty"` + /** + * XSS value expressions consistituting expressions for Tag, Attribute or Pattern. + */ + Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` + /** + * Form field name. + */ + Sqlinjection string `json:"sqlinjection,omitempty"` + /** + * Form action URL. + */ + Formactionurlsql string `json:"formactionurl_sql,omitempty"` + /** + * Location of sql injection exception - form field, header or cookie. + */ + Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` + /** + * SQL value type. Keyword, SpecialString or Wildchar + */ + Asvaluetypesql string `json:"as_value_type_sql,omitempty"` + /** + * SQL value expressions consistituting expressions for Keyword, SpecialString or Wildchar. + */ + Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` + /** + * Field format name. + */ + Fieldformat string `json:"fieldformat,omitempty"` + /** + * Form action URL. + */ + Formactionurlff string `json:"formactionurl_ff,omitempty"` + /** + * CSRF Form Action URL + */ + Csrftag string `json:"csrftag,omitempty"` + /** + * CSRF Form Origin URL. + */ + Csrfformoriginurl string `json:"csrfformoriginurl,omitempty"` + /** + * The object expression that is to be excluded from safe commerce check. + */ + Creditcardnumber string `json:"creditcardnumber,omitempty"` + /** + * The url for which the list of credit card numbers are needed to be bypassed from inspection + */ + Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` + /** + * XML Denial of Service check, one of + MaxAttributes + MaxAttributeNameLength + MaxAttributeValueLength + MaxElementNameLength + MaxFileSize + MinFileSize + MaxCDATALength + MaxElements + MaxElementDepth + MaxElementChildren + NumDTDs + NumProcessingInstructions + NumExternalEntities + MaxEntityExpansions + MaxEntityExpansionDepth + MaxNamespaces + MaxNamespaceUriLength + MaxSOAPArraySize + MaxSOAPArrayRank + */ + Xmldoscheck string `json:"xmldoscheck,omitempty"` + /** + * Web Services Interoperability Rule ID. + */ + Xmlwsicheck string `json:"xmlwsicheck,omitempty"` + /** + * XML Attachment Content-Type. + */ + Xmlattachmentcheck string `json:"xmlattachmentcheck,omitempty"` + /** + * Total XML requests. + */ + Totalxmlrequests bool `json:"totalxmlrequests,omitempty"` + /** + * Name of the security check. + */ + Securitycheck string `json:"securitycheck,omitempty"` + /** + * Target filename for data to be exported. + */ + Target string `json:"target,omitempty"` + + //------- Read only Parameter ---------; + + Url string `json:"url,omitempty"` + Name string `json:"name,omitempty"` + Fieldtype string `json:"fieldtype,omitempty"` + Fieldformatminlength string `json:"fieldformatminlength,omitempty"` + Fieldformatmaxlength string `json:"fieldformatmaxlength,omitempty"` + Fieldformatcharmappcre string `json:"fieldformatcharmappcre,omitempty"` + Valuetype string `json:"value_type,omitempty"` + Value string `json:"value,omitempty"` + Hits string `json:"hits,omitempty"` + Data string `json:"data,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go new file mode 100644 index 000000000..d44de47ff --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go @@ -0,0 +1,148 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for learning settings resource. +*/ +type Appfwlearningsettings struct { + /** + * Name of the profile. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn start URLs. + */ + Starturlminthreshold uint32 `json:"starturlminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular start URL pattern for the learning engine to learn that start URL. + */ + Starturlpercentthreshold uint32 `json:"starturlpercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn cookies. + */ + Cookieconsistencyminthreshold uint32 `json:"cookieconsistencyminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular cookie pattern for the learning engine to learn that cookie. + */ + Cookieconsistencypercentthreshold uint32 `json:"cookieconsistencypercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn cross-site request forgery (CSRF) tags. + */ + Csrftagminthreshold uint32 `json:"csrftagminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular CSRF tag for the learning engine to learn that CSRF tag. + */ + Csrftagpercentthreshold uint32 `json:"csrftagpercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn field consistency information. + */ + Fieldconsistencyminthreshold uint32 `json:"fieldconsistencyminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular field consistency pattern for the learning engine to learn that field consistency pattern. + */ + Fieldconsistencypercentthreshold uint32 `json:"fieldconsistencypercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn HTML cross-site scripting patterns. + */ + Crosssitescriptingminthreshold uint32 `json:"crosssitescriptingminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular cross-site scripting pattern for the learning engine to learn that cross-site scripting pattern. + */ + Crosssitescriptingpercentthreshold uint32 `json:"crosssitescriptingpercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn HTML SQL injection patterns. + */ + Sqlinjectionminthreshold uint32 `json:"sqlinjectionminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular HTML SQL injection pattern for the learning engine to learn that HTML SQL injection pattern. + */ + Sqlinjectionpercentthreshold uint32 `json:"sqlinjectionpercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn field formats. + */ + Fieldformatminthreshold uint32 `json:"fieldformatminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular web form field pattern for the learning engine to recommend a field format for that form field. + */ + Fieldformatpercentthreshold uint32 `json:"fieldformatpercentthreshold,omitempty"` + /** + * Minimum threshold to learn Credit Card information. + */ + Creditcardnumberminthreshold uint32 `json:"creditcardnumberminthreshold,omitempty"` + /** + * Minimum threshold in percent to learn Credit Card information. + */ + Creditcardnumberpercentthreshold uint32 `json:"creditcardnumberpercentthreshold,omitempty"` + /** + * Minimum threshold to learn Content Type information. + */ + Contenttypeminthreshold uint32 `json:"contenttypeminthreshold,omitempty"` + /** + * Minimum threshold in percent to learn Content Type information. + */ + Contenttypepercentthreshold uint32 `json:"contenttypepercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn web services interoperability (WSI) information. + */ + Xmlwsiminthreshold uint32 `json:"xmlwsiminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular pattern for the learning engine to learn a web services interoperability (WSI) pattern. + */ + Xmlwsipercentthreshold uint32 `json:"xmlwsipercentthreshold,omitempty"` + /** + * Minimum number of application firewall sessions that the learning engine must observe to learn XML attachment patterns. + */ + Xmlattachmentminthreshold uint32 `json:"xmlattachmentminthreshold,omitempty"` + /** + * Minimum percentage of application firewall sessions that must contain a particular XML attachment pattern for the learning engine to learn that XML attachment pattern. + */ + Xmlattachmentpercentthreshold uint32 `json:"xmlattachmentpercentthreshold,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Fieldformatautodeploygraceperiod uint32 `json:"fieldformatautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Sqlinjectionautodeploygraceperiod uint32 `json:"sqlinjectionautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Crosssitescriptingautodeploygraceperiod uint32 `json:"crosssitescriptingautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Starturlautodeploygraceperiod uint32 `json:"starturlautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Cookieconsistencyautodeploygraceperiod uint32 `json:"cookieconsistencyautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Csrftagautodeploygraceperiod uint32 `json:"csrftagautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Fieldconsistencyautodeploygraceperiod uint32 `json:"fieldconsistencyautodeploygraceperiod,omitempty"` + /** + * The number of minutes after the threshold hit alert the learned rule will be deployed + */ + Contenttypeautodeploygraceperiod uint32 `json:"contenttypeautodeploygraceperiod,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwmultipartformcontenttype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwmultipartformcontenttype.go new file mode 100644 index 000000000..db2330454 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwmultipartformcontenttype.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for Multipart form content type resource. +*/ +type Appfwmultipartformcontenttype struct { + /** + * Content type to be classified as multipart form + */ + Multipartformcontenttypevalue string `json:"multipartformcontenttypevalue,omitempty"` + /** + * Is multipart_form content type a regular expression? + */ + Isregex string `json:"isregex,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy.go new file mode 100644 index 000000000..9c507a1d3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall policy resource. +*/ +type Appfwpolicy struct { + /** + * Name for the policy. + Must begin with a letter, number, or the underscore character \(_\), and must contain only letters, numbers, and the hyphen \(-\), period \(.\) pound \(\#\), space \( \), at (@), equals \(=\), colon \(:\), and underscore characters. Can be changed after the policy is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my policy" or 'my policy'\). + */ + Name string `json:"name,omitempty"` + /** + * Name of the Citrix ADC named rule, or a Citrix ADC expression, that the policy uses to determine whether to filter the connection through the application firewall with the designated profile. + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the application firewall profile to use if the policy matches. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Any comments to preserve information about the policy for later reference. + */ + Comment string `json:"comment,omitempty"` + /** + * Where to log information for connections that match this policy. + */ + Logaction string `json:"logaction,omitempty"` + /** + * New name for the policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Policytype string `json:"policytype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_binding.go new file mode 100644 index 000000000..81647d26a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding object which returns the resources bound to appfwpolicy_binding. +*/ +type Appfwpolicybinding struct { + /** + * Name of the policy.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_global_binding.go new file mode 100644 index 000000000..04b289284 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_global_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the global that can be bound to appfwpolicy. +*/ +type Appfwpolicyglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_policylabel_binding.go new file mode 100644 index 000000000..c5eeea94d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the policylabel that can be bound to appfwpolicy. +*/ +type Appfwpolicypolicylabelbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_vserver_binding.go new file mode 100644 index 000000000..29d0a32e6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_vserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the vserver that can be bound to appfwpolicy. +*/ +type Appfwpolicyvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel.go new file mode 100644 index 000000000..a544eb69b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall policy label resource. +*/ +type Appfwpolicylabel struct { + /** + * Name for the policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the policy label is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy label" or 'my policy label'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Type of transformations allowed by the policies bound to the label. Always http_req for application firewall policy labels. + */ + Policylabeltype string `json:"policylabeltype,omitempty"` + /** + * The new name of the application firewall policylabel. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Description string `json:"description,omitempty"` + Policytype string `json:"policytype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_binding.go new file mode 100644 index 000000000..69f19d33d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding object which returns the resources bound to appfwpolicylabel_binding. +*/ +type Appfwpolicylabelbinding struct { + /** + * Name of the application firewall policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policy_binding.go new file mode 100644 index 000000000..5ff0c0c35 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the policy that can be bound to appfwpolicylabel. +*/ +type Appfwpolicylabelpolicybinding struct { + /** + * Name of the application firewall policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the application firewall policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go new file mode 100644 index 000000000..5a2192bb6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the policybinding that can be bound to appfwpolicylabel. +*/ +type Appfwpolicylabelpolicybindingbinding struct { + /** + * Name of the application firewall policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the application firewall policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go new file mode 100644 index 000000000..6ffd8b9e8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go @@ -0,0 +1,762 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall profile resource. +*/ +type Appfwprofile struct { + /** + * Name for the profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.), pound (#), space ( ), at (@), equals (=), colon (:), and underscore (_) characters. Cannot be changed after the profile is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my profile" or 'my profile'). + */ + Name string `json:"name,omitempty"` + /** + * Default configuration to apply to the profile. Basic defaults are intended for standard content that requires little further configuration, such as static web site content. Advanced defaults are intended for specialized content that requires significant specialized configuration, such as heavily scripted or dynamic content. + CLI users: When adding an application firewall profile, you can set either the defaults or the type, but not both. To set both options, create the profile by using the add appfw profile command, and then use the set appfw profile command to configure the other option. + */ + Defaults string `json:"defaults,omitempty"` + /** + * One or more Start URL actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -startURLaction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -startURLaction none". + */ + Starturlaction []string `json:"starturlaction,omitempty"` + /** + * One or more infer content type payload actions. Available settings function as follows: + * Block - Block connections that have mismatch in content-type header and payload. + * Log - Log connections that have mismatch in content-type header and payload. The mismatched content-type in HTTP request header will be logged for the request. + * Stats - Generate statistics when there is mismatch in content-type header and payload. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -inferContentTypeXMLPayloadAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -inferContentTypeXMLPayloadAction none". Please note "none" action cannot be used with any other action type. + */ + Infercontenttypexmlpayloadaction []string `json:"infercontenttypexmlpayloadaction,omitempty"` + /** + * One or more Content-type actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -contentTypeaction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -contentTypeaction none". + */ + Contenttypeaction []string `json:"contenttypeaction,omitempty"` + /** + * One or more InspectContentType lists. + * application/x-www-form-urlencoded + * multipart/form-data + * text/x-gwt-rpc + CLI users: To enable, type "set appfw profile -InspectContentTypes" followed by the content types to be inspected. + */ + Inspectcontenttypes []string `json:"inspectcontenttypes,omitempty"` + /** + * Toggle the state of Start URL Closure. + */ + Starturlclosure string `json:"starturlclosure,omitempty"` + /** + * One or more Deny URL actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + NOTE: The Deny URL check takes precedence over the Start URL check. If you enable blocking for the Deny URL check, the application firewall blocks any URL that is explicitly blocked by a Deny URL, even if the same URL would otherwise be allowed by the Start URL check. + CLI users: To enable one or more actions, type "set appfw profile -denyURLaction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -denyURLaction none". + */ + Denyurlaction []string `json:"denyurlaction,omitempty"` + /** + * Enable validation of Referer headers. + Referer validation ensures that a web form that a user sends to your web site originally came from your web site, not an outside attacker. + Although this parameter is part of the Start URL check, referer validation protects against cross-site request forgery (CSRF) attacks, not Start URL attacks. + */ + Refererheadercheck string `json:"refererheadercheck,omitempty"` + /** + * One or more Cookie Consistency actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -cookieConsistencyAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -cookieConsistencyAction none". + */ + Cookieconsistencyaction []string `json:"cookieconsistencyaction,omitempty"` + /** + * One or more actions to prevent cookie hijacking. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + NOTE: Cookie Hijacking feature is not supported for TLSv1.3 + CLI users: To enable one or more actions, type "set appfw profile -cookieHijackingAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -cookieHijackingAction none". + */ + Cookiehijackingaction []string `json:"cookiehijackingaction,omitempty"` + /** + * Perform the specified type of cookie transformation. + Available settings function as follows: + * Encryption - Encrypt cookies. + * Proxying - Mask contents of server cookies by sending proxy cookie to users. + * Cookie flags - Flag cookies as HTTP only to prevent scripts on user's browser from accessing and possibly modifying them. + CAUTION: Make sure that this parameter is set to ON if you are configuring any cookie transformations. If it is set to OFF, no cookie transformations are performed regardless of any other settings. + */ + Cookietransforms string `json:"cookietransforms,omitempty"` + /** + * Type of cookie encryption. Available settings function as follows: + * None - Do not encrypt cookies. + * Decrypt Only - Decrypt encrypted cookies, but do not encrypt cookies. + * Encrypt Session Only - Encrypt session cookies, but not permanent cookies. + * Encrypt All - Encrypt all cookies. + */ + Cookieencryption string `json:"cookieencryption,omitempty"` + /** + * Cookie proxy setting. Available settings function as follows: + * None - Do not proxy cookies. + * Session Only - Proxy session cookies by using the Citrix ADC session ID, but do not proxy permanent cookies. + */ + Cookieproxying string `json:"cookieproxying,omitempty"` + /** + * Add the specified flags to cookies. Available settings function as follows: + * None - Do not add flags to cookies. + * HTTP Only - Add the HTTP Only flag to cookies, which prevents scripts from accessing cookies. + * Secure - Add Secure flag to cookies. + * All - Add both HTTPOnly and Secure flags to cookies. + */ + Addcookieflags string `json:"addcookieflags,omitempty"` + /** + * One or more Form Field Consistency actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -fieldConsistencyaction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -fieldConsistencyAction none". + */ + Fieldconsistencyaction []string `json:"fieldconsistencyaction,omitempty"` + /** + * One or more Cross-Site Request Forgery (CSRF) Tagging actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -CSRFTagAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -CSRFTagAction none". + */ + Csrftagaction []string `json:"csrftagaction,omitempty"` + /** + * One or more Cross-Site Scripting (XSS) actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -crossSiteScriptingAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -crossSiteScriptingAction none". + */ + Crosssitescriptingaction []string `json:"crosssitescriptingaction,omitempty"` + /** + * Transform cross-site scripts. This setting configures the application firewall to disable dangerous HTML instead of blocking the request. + CAUTION: Make sure that this parameter is set to ON if you are configuring any cross-site scripting transformations. If it is set to OFF, no cross-site scripting transformations are performed regardless of any other settings. + */ + Crosssitescriptingtransformunsafehtml string `json:"crosssitescriptingtransformunsafehtml,omitempty"` + /** + * Check complete URLs for cross-site scripts, instead of just the query portions of URLs. + */ + Crosssitescriptingcheckcompleteurls string `json:"crosssitescriptingcheckcompleteurls,omitempty"` + /** + * One or more HTML SQL Injection actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -SQLInjectionAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -SQLInjectionAction none". + */ + Sqlinjectionaction []string `json:"sqlinjectionaction,omitempty"` + /** + * Command injection action. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -cmdInjectionAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -cmdInjectionAction none". + */ + Cmdinjectionaction []string `json:"cmdinjectionaction,omitempty"` + /** + * Available CMD injection types. + -CMDSplChar : Checks for CMD Special Chars + -CMDKeyword : Checks for CMD Keywords + -CMDSplCharANDKeyword : Checks for both and blocks if both are found + -CMDSplCharORKeyword : Checks for both and blocks if anyone is found + */ + Cmdinjectiontype string `json:"cmdinjectiontype,omitempty"` + /** + * Check for SQL injection using SQL grammar + */ + Sqlinjectiongrammar string `json:"sqlinjectiongrammar,omitempty"` + /** + * Transform injected SQL code. This setting configures the application firewall to disable SQL special strings instead of blocking the request. Since most SQL servers require a special string to activate an SQL keyword, in most cases a request that contains injected SQL code is safe if special strings are disabled. + CAUTION: Make sure that this parameter is set to ON if you are configuring any SQL injection transformations. If it is set to OFF, no SQL injection transformations are performed regardless of any other settings. + */ + Sqlinjectiontransformspecialchars string `json:"sqlinjectiontransformspecialchars,omitempty"` + /** + * Check only form fields that contain SQL special strings (characters) for injected SQL code. + Most SQL servers require a special string to activate an SQL request, so SQL code without a special string is harmless to most SQL servers. + */ + Sqlinjectiononlycheckfieldswithsqlchars string `json:"sqlinjectiononlycheckfieldswithsqlchars,omitempty"` + /** + * Available SQL injection types. + -SQLSplChar : Checks for SQL Special Chars + -SQLKeyword : Checks for SQL Keywords + -SQLSplCharANDKeyword : Checks for both and blocks if both are found + -SQLSplCharORKeyword : Checks for both and blocks if anyone is found + -None : Disables checking using both SQL Special Char and Keyword + */ + Sqlinjectiontype string `json:"sqlinjectiontype,omitempty"` + /** + * Check for form fields that contain SQL wild chars . + */ + Sqlinjectionchecksqlwildchars string `json:"sqlinjectionchecksqlwildchars,omitempty"` + /** + * One or more Field Format actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of suggested web form fields and field format assignments. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -fieldFormatAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -fieldFormatAction none". + */ + Fieldformataction []string `json:"fieldformataction,omitempty"` + /** + * Designate a default field type to be applied to web form fields that do not have a field type explicitly assigned to them. + */ + Defaultfieldformattype string `json:"defaultfieldformattype,omitempty"` + /** + * Minimum length, in characters, for data entered into a field that is assigned the default field type. + To disable the minimum and maximum length settings and allow data of any length to be entered into the field, set this parameter to zero (0). + */ + Defaultfieldformatminlength uint32 `json:"defaultfieldformatminlength,omitempty"` + /** + * Maximum length, in characters, for data entered into a field that is assigned the default field type. + */ + Defaultfieldformatmaxlength uint32 `json:"defaultfieldformatmaxlength,omitempty"` + /** + * One or more Buffer Overflow actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -bufferOverflowAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -bufferOverflowAction none". + */ + Bufferoverflowaction []string `json:"bufferoverflowaction,omitempty"` + /** + * Maximum length, in characters, for URLs on your protected web sites. Requests with longer URLs are blocked. + */ + Bufferoverflowmaxurllength uint32 `json:"bufferoverflowmaxurllength,omitempty"` + /** + * Maximum length, in characters, for HTTP headers in requests sent to your protected web sites. Requests with longer headers are blocked. + */ + Bufferoverflowmaxheaderlength uint32 `json:"bufferoverflowmaxheaderlength,omitempty"` + /** + * Maximum length, in characters, for cookies sent to your protected web sites. Requests with longer cookies are blocked. + */ + Bufferoverflowmaxcookielength uint32 `json:"bufferoverflowmaxcookielength,omitempty"` + /** + * Maximum length, in bytes, for query string sent to your protected web sites. Requests with longer query strings are blocked. + */ + Bufferoverflowmaxquerylength uint32 `json:"bufferoverflowmaxquerylength,omitempty"` + /** + * Maximum length, in bytes, for the total HTTP header length in requests sent to your protected web sites. The minimum value of this and maxHeaderLen in httpProfile will be used. Requests with longer length are blocked. + */ + Bufferoverflowmaxtotalheaderlength uint32 `json:"bufferoverflowmaxtotalheaderlength,omitempty"` + /** + * One or more Credit Card actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -creditCardAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -creditCardAction none". + */ + Creditcardaction []string `json:"creditcardaction,omitempty"` + /** + * Credit card types that the application firewall should protect. + */ + Creditcard []string `json:"creditcard,omitempty"` + /** + * This parameter value is used by the block action. It represents the maximum number of credit card numbers that can appear on a web page served by your protected web sites. Pages that contain more credit card numbers are blocked. + */ + Creditcardmaxallowed uint32 `json:"creditcardmaxallowed,omitempty"` + /** + * Mask any credit card number detected in a response by replacing each digit, except the digits in the final group, with the letter "X." + */ + Creditcardxout string `json:"creditcardxout,omitempty"` + /** + * Setting this option logs credit card numbers in the response when the match is found. + */ + Dosecurecreditcardlogging string `json:"dosecurecreditcardlogging,omitempty"` + /** + * Setting this option converts content-length form submission requests (requests with content-type "application/x-www-form-urlencoded" or "multipart/form-data") to chunked requests when atleast one of the following protections : Signatures, SQL injection protection, XSS protection, form field consistency protection, starturl closure, CSRF tagging, JSON SQL, JSON XSS, JSON DOS is enabled. Please make sure that the backend server accepts chunked requests before enabling this option. Citrix recommends enabling this option for large request sizes(>20MB). + */ + Streaming string `json:"streaming,omitempty"` + /** + * Toggle the state of trace + */ + Trace string `json:"trace,omitempty"` + /** + * Default Content-Type header for requests. + A Content-Type header can contain 0-255 letters, numbers, and the hyphen (-) and underscore (_) characters. + */ + Requestcontenttype string `json:"requestcontenttype,omitempty"` + /** + * Default Content-Type header for responses. + A Content-Type header can contain 0-255 letters, numbers, and the hyphen (-) and underscore (_) characters. + */ + Responsecontenttype string `json:"responsecontenttype,omitempty"` + /** + * Name to the imported JSON Error Object to be set on application firewall profile. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my JSON error object" or 'my JSON error object'\). + */ + Jsonerrorobject string `json:"jsonerrorobject,omitempty"` + /** + * Response status code associated with JSON error page + */ + Jsonerrorstatuscode uint32 `json:"jsonerrorstatuscode,omitempty"` + /** + * Response status message associated with JSON error page + */ + Jsonerrorstatusmessage string `json:"jsonerrorstatusmessage,omitempty"` + /** + * One or more JSON Denial-of-Service (JsonDoS) actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -JSONDoSAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -JSONDoSAction none". + */ + Jsondosaction []string `json:"jsondosaction,omitempty"` + /** + * One or more JSON SQL Injection actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -JSONSQLInjectionAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -JSONSQLInjectionAction none". + */ + Jsonsqlinjectionaction []string `json:"jsonsqlinjectionaction,omitempty"` + /** + * Available SQL injection types. + -SQLSplChar : Checks for SQL Special Chars + -SQLKeyword : Checks for SQL Keywords + -SQLSplCharANDKeyword : Checks for both and blocks if both are found + -SQLSplCharORKeyword : Checks for both and blocks if anyone is found, + -None : Disables checking using both SQL Special Char and Keyword + */ + Jsonsqlinjectiontype string `json:"jsonsqlinjectiontype,omitempty"` + /** + * Check for SQL injection using SQL grammar in JSON + */ + Jsonsqlinjectiongrammar string `json:"jsonsqlinjectiongrammar,omitempty"` + /** + * One or more JSON CMD Injection actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -JSONCMDInjectionAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -JSONCMDInjectionAction none". + */ + Jsoncmdinjectionaction []string `json:"jsoncmdinjectionaction,omitempty"` + /** + * Available CMD injection types. + -CMDSplChar : Checks for CMD Special Chars + -CMDKeyword : Checks for CMD Keywords + -CMDSplCharANDKeyword : Checks for both and blocks if both are found + -CMDSplCharORKeyword : Checks for both and blocks if anyone is found + */ + Jsoncmdinjectiontype string `json:"jsoncmdinjectiontype,omitempty"` + /** + * One or more JSON Cross-Site Scripting actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -JSONXssAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -JSONXssAction none". + */ + Jsonxssaction []string `json:"jsonxssaction,omitempty"` + /** + * One or more XML Denial-of-Service (XDoS) actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLDoSAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLDoSAction none". + */ + Xmldosaction []string `json:"xmldosaction,omitempty"` + /** + * One or more XML Format actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLFormatAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLFormatAction none". + */ + Xmlformataction []string `json:"xmlformataction,omitempty"` + /** + * One or more XML SQL Injection actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLSQLInjectionAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLSQLInjectionAction none". + */ + Xmlsqlinjectionaction []string `json:"xmlsqlinjectionaction,omitempty"` + /** + * Check only form fields that contain SQL special characters, which most SQL servers require before accepting an SQL command, for injected SQL. + */ + Xmlsqlinjectiononlycheckfieldswithsqlchars string `json:"xmlsqlinjectiononlycheckfieldswithsqlchars,omitempty"` + /** + * Available SQL injection types. + -SQLSplChar : Checks for SQL Special Chars + -SQLKeyword : Checks for SQL Keywords + -SQLSplCharANDKeyword : Checks for both and blocks if both are found + -SQLSplCharORKeyword : Checks for both and blocks if anyone is found + */ + Xmlsqlinjectiontype string `json:"xmlsqlinjectiontype,omitempty"` + /** + * Check for form fields that contain SQL wild chars . + */ + Xmlsqlinjectionchecksqlwildchars string `json:"xmlsqlinjectionchecksqlwildchars,omitempty"` + /** + * Parse comments in XML Data and exempt those sections of the request that are from the XML SQL Injection check. You must configure the type of comments that the application firewall is to detect and exempt from this security check. Available settings function as follows: + * Check all - Check all content. + * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. + * Nested - Exempt content that is part of a nested (Microsoft-style) comment. + * ANSI Nested - Exempt content that is part of any type of comment. + */ + Xmlsqlinjectionparsecomments string `json:"xmlsqlinjectionparsecomments,omitempty"` + /** + * One or more XML Cross-Site Scripting actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLXSSAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLXSSAction none". + */ + Xmlxssaction []string `json:"xmlxssaction,omitempty"` + /** + * One or more Web Services Interoperability (WSI) actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLWSIAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLWSIAction none". + */ + Xmlwsiaction []string `json:"xmlwsiaction,omitempty"` + /** + * One or more XML Attachment actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Learn - Use the learning engine to generate a list of exceptions to this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLAttachmentAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLAttachmentAction none". + */ + Xmlattachmentaction []string `json:"xmlattachmentaction,omitempty"` + /** + * One or more XML Validation actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLValidationAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLValidationAction none". + */ + Xmlvalidationaction []string `json:"xmlvalidationaction,omitempty"` + /** + * Name to assign to the XML Error Object, which the application firewall displays when a user request is blocked. + Must begin with a letter, number, or the underscore character \(_\), and must contain only letters, numbers, and the hyphen \(-\), period \(.\) pound \(\#\), space \( \), at (@), equals \(=\), colon \(:\), and underscore characters. Cannot be changed after the XML error object is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my XML error object" or 'my XML error object'\). + */ + Xmlerrorobject string `json:"xmlerrorobject,omitempty"` + /** + * Response status code associated with XML error page + */ + Xmlerrorstatuscode uint32 `json:"xmlerrorstatuscode,omitempty"` + /** + * Response status message associated with XML error page + */ + Xmlerrorstatusmessage string `json:"xmlerrorstatusmessage,omitempty"` + /** + * Object name for custom settings. + This check is applicable to Profile Type: HTML, XML. + */ + Customsettings string `json:"customsettings,omitempty"` + /** + * Object name for signatures. + This check is applicable to Profile Type: HTML, XML. + */ + Signatures string `json:"signatures,omitempty"` + /** + * One or more XML SOAP Fault Filtering actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + * Remove - Remove all violations for this security check. + CLI users: To enable one or more actions, type "set appfw profile -XMLSOAPFaultAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -XMLSOAPFaultAction none". + */ + Xmlsoapfaultaction []string `json:"xmlsoapfaultaction,omitempty"` + /** + * Send an imported HTML Error object to a user when a request is blocked, instead of redirecting the user to the designated Error URL. + */ + Usehtmlerrorobject string `json:"usehtmlerrorobject,omitempty"` + /** + * URL that application firewall uses as the Error URL. + */ + Errorurl string `json:"errorurl,omitempty"` + /** + * Name to assign to the HTML Error Object. + Must begin with a letter, number, or the underscore character \(_\), and must contain only letters, numbers, and the hyphen \(-\), period \(.\) pound \(\#\), space \( \), at (@), equals \(=\), colon \(:\), and underscore characters. Cannot be changed after the HTML error object is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my HTML error object" or 'my HTML error object'\). + */ + Htmlerrorobject string `json:"htmlerrorobject,omitempty"` + /** + * Response status code associated with HTML error page + */ + Htmlerrorstatuscode uint32 `json:"htmlerrorstatuscode,omitempty"` + /** + * Response status message associated with HTML error page + */ + Htmlerrorstatusmessage string `json:"htmlerrorstatusmessage,omitempty"` + /** + * Log every profile match, regardless of security checks results. + */ + Logeverypolicyhit string `json:"logeverypolicyhit,omitempty"` + /** + * Strip HTML comments. + This check is applicable to Profile Type: HTML. + */ + Stripcomments string `json:"stripcomments,omitempty"` + /** + * Strip HTML comments before forwarding a web page sent by a protected web site in response to a user request. + */ + Striphtmlcomments string `json:"striphtmlcomments,omitempty"` + /** + * Strip XML comments before forwarding a web page sent by a protected web site in response to a user request. + */ + Stripxmlcomments string `json:"stripxmlcomments,omitempty"` + /** + * Exempt URLs that pass the Start URL closure check from SQL injection, cross-site script, field format and field consistency security checks at locations other than headers. + */ + Exemptclosureurlsfromsecuritychecks string `json:"exemptclosureurlsfromsecuritychecks,omitempty"` + /** + * Default character set for protected web pages. Web pages sent by your protected web sites in response to user requests are assigned this character set if the page does not already specify a character set. The character sets supported by the application firewall are: + * iso-8859-1 (English US) + * big5 (Chinese Traditional) + * gb2312 (Chinese Simplified) + * sjis (Japanese Shift-JIS) + * euc-jp (Japanese EUC-JP) + * iso-8859-9 (Turkish) + * utf-8 (Unicode) + * euc-kr (Korean) + */ + Defaultcharset string `json:"defaultcharset,omitempty"` + /** + * One or more security checks. Available options are as follows: + * SQLInjection - Enable dynamic learning for SQLInjection security check. + * CrossSiteScripting - Enable dynamic learning for CrossSiteScripting security check. + * fieldFormat - Enable dynamic learning for fieldFormat security check. + * None - Disable security checks for all security checks. + CLI users: To enable dynamic learning on one or more security checks, type "set appfw profile -dynamicLearning" followed by the security checks to be enabled. To turn off dynamic learning on all security checks, type "set appfw profile -dynamicLearning none". + */ + Dynamiclearning []string `json:"dynamiclearning,omitempty"` + /** + * Maximum allowed HTTP post body size, in bytes. Maximum supported value is 10GB. Citrix recommends enabling streaming option for large values of post body limit (>20MB). + */ + Postbodylimit uint64 `json:"postbodylimit,omitempty"` + /** + * One or more Post Body Limit actions. Available settings function as follows: + * Block - Block connections that violate this security check. Must always be set. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + CLI users: To enable one or more actions, type "set appfw profile -PostBodyLimitAction block" followed by the other actions to be enabled. + */ + Postbodylimitaction []string `json:"postbodylimitaction,omitempty"` + /** + * Maximum allowed HTTP post body size for signature inspection for location HTTP_POST_BODY in the signatures, in bytes. Note that the changes in value could impact CPU and latency profile. + */ + Postbodylimitsignature uint32 `json:"postbodylimitsignature,omitempty"` + /** + * Maximum allowed number of file uploads per form-submission request. The maximum setting (65535) allows an unlimited number of uploads. + */ + Fileuploadmaxnum uint32 `json:"fileuploadmaxnum,omitempty"` + /** + * Perform HTML entity encoding for any special characters in responses sent by your protected web sites. + */ + Canonicalizehtmlresponse string `json:"canonicalizehtmlresponse,omitempty"` + /** + * Enable tagging of web form fields for use by the Form Field Consistency and CSRF Form Tagging checks. + */ + Enableformtagging string `json:"enableformtagging,omitempty"` + /** + * Perform sessionless Field Consistency Checks. + */ + Sessionlessfieldconsistency string `json:"sessionlessfieldconsistency,omitempty"` + /** + * Enable session less URL Closure Checks. + This check is applicable to Profile Type: HTML. + */ + Sessionlessurlclosure string `json:"sessionlessurlclosure,omitempty"` + /** + * Allow ';' as a form field separator in URL queries and POST form bodies. + */ + Semicolonfieldseparator string `json:"semicolonfieldseparator,omitempty"` + /** + * Exclude uploaded files from Form checks. + */ + Excludefileuploadfromchecks string `json:"excludefileuploadfromchecks,omitempty"` + /** + * Parse HTML comments and exempt them from the HTML SQL Injection check. You must specify the type of comments that the application firewall is to detect and exempt from this security check. Available settings function as follows: + * Check all - Check all content. + * ANSI - Exempt content that is part of an ANSI (Mozilla-style) comment. + * Nested - Exempt content that is part of a nested (Microsoft-style) comment. + * ANSI Nested - Exempt content that is part of any type of comment. + */ + Sqlinjectionparsecomments string `json:"sqlinjectionparsecomments,omitempty"` + /** + * Configure the method that the application firewall uses to handle percent-encoded names and values. Available settings function as follows: + * apache_mode - Apache format. + * asp_mode - Microsoft ASP format. + * secure_mode - Secure format. + */ + Invalidpercenthandling string `json:"invalidpercenthandling,omitempty"` + /** + * Application firewall profile type, which controls which security checks and settings are applied to content that is filtered with the profile. Available settings function as follows: + * HTML - HTML-based web sites. + * XML - XML-based web sites and services. + * JSON - JSON-based web sites and services. + * HTML XML (Web 2.0) - Sites that contain both HTML and XML content, such as ATOM feeds, blogs, and RSS feeds. + * HTML JSON - Sites that contain both HTML and JSON content. + * XML JSON - Sites that contain both XML and JSON content. + * HTML XML JSON - Sites that contain HTML, XML and JSON content. + */ + Type []string `json:"type,omitempty"` + /** + * Check request headers as well as web forms for injected SQL and cross-site scripts. + */ + Checkrequestheaders string `json:"checkrequestheaders,omitempty"` + /** + * Inspect request query as well as web forms for injected SQL and cross-site scripts for following content types. + */ + Inspectquerycontenttypes []string `json:"inspectquerycontenttypes,omitempty"` + /** + * Optimize handle of HTTP partial requests i.e. those with range headers. + Available settings are as follows: + * ON - Partial requests by the client result in partial requests to the backend server in most cases. + * OFF - Partial requests by the client are changed to full requests to the backend server + */ + Optimizepartialreqs string `json:"optimizepartialreqs,omitempty"` + /** + * URL Decode request cookies before subjecting them to SQL and cross-site scripting checks. + */ + Urldecoderequestcookies string `json:"urldecoderequestcookies,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Configure whether the application firewall should use percentage recursive decoding + */ + Percentdecoderecursively string `json:"percentdecoderecursively,omitempty"` + /** + * One or more multiple header actions. Available settings function as follows: + * Block - Block connections that have multiple headers. + * Log - Log connections that have multiple headers. + * KeepLast - Keep only last header when multiple headers are present. + CLI users: To enable one or more actions, type "set appfw profile -multipleHeaderAction" followed by the actions to be enabled. + */ + Multipleheaderaction []string `json:"multipleheaderaction,omitempty"` + /** + * Object name of the rfc profile. + */ + Rfcprofile string `json:"rfcprofile,omitempty"` + /** + * One or more file upload types actions. Available settings function as follows: + * Block - Block connections that violate this security check. + * Log - Log violations of this security check. + * Stats - Generate statistics for this security check. + * None - Disable all actions for this security check. + CLI users: To enable one or more actions, type "set appfw profile -fileUploadTypeAction" followed by the actions to be enabled. To turn off all actions, type "set appfw profile -fileUploadTypeAction none". + */ + Fileuploadtypesaction []string `json:"fileuploadtypesaction,omitempty"` + /** + * Detailed Logging Verbose Log Level. + */ + Verboseloglevel string `json:"verboseloglevel,omitempty"` + /** + * Configure whether application firewall should add samesite attribute for set-cookies + */ + Insertcookiesamesiteattribute string `json:"insertcookiesamesiteattribute,omitempty"` + /** + * Cookie Samesite attribute added to support adding cookie SameSite attribute for all set-cookies including appfw session cookies. Default value will be "SameSite=Lax". + */ + Cookiesamesiteattribute string `json:"cookiesamesiteattribute,omitempty"` + /** + * Specifies SQL Injection rule type: ALLOW/DENY. If ALLOW rule type is configured then allow list rules are used, if DENY rule type is configured then deny rules are used. + */ + Sqlinjectionruletype string `json:"sqlinjectionruletype,omitempty"` + /** + * Source for tar archive. + */ + Archivename string `json:"archivename,omitempty"` + /** + * Import all appfw relaxation rules + */ + Relaxationrules bool `json:"relaxationrules,omitempty"` + /** + * Name of the profile which will be created/updated to associate the relaxation rules + */ + Importprofilename string `json:"importprofilename,omitempty"` + /** + * Match this action url in archived Relaxation Rules to replace. + */ + Matchurlstring string `json:"matchurlstring,omitempty"` + /** + * Replace matched url string with this action url string while restoring Relaxation Rules + */ + Replaceurlstring string `json:"replaceurlstring,omitempty"` + /** + * Purge existing Relaxation Rules and replace during import + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * Augment Relaxation Rules during import + */ + Augment bool `json:"augment,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + Learning string `json:"learning,omitempty"` + Csrftag string `json:"csrftag,omitempty"` + Builtin string `json:"builtin,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_binding.go new file mode 100644 index 000000000..5342f1d2e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding object which returns the resources bound to appfwprofile_binding. +*/ +type Appfwprofilebinding struct { + /** + * Name of the application firewall profile.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cmdinjection_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cmdinjection_binding.go new file mode 100644 index 000000000..e4bb44aae --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cmdinjection_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the cmdinjection that can be bound to appfwprofile. +*/ +type Appfwprofilecmdinjectionbinding struct { + /** + * Name of the relaxed web form field/header/cookie + */ + Cmdinjection string `json:"cmdinjection,omitempty"` + /** + * Is the relaxed web form field name/header/cookie a regular expression? + */ + Isregexcmd string `json:"isregex_cmd,omitempty"` + /** + * The web form action URL. + */ + Formactionurlcmd string `json:"formactionurl_cmd,omitempty"` + /** + * Location of command injection exception - form field, header or cookie. + */ + Asscanlocationcmd string `json:"as_scan_location_cmd,omitempty"` + /** + * Type of the relaxed web form value + */ + Asvaluetypecmd string `json:"as_value_type_cmd,omitempty"` + /** + * The web form/header/cookie value expression. + */ + Asvalueexprcmd string `json:"as_value_expr_cmd,omitempty"` + /** + * Is the web form field/header/cookie value a regular expression? + */ + Isvalueregexcmd string `json:"isvalueregex_cmd,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_contenttype_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_contenttype_binding.go new file mode 100644 index 000000000..ac5289c69 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_contenttype_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the contenttype that can be bound to appfwprofile. +*/ +type Appfwprofilecontenttypebinding struct { + /** + * A regular expression that designates a content-type on the content-types list. + */ + Contenttype string `json:"contenttype,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cookieconsistency_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cookieconsistency_binding.go new file mode 100644 index 000000000..b65bbf09b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_cookieconsistency_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the cookieconsistency that can be bound to appfwprofile. +*/ +type Appfwprofilecookieconsistencybinding struct { + /** + * The name of the cookie to be checked. + */ + Cookieconsistency string `json:"cookieconsistency,omitempty"` + /** + * Is the cookie name a regular expression? + */ + Isregex string `json:"isregex,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_creditcardnumber_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_creditcardnumber_binding.go new file mode 100644 index 000000000..b0046f779 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_creditcardnumber_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the creditcardnumber that can be bound to appfwprofile. +*/ +type Appfwprofilecreditcardnumberbinding struct { + /** + * The object expression that is to be excluded from safe commerce check + */ + Creditcardnumber string `json:"creditcardnumber,omitempty"` + /** + * The url for which the list of credit card numbers are needed to be bypassed from inspection + */ + Creditcardnumberurl string `json:"creditcardnumberurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_crosssitescripting_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_crosssitescripting_binding.go new file mode 100644 index 000000000..30df6ea9d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_crosssitescripting_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the crosssitescripting that can be bound to appfwprofile. +*/ +type Appfwprofilecrosssitescriptingbinding struct { + /** + * The web form field name. + */ + Crosssitescripting string `json:"crosssitescripting,omitempty"` + /** + * Is the web form field name a regular expression? + */ + Isregexxss string `json:"isregex_xss,omitempty"` + /** + * The web form action URL. + */ + Formactionurlxss string `json:"formactionurl_xss,omitempty"` + /** + * Location of cross-site scripting exception - form field, header, cookie or URL. + */ + Asscanlocationxss string `json:"as_scan_location_xss,omitempty"` + /** + * The web form value type. + */ + Asvaluetypexss string `json:"as_value_type_xss,omitempty"` + /** + * The web form value expression. + */ + Asvalueexprxss string `json:"as_value_expr_xss,omitempty"` + /** + * Is the web form field value a regular expression? + */ + Isvalueregexxss string `json:"isvalueregex_xss,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_csrftag_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_csrftag_binding.go new file mode 100644 index 000000000..3ea726669 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_csrftag_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the csrftag that can be bound to appfwprofile. +*/ +type Appfwprofilecsrftagbinding struct { + /** + * The web form originating URL. + */ + Csrftag string `json:"csrftag,omitempty"` + /** + * The web form action URL. + */ + Csrfformactionurl string `json:"csrfformactionurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_denyurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_denyurl_binding.go new file mode 100644 index 000000000..7aac1a299 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_denyurl_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the denyurl that can be bound to appfwprofile. +*/ +type Appfwprofiledenyurlbinding struct { + /** + * A regular expression that designates a URL on the Deny URL list. + */ + Denyurl string `json:"denyurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go new file mode 100644 index 000000000..6ac652446 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_excluderescontenttype_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the excluderescontenttype that can be bound to appfwprofile. +*/ +type Appfwprofileexcluderescontenttypebinding struct { + /** + * A regular expression that represents the content type of the response that are to be excluded from inspection. + */ + Excluderescontenttype string `json:"excluderescontenttype,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldconsistency_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldconsistency_binding.go new file mode 100644 index 000000000..e826fb5a4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldconsistency_binding.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the fieldconsistency that can be bound to appfwprofile. +*/ +type Appfwprofilefieldconsistencybinding struct { + /** + * The web form field name. + */ + Fieldconsistency string `json:"fieldconsistency,omitempty"` + /** + * Is the web form field name a regular expression? + */ + Isregexffc string `json:"isregex_ffc,omitempty"` + /** + * The web form action URL. + */ + Formactionurlffc string `json:"formactionurl_ffc,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go new file mode 100644 index 000000000..22cab65ec --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the fieldformat that can be bound to appfwprofile. +*/ +type Appfwprofilefieldformatbinding struct { + /** + * Name of the form field to which a field format will be assigned. + */ + Fieldformat string `json:"fieldformat,omitempty"` + /** + * Is the form field name a regular expression? + */ + Isregexff string `json:"isregex_ff,omitempty"` + /** + * Action URL of the form field to which a field format will be assigned. + */ + Formactionurlff string `json:"formactionurl_ff,omitempty"` + /** + * The field type you are assigning to this form field. + */ + Fieldtype string `json:"fieldtype,omitempty"` + /** + * The minimum allowed length for data in this form field. + */ + Fieldformatminlength uint32 `json:"fieldformatminlength,omitempty"` + /** + * The maximum allowed length for data in this form field. + */ + Fieldformatmaxlength uint32 `json:"fieldformatmaxlength,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fileuploadtype_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fileuploadtype_binding.go new file mode 100644 index 000000000..a16e47ccb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fileuploadtype_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the fileuploadtype that can be bound to appfwprofile. +*/ +type Appfwprofilefileuploadtypebinding struct { + /** + * FileUploadTypes to allow/deny. + */ + Fileuploadtype string `json:"fileuploadtype,omitempty"` + /** + * FileUploadTypes action URL. + */ + Asfileuploadtypesurl string `json:"as_fileuploadtypes_url,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * FileUploadTypes file types. + */ + Filetype []string `json:"filetype,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Is a regular expression? + */ + Isregexfileuploadtypesurl string `json:"isregex_fileuploadtypes_url,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go new file mode 100644 index 000000000..3e96c7858 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsoncmdurl_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the jsoncmdurl that can be bound to appfwprofile. +*/ +type Appfwprofilejsoncmdurlbinding struct { + /** + * A regular expression that designates a URL on the Json CMD URL list for which Command injection violations are relaxed. + Enclose URLs in double quotes to ensure preservation of any embedded spaces or non-alphanumeric characters. + */ + Jsoncmdurl string `json:"jsoncmdurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go new file mode 100644 index 000000000..513f834c9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go @@ -0,0 +1,119 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the jsondosurl that can be bound to appfwprofile. +*/ +type Appfwprofilejsondosurlbinding struct { + /** + * The URL on which we need to enforce the specified JSON denial-of-service (JSONDoS) attack protections. + An JSON DoS configuration consists of the following items: + * URL. PCRE-format regular expression for the URL. + * Maximum-document-length-check toggle. ON to enable this check, OFF to disable it. + * Maximum document length. Positive integer representing the maximum length of the JSON document. + * Maximum-container-depth-check toggle. ON to enable, OFF to disable. + * Maximum container depth. Positive integer representing the maximum container depth of the JSON document. + * Maximum-object-key-count-check toggle. ON to enable, OFF to disable. + * Maximum object key count. Positive integer representing the maximum allowed number of keys in any of the JSON object. + * Maximum-object-key-length-check toggle. ON to enable, OFF to disable. + * Maximum object key length. Positive integer representing the maximum allowed length of key in any of the JSON object. + * Maximum-array-value-count-check toggle. ON to enable, OFF to disable. + * Maximum array value count. Positive integer representing the maximum allowed number of values in any of the JSON array. + * Maximum-string-length-check toggle. ON to enable, OFF to disable. + * Maximum string length. Positive integer representing the maximum length of string in JSON. + */ + Jsondosurl string `json:"jsondosurl,omitempty"` + /** + * State if JSON Max document length check is ON or OFF. + */ + Jsonmaxdocumentlengthcheck string `json:"jsonmaxdocumentlengthcheck,omitempty"` + /** + * Maximum document length of JSON document, in bytes. + */ + Jsonmaxdocumentlength uint32 `json:"jsonmaxdocumentlength,omitempty"` + /** + * State if JSON Max depth check is ON or OFF. + */ + Jsonmaxcontainerdepthcheck string `json:"jsonmaxcontainerdepthcheck,omitempty"` + /** + * Maximum allowed nesting depth of JSON document. JSON allows one to nest the containers (object and array) in any order to any depth. This check protects against documents that have excessive depth of hierarchy. + */ + Jsonmaxcontainerdepth uint32 `json:"jsonmaxcontainerdepth,omitempty"` + /** + * State if JSON Max object key count check is ON or OFF. + */ + Jsonmaxobjectkeycountcheck string `json:"jsonmaxobjectkeycountcheck,omitempty"` + /** + * Maximum key count in the any of JSON object. This check protects against objects that have large number of keys. + */ + Jsonmaxobjectkeycount uint32 `json:"jsonmaxobjectkeycount,omitempty"` + /** + * State if JSON Max object key length check is ON or OFF. + */ + Jsonmaxobjectkeylengthcheck string `json:"jsonmaxobjectkeylengthcheck,omitempty"` + /** + * Maximum key length in the any of JSON object. This check protects against objects that have large keys. + */ + Jsonmaxobjectkeylength uint32 `json:"jsonmaxobjectkeylength,omitempty"` + /** + * State if JSON Max array value count check is ON or OFF. + */ + Jsonmaxarraylengthcheck string `json:"jsonmaxarraylengthcheck,omitempty"` + /** + * Maximum array length in the any of JSON object. This check protects against arrays having large lengths. + */ + Jsonmaxarraylength uint32 `json:"jsonmaxarraylength,omitempty"` + /** + * State if JSON Max string value count check is ON or OFF. + */ + Jsonmaxstringlengthcheck string `json:"jsonmaxstringlengthcheck,omitempty"` + /** + * Maximum string length in the JSON. This check protects against strings that have large length. + */ + Jsonmaxstringlength uint32 `json:"jsonmaxstringlength,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go new file mode 100644 index 000000000..7425501e7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonsqlurl_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the jsonsqlurl that can be bound to appfwprofile. +*/ +type Appfwprofilejsonsqlurlbinding struct { + /** + * A regular expression that designates a URL on the Json SQL URL list for which SQL violations are relaxed. + Enclose URLs in double quotes to ensure preservation of any embedded spaces or non-alphanumeric characters. + */ + Jsonsqlurl string `json:"jsonsqlurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonxssurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonxssurl_binding.go new file mode 100644 index 000000000..532dcdb29 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsonxssurl_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the jsonxssurl that can be bound to appfwprofile. +*/ +type Appfwprofilejsonxssurlbinding struct { + /** + * A regular expression that designates a URL on the Json XSS URL list for which XSS violations are relaxed. + Enclose URLs in double quotes to ensure preservation of any embedded spaces or non-alphanumeric characters. + */ + Jsonxssurl string `json:"jsonxssurl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_logexpression_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_logexpression_binding.go new file mode 100644 index 000000000..73900573c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_logexpression_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the logexpression that can be bound to appfwprofile. +*/ +type Appfwprofilelogexpressionbinding struct { + /** + * Name of LogExpression object. + */ + Logexpression string `json:"logexpression,omitempty"` + /** + * LogExpression to log when violation happened on appfw profile + */ + Aslogexpression string `json:"as_logexpression,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go new file mode 100644 index 000000000..5cae09aa4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the safeobject that can be bound to appfwprofile. +*/ +type Appfwprofilesafeobjectbinding struct { + /** + * Name of the Safe Object. + */ + Safeobject string `json:"safeobject,omitempty"` + /** + * A regular expression that defines the Safe Object. + */ + Asexpression string `json:"as_expression,omitempty"` + /** + * Maximum match length for a Safe Object expression. + */ + Maxmatchlength uint32 `json:"maxmatchlength,omitempty"` + /** + * Safe Object action types. (BLOCK | LOG | STATS | NONE) + */ + Action []string `json:"action,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_sqlinjection_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_sqlinjection_binding.go new file mode 100644 index 000000000..d90b7dec4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_sqlinjection_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the sqlinjection that can be bound to appfwprofile. +*/ +type Appfwprofilesqlinjectionbinding struct { + /** + * The web form field name. + */ + Sqlinjection string `json:"sqlinjection,omitempty"` + /** + * Is the web form field name a regular expression? + */ + Isregexsql string `json:"isregex_sql,omitempty"` + /** + * The web form action URL. + */ + Formactionurlsql string `json:"formactionurl_sql,omitempty"` + /** + * Location of SQL injection exception - form field, header or cookie. + */ + Asscanlocationsql string `json:"as_scan_location_sql,omitempty"` + /** + * The web form value type. + */ + Asvaluetypesql string `json:"as_value_type_sql,omitempty"` + /** + * The web form value expression. + */ + Asvalueexprsql string `json:"as_value_expr_sql,omitempty"` + /** + * Is the web form field value a regular expression? + */ + Isvalueregexsql string `json:"isvalueregex_sql,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_starturl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_starturl_binding.go new file mode 100644 index 000000000..f58121d0a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_starturl_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the starturl that can be bound to appfwprofile. +*/ +type Appfwprofilestarturlbinding struct { + /** + * A regular expression that designates a URL on the Start URL list. + */ + Starturl string `json:"starturl,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go new file mode 100644 index 000000000..64d1c1fae --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_trustedlearningclients_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the trustedlearningclients that can be bound to appfwprofile. +*/ +type Appfwprofiletrustedlearningclientsbinding struct { + /** + * Specify trusted host/network IP + */ + Trustedlearningclients string `json:"trustedlearningclients,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go new file mode 100644 index 000000000..aca293cc5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmlattachmenturl that can be bound to appfwprofile. +*/ +type Appfwprofilexmlattachmenturlbinding struct { + /** + * XML attachment URL regular expression length. + */ + Xmlattachmenturl string `json:"xmlattachmenturl,omitempty"` + /** + * State if XML Max attachment size Check is ON or OFF. Protects against XML requests with large attachment data. + */ + Xmlmaxattachmentsizecheck string `json:"xmlmaxattachmentsizecheck,omitempty"` + /** + * Specify maximum attachment size. + */ + Xmlmaxattachmentsize uint32 `json:"xmlmaxattachmentsize,omitempty"` + /** + * State if XML attachment content-type check is ON or OFF. Protects against XML requests with illegal attachments. + */ + Xmlattachmentcontenttypecheck string `json:"xmlattachmentcontenttypecheck,omitempty"` + /** + * Specify content-type regular expression. + */ + Xmlattachmentcontenttype string `json:"xmlattachmentcontenttype,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go new file mode 100644 index 000000000..1b346fc8f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go @@ -0,0 +1,201 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmldosurl that can be bound to appfwprofile. +*/ +type Appfwprofilexmldosurlbinding struct { + /** + * XML DoS URL regular expression length. + */ + Xmldosurl string `json:"xmldosurl,omitempty"` + /** + * State if XML Max element depth check is ON or OFF. + */ + Xmlmaxelementdepthcheck string `json:"xmlmaxelementdepthcheck,omitempty"` + /** + * Maximum nesting (depth) of XML elements. This check protects against documents that have excessive hierarchy depths. + */ + Xmlmaxelementdepth uint32 `json:"xmlmaxelementdepth,omitempty"` + /** + * State if XML Max element name length check is ON or OFF. + */ + Xmlmaxelementnamelengthcheck string `json:"xmlmaxelementnamelengthcheck,omitempty"` + /** + * Specify the longest name of any element (including the expanded namespace) to protect against overflow attacks. + */ + Xmlmaxelementnamelength uint32 `json:"xmlmaxelementnamelength,omitempty"` + /** + * State if XML Max elements check is ON or OFF. + */ + Xmlmaxelementscheck string `json:"xmlmaxelementscheck,omitempty"` + /** + * Specify the maximum number of XML elements allowed. Protects against overflow attacks. + */ + Xmlmaxelements uint32 `json:"xmlmaxelements,omitempty"` + /** + * State if XML Max element children check is ON or OFF. + */ + Xmlmaxelementchildrencheck string `json:"xmlmaxelementchildrencheck,omitempty"` + /** + * Specify the maximum number of children allowed per XML element. Protects against overflow attacks. + */ + Xmlmaxelementchildren uint32 `json:"xmlmaxelementchildren,omitempty"` + /** + * State if XML Max nodes check is ON or OFF. + */ + Xmlmaxnodescheck string `json:"xmlmaxnodescheck,omitempty"` + /** + * Specify the maximum number of XML nodes. Protects against overflow attacks. + */ + Xmlmaxnodes uint32 `json:"xmlmaxnodes,omitempty"` + /** + * State if XML Max Entity Expansions Check is ON or OFF. + */ + Xmlmaxentityexpansionscheck string `json:"xmlmaxentityexpansionscheck,omitempty"` + /** + * Specify maximum allowed number of entity expansions. Protects aganist Entity Expansion Attack. + */ + Xmlmaxentityexpansions uint32 `json:"xmlmaxentityexpansions,omitempty"` + /** + * State if XML Max Entity Expansions Depth Check is ON or OFF. + */ + Xmlmaxentityexpansiondepthcheck string `json:"xmlmaxentityexpansiondepthcheck,omitempty"` + /** + * Specify maximum entity expansion depth. Protects aganist Entity Expansion Attack. + */ + Xmlmaxentityexpansiondepth uint32 `json:"xmlmaxentityexpansiondepth,omitempty"` + /** + * State if XML Max attributes check is ON or OFF. + */ + Xmlmaxattributescheck string `json:"xmlmaxattributescheck,omitempty"` + /** + * Specify maximum number of attributes per XML element. Protects against overflow attacks. + */ + Xmlmaxattributes uint32 `json:"xmlmaxattributes,omitempty"` + /** + * State if XML Max attribute name length check is ON or OFF. + */ + Xmlmaxattributenamelengthcheck string `json:"xmlmaxattributenamelengthcheck,omitempty"` + /** + * Specify the longest name of any XML attribute. Protects against overflow attacks. + */ + Xmlmaxattributenamelength uint32 `json:"xmlmaxattributenamelength,omitempty"` + /** + * State if XML Max atribute value length is ON or OFF. + */ + Xmlmaxattributevaluelengthcheck string `json:"xmlmaxattributevaluelengthcheck,omitempty"` + /** + * Specify the longest value of any XML attribute. Protects against overflow attacks. + */ + Xmlmaxattributevaluelength uint32 `json:"xmlmaxattributevaluelength,omitempty"` + /** + * State if XML Max namespaces check is ON or OFF. + */ + Xmlmaxnamespacescheck string `json:"xmlmaxnamespacescheck,omitempty"` + /** + * Specify maximum number of active namespaces. Protects against overflow attacks. + */ + Xmlmaxnamespaces uint32 `json:"xmlmaxnamespaces,omitempty"` + /** + * State if XML Max namespace URI length check is ON or OFF. + */ + Xmlmaxnamespaceurilengthcheck string `json:"xmlmaxnamespaceurilengthcheck,omitempty"` + /** + * Specify the longest URI of any XML namespace. Protects against overflow attacks. + */ + Xmlmaxnamespaceurilength uint32 `json:"xmlmaxnamespaceurilength,omitempty"` + /** + * State if XML Max CDATA length check is ON or OFF. + */ + Xmlmaxchardatalengthcheck string `json:"xmlmaxchardatalengthcheck,omitempty"` + /** + * Specify the maximum size of CDATA. Protects against overflow attacks and large quantities of unparsed data within XML messages. + */ + Xmlmaxchardatalength uint32 `json:"xmlmaxchardatalength,omitempty"` + /** + * State if XML Max file size check is ON or OFF. + */ + Xmlmaxfilesizecheck string `json:"xmlmaxfilesizecheck,omitempty"` + /** + * Specify the maximum size of XML messages. Protects against overflow attacks. + */ + Xmlmaxfilesize uint32 `json:"xmlmaxfilesize,omitempty"` + /** + * State if XML Min file size check is ON or OFF. + */ + Xmlminfilesizecheck string `json:"xmlminfilesizecheck,omitempty"` + /** + * Enforces minimum message size. + */ + Xmlminfilesize uint32 `json:"xmlminfilesize,omitempty"` + /** + * State if XML Block PI is ON or OFF. Protects resources from denial of service attacks as SOAP messages cannot have processing instructions (PI) in messages. + */ + Xmlblockpi string `json:"xmlblockpi,omitempty"` + /** + * State if XML DTD is ON or OFF. Protects against recursive Document Type Declaration (DTD) entity expansion attacks. Also, SOAP messages cannot have DTDs in messages. + */ + Xmlblockdtd string `json:"xmlblockdtd,omitempty"` + /** + * State if XML Block External Entities Check is ON or OFF. Protects against XML External Entity (XXE) attacks that force applications to parse untrusted external entities (sources) in XML documents. + */ + Xmlblockexternalentities string `json:"xmlblockexternalentities,omitempty"` + /** + * State if XML SOAP Array check is ON or OFF. + */ + Xmlsoaparraycheck string `json:"xmlsoaparraycheck,omitempty"` + /** + * XML Max Total SOAP Array Size. Protects against SOAP Array Abuse attack. + */ + Xmlmaxsoaparraysize uint32 `json:"xmlmaxsoaparraysize,omitempty"` + /** + * XML Max Individual SOAP Array Rank. This is the dimension of the SOAP array. + */ + Xmlmaxsoaparrayrank uint32 `json:"xmlmaxsoaparrayrank,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go new file mode 100644 index 000000000..49e76a837 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlsqlinjection_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmlsqlinjection that can be bound to appfwprofile. +*/ +type Appfwprofilexmlsqlinjectionbinding struct { + /** + * Exempt the specified URL from the XML SQL injection check. + An XML SQL injection exemption (relaxation) consists of the following items: + * Name. Name to exempt, as a string or a PCRE-format regular expression. + * ISREGEX flag. REGEX if URL is a regular expression, NOTREGEX if URL is a fixed string. + * Location. ELEMENT if the injection is located in an XML element, ATTRIBUTE if located in an XML attribute. + */ + Xmlsqlinjection string `json:"xmlsqlinjection,omitempty"` + /** + * Is the XML SQL Injection exempted field name a regular expression? + */ + Isregexxmlsql string `json:"isregex_xmlsql,omitempty"` + /** + * Location of SQL injection exception - XML Element or Attribute. + */ + Asscanlocationxmlsql string `json:"as_scan_location_xmlsql,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go new file mode 100644 index 000000000..578c0e06b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.go @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmlvalidationurl that can be bound to appfwprofile. +*/ +type Appfwprofilexmlvalidationurlbinding struct { + /** + * XML Validation URL regular expression. + */ + Xmlvalidationurl string `json:"xmlvalidationurl,omitempty"` + /** + * Validate response message. + */ + Xmlvalidateresponse string `json:"xmlvalidateresponse,omitempty"` + /** + * WSDL object for soap request validation. + */ + Xmlwsdl string `json:"xmlwsdl,omitempty"` + /** + * Allow addtional soap headers. + */ + Xmladditionalsoapheaders string `json:"xmladditionalsoapheaders,omitempty"` + /** + * Modifies the behaviour of the Request URL validation w.r.t. the Service URL. + If set to ABSOLUTE, the entire request URL is validated with the entire URL mentioned in Service of the associated WSDL. + eg: Service URL: http://example.org/ExampleService, Request URL: http//example.com/ExampleService would FAIL the validation. + If set to RELAIVE, only the non-hostname part of the request URL is validated against the non-hostname part of the Service URL. + eg: Service URL: http://example.org/ExampleService, Request URL: http//example.com/ExampleService would PASS the validation. + */ + Xmlendpointcheck string `json:"xmlendpointcheck,omitempty"` + /** + * XML Schema object for request validation . + */ + Xmlrequestschema string `json:"xmlrequestschema,omitempty"` + /** + * XML Schema object for response validation. + */ + Xmlresponseschema string `json:"xmlresponseschema,omitempty"` + /** + * Validate SOAP Evelope only. + */ + Xmlvalidatesoapenvelope string `json:"xmlvalidatesoapenvelope,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go new file mode 100644 index 000000000..4049b7086 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlwsiurl_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmlwsiurl that can be bound to appfwprofile. +*/ +type Appfwprofilexmlwsiurlbinding struct { + /** + * XML WS-I URL regular expression length. + */ + Xmlwsiurl string `json:"xmlwsiurl,omitempty"` + /** + * Specify a comma separated list of relevant WS-I rule IDs. (R1140, R1141) + */ + Xmlwsichecks string `json:"xmlwsichecks,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlxss_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlxss_binding.go new file mode 100644 index 000000000..be11b2678 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlxss_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the xmlxss that can be bound to appfwprofile. +*/ +type Appfwprofilexmlxssbinding struct { + /** + * Exempt the specified URL from the XML cross-site scripting (XSS) check. + An XML cross-site scripting exemption (relaxation) consists of the following items: + * URL. URL to exempt, as a string or a PCRE-format regular expression. + * ISREGEX flag. REGEX if URL is a regular expression, NOTREGEX if URL is a fixed string. + * Location. ELEMENT if the attachment is located in an XML element, ATTRIBUTE if located in an XML attribute. + */ + Xmlxss string `json:"xmlxss,omitempty"` + /** + * Is the XML XSS exempted field name a regular expression? + */ + Isregexxmlxss string `json:"isregex_xmlxss,omitempty"` + /** + * Location of XSS injection exception - XML Element or Attribute. + */ + Asscanlocationxmlxss string `json:"as_scan_location_xmlxss,omitempty"` + /** + * Enabled. + */ + State string `json:"state,omitempty"` + /** + * Any comments about the purpose of profile, or other useful information about the profile. + */ + Comment string `json:"comment,omitempty"` + /** + * Is the rule auto deployed by dynamic profile ? + */ + Isautodeployed string `json:"isautodeployed,omitempty"` + /** + * Send SNMP alert? + */ + Alertonly string `json:"alertonly,omitempty"` + /** + * Name of the profile to which to bind an exemption or rule. + */ + Name string `json:"name,omitempty"` + /** + * A "id" that identifies the rule. + */ + Resourceid string `json:"resourceid,omitempty"` + /** + * Specifies rule type of binding + */ + Ruletype string `json:"ruletype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go new file mode 100644 index 000000000..b3769be9a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go @@ -0,0 +1,118 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for AS settings resource. +*/ +type Appfwsettings struct { + /** + * Profile to use when a connection does not match any policy. Default setting is APPFW_BYPASS, which sends unmatched connections back to the Citrix ADC without attempting to filter them further. + */ + Defaultprofile string `json:"defaultprofile,omitempty"` + /** + * Profile to use when an application firewall policy evaluates to undefined (UNDEF). + An UNDEF event indicates an internal error condition. The APPFW_BLOCK built-in profile is the default setting. You can specify a different built-in or user-created profile as the UNDEF profile. + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Timeout, in seconds, after which a user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. + */ + Sessiontimeout uint32 `json:"sessiontimeout,omitempty"` + /** + * Maximum number of connections per second that the application firewall learning engine examines to generate new relaxations for learning-enabled security checks. The application firewall drops any connections above this limit from the list of connections used by the learning engine. + */ + Learnratelimit uint32 `json:"learnratelimit,omitempty"` + /** + * Maximum amount of time (in seconds) that the application firewall allows a user session to remain active, regardless of user activity. After this time, the user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. + */ + Sessionlifetime uint32 `json:"sessionlifetime,omitempty"` + /** + * Name of the session cookie that the application firewall uses to track user sessions. + Must begin with a letter or number, and can consist of from 1 to 31 letters, numbers, and the hyphen (-) and underscore (_) symbols. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cookie name" or 'my cookie name'). + */ + Sessioncookiename string `json:"sessioncookiename,omitempty"` + /** + * Name of an HTTP header that contains the IP address that the client used to connect to the protected web site or service. + */ + Clientiploggingheader string `json:"clientiploggingheader,omitempty"` + /** + * Cumulative total maximum number of bytes in web forms imported to a protected web site. If a user attempts to upload files with a total byte count higher than the specified limit, the application firewall blocks the request. + */ + Importsizelimit uint32 `json:"importsizelimit,omitempty"` + /** + * Flag used to enable/disable auto update signatures + */ + Signatureautoupdate string `json:"signatureautoupdate,omitempty"` + /** + * URL to download the mapping file from server + */ + Signatureurl string `json:"signatureurl,omitempty"` + /** + * String that is prepended to all encrypted cookie values. + */ + Cookiepostencryptprefix string `json:"cookiepostencryptprefix,omitempty"` + /** + * Log requests that are so malformed that application firewall parsing doesn't occur. + */ + Logmalformedreq string `json:"logmalformedreq,omitempty"` + /** + * Enable Geo-Location Logging in CEF format logs. + */ + Geolocationlogging string `json:"geolocationlogging,omitempty"` + /** + * Enable CEF format logs. + */ + Ceflogging string `json:"ceflogging,omitempty"` + /** + * Transform multibyte (double- or half-width) characters to single width characters. + */ + Entitydecoding string `json:"entitydecoding,omitempty"` + /** + * Use configurable secret key in AppFw operations + */ + Useconfigurablesecretkey string `json:"useconfigurablesecretkey,omitempty"` + /** + * Maximum number of sessions that the application firewall allows to be active, regardless of user activity. After the max_limit reaches, No more user session will be created . + */ + Sessionlimit uint32 `json:"sessionlimit,omitempty"` + /** + * flag to define action on malformed requests that application firewall cannot parse + */ + Malformedreqaction []string `json:"malformedreqaction,omitempty"` + /** + * Flag used to enable/disable ADM centralized learning + */ + Centralizedlearning string `json:"centralizedlearning,omitempty"` + /** + * Proxy Server IP to get updated signatures from AWS. + */ + Proxyserver string `json:"proxyserver,omitempty"` + /** + * Proxy Server Port to get updated signatures from AWS. + */ + Proxyport int32 `json:"proxyport,omitempty"` + + //------- Read only Parameter ---------; + + Learning string `json:"learning,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsignatures.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsignatures.go new file mode 100644 index 000000000..4836db254 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsignatures.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for application firewall signatures XML configuration resource. +*/ +type Appfwsignatures struct { + /** + * Name of the signature object. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and file name) for the location at which to store the imported signatures object. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * XSLT file source. + */ + Xslt string `json:"xslt,omitempty"` + /** + * Any comments to preserve information about the signatures object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing signatures object of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * Merges the existing Signature with new signature rules + */ + Merge bool `json:"merge,omitempty"` + /** + * preserves def actions of signature rules + */ + Preservedefactions bool `json:"preservedefactions,omitempty"` + /** + * File path for sha1 file to validate signature file + */ + Sha1 string `json:"sha1,omitempty"` + /** + * Third party vendor type for which WAF signatures has to be generated. + */ + Vendortype string `json:"vendortype,omitempty"` + /** + * Merges signature file with default signature file. + */ + Mergedefault bool `json:"mergedefault,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go new file mode 100644 index 000000000..f28326c27 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for Application firewall transaction record resource. +*/ +type Appfwtransactionrecords struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Httptransactionid string `json:"httptransactionid,omitempty"` + Packetengineid string `json:"packetengineid,omitempty"` + Appfwsessionid string `json:"appfwsessionid,omitempty"` + Profilename string `json:"profilename,omitempty"` + Url string `json:"url,omitempty"` + Clientip string `json:"clientip,omitempty"` + Destip string `json:"destip,omitempty"` + Starttime string `json:"starttime,omitempty"` + Endtime string `json:"endtime,omitempty"` + Requestcontentlength string `json:"requestcontentlength,omitempty"` + Requestyields string `json:"requestyields,omitempty"` + Requestmaxprocessingtime string `json:"requestmaxprocessingtime,omitempty"` + Responsecontentlength string `json:"responsecontentlength,omitempty"` + Responseyields string `json:"responseyields,omitempty"` + Responsemaxprocessingtime string `json:"responsemaxprocessingtime,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwurlencodedformcontenttype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwurlencodedformcontenttype.go new file mode 100644 index 000000000..2945ae34f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwurlencodedformcontenttype.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for Urlencoded form content type resource. +*/ +type Appfwurlencodedformcontenttype struct { + /** + * Content type to be classified as urlencoded form + */ + Urlencodedformcontenttypevalue string `json:"urlencodedformcontenttypevalue,omitempty"` + /** + * Is urlencoded form content type a regular expression? + */ + Isregex string `json:"isregex,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwwsdl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwwsdl.go new file mode 100644 index 000000000..25eeef2bd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwwsdl.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for WSDL file resource. +*/ +type Appfwwsdl struct { + /** + * Name of the WSDL file to remove. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and name) of the WSDL file to be imported is stored. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Any comments to preserve information about the WSDL. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing WSDL of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlcontenttype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlcontenttype.go new file mode 100644 index 000000000..38879e95a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlcontenttype.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for XML Content type resource. +*/ +type Appfwxmlcontenttype struct { + /** + * Content type to be classified as XML + */ + Xmlcontenttypevalue string `json:"xmlcontenttypevalue,omitempty"` + /** + * Is field name a regular expression? + */ + Isregex string `json:"isregex,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlerrorpage.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlerrorpage.go new file mode 100644 index 000000000..6fb70054d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlerrorpage.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for xml error page resource. +*/ +type Appfwxmlerrorpage struct { + /** + * Indicates name of the imported xml error page to be removed. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and name) for the location at which to store the imported XML error object. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Any comments to preserve information about the XML error object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing XML error object of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlschema.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlschema.go new file mode 100644 index 000000000..60f123380 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwxmlschema.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Configuration for XML schema resource. +*/ +type Appfwxmlschema struct { + /** + * Name of the XML Schema object to remove. + */ + Name string `json:"name,omitempty"` + /** + * URL (protocol, host, path, and file name) for the location at which to store the imported XML Schema. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Any comments to preserve information about the XML Schema object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrite any existing XML Schema object of the same name. + */ + Overwrite bool `json:"overwrite,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessageaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessageaction.go new file mode 100644 index 000000000..0eaffad40 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessageaction.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for message action resource. +*/ +type Auditmessageaction struct { + /** + * Name of the audit message action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the message action is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my message action" or 'my message action'). + */ + Name string `json:"name,omitempty"` + /** + * Audit log level, which specifies the severity level of the log message being generated.. + The following loglevels are valid: + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + */ + Loglevel string `json:"loglevel,omitempty"` + /** + * Default-syntax expression that defines the format and content of the log message. + */ + Stringbuilderexpr string `json:"stringbuilderexpr,omitempty"` + /** + * Send the message to the new nslog. + */ + Logtonewnslog string `json:"logtonewnslog,omitempty"` + /** + * Bypass the safety check and allow unsafe expressions. + */ + Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` + + //------- Read only Parameter ---------; + + Loglevel1 string `json:"loglevel1,omitempty"` + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go new file mode 100644 index 000000000..5861dfa8e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for audit message resource. +*/ +type Auditmessages struct { + /** + * Audit log level filter, which specifies the types of events to display. + The following loglevels are valid: + * ALL - All events. + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + */ + Loglevel []string `json:"loglevel,omitempty"` + /** + * Number of log messages to be displayed. + */ + Numofmesgs uint32 `json:"numofmesgs,omitempty"` + + //------- Read only Parameter ---------; + + Value string `json:"value,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go new file mode 100644 index 000000000..4a63273dd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go @@ -0,0 +1,133 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for ns log action resource. +*/ +type Auditnslogaction struct { + /** + * Name of the nslog action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the nslog action is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my nslog action" or 'my nslog action'). + */ + Name string `json:"name,omitempty"` + /** + * IP address of the nslog server. + */ + Serverip string `json:"serverip,omitempty"` + /** + * Auditserver name as a FQDN. Mutually exclusive with serverIP + */ + Serverdomainname string `json:"serverdomainname,omitempty"` + /** + * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the audit server if the last query failed. + */ + Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + /** + * Port on which the nslog server accepts connections. + */ + Serverport int32 `json:"serverport,omitempty"` + /** + * Audit log level, which specifies the types of events to log. + Available settings function as follows: + * ALL - All events. + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + * NONE - No events. + */ + Loglevel []string `json:"loglevel,omitempty"` + /** + * Format of dates in the logs. + Supported formats are: + * MMDDYYYY - U.S. style month/date/year format. + * DDMMYYYY - European style date/month/year format. + * YYYYMMDD - ISO style year/month/date format. + */ + Dateformat string `json:"dateformat,omitempty"` + /** + * Facility value, as defined in RFC 3164, assigned to the log message. + Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. + */ + Logfacility string `json:"logfacility,omitempty"` + /** + * Log TCP messages. + */ + Tcp string `json:"tcp,omitempty"` + /** + * Log access control list (ACL) messages. + */ + Acl string `json:"acl,omitempty"` + /** + * Time zone used for date and timestamps in the logs. + Available settings function as follows: + * GMT_TIME. Coordinated Universal Time. + * LOCAL_TIME. The server's timezone setting. + */ + Timezone string `json:"timezone,omitempty"` + /** + * Log user-configurable log messages to nslog. + Setting this parameter to NO causes auditing to ignore all user-configured message actions. Setting this parameter to YES causes auditing to log user-configured message actions that meet the other logging criteria. + */ + Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` + /** + * Export log messages to AppFlow collectors. + Appflow collectors are entities to which log messages can be sent so that some action can be performed on them. + */ + Appflowexport string `json:"appflowexport,omitempty"` + /** + * Log the LSN messages + */ + Lsn string `json:"lsn,omitempty"` + /** + * Log the ALG messages + */ + Alg string `json:"alg,omitempty"` + /** + * Log subscriber session event information + */ + Subscriberlog string `json:"subscriberlog,omitempty"` + /** + * Log SSL Interception event information + */ + Sslinterception string `json:"sslinterception,omitempty"` + /** + * Log URL filtering event information + */ + Urlfiltering string `json:"urlfiltering,omitempty"` + /** + * Log Content Inspection event information + */ + Contentinspectionlog string `json:"contentinspectionlog,omitempty"` + /** + * Immediately send a DNS query to resolve the server's domain name. + */ + Domainresolvenow bool `json:"domainresolvenow,omitempty"` + + //------- Read only Parameter ---------; + + Ip string `json:"ip,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_binding.go new file mode 100644 index 000000000..8da661d9e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding object which returns the resources bound to auditnslogglobal_binding. +*/ +type Auditnslogglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go new file mode 100644 index 000000000..e10e02645 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_nslogpolicy_binding.go @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the nslogpolicy that can be bound to auditnslogglobal. +*/ +type Auditnslogglobalnslogpolicybinding struct { + /** + * Name of the audit nslog policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * number of polices bound to label. + */ + Numpol uint32 `json:"numpol,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go new file mode 100644 index 000000000..fdcc1af95 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go @@ -0,0 +1,114 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for ns log parameters resource. +*/ +type Auditnslogparams struct { + /** + * IP address of the nslog server. + */ + Serverip string `json:"serverip,omitempty"` + /** + * Port on which the nslog server accepts connections. + */ + Serverport int32 `json:"serverport,omitempty"` + /** + * Format of dates in the logs. + Supported formats are: + * MMDDYYYY - U.S. style month/date/year format. + * DDMMYYYY - European style date/month/year format. + * YYYYMMDD - ISO style year/month/date format. + */ + Dateformat string `json:"dateformat,omitempty"` + /** + * Types of information to be logged. + Available settings function as follows: + * ALL - All events. + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + * NONE - No events. + */ + Loglevel []string `json:"loglevel,omitempty"` + /** + * Facility value, as defined in RFC 3164, assigned to the log message. + Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. + */ + Logfacility string `json:"logfacility,omitempty"` + /** + * Configure auditing to log TCP messages. + */ + Tcp string `json:"tcp,omitempty"` + /** + * Configure auditing to log access control list (ACL) messages. + */ + Acl string `json:"acl,omitempty"` + /** + * Time zone used for date and timestamps in the logs. + Supported settings are: + * GMT_TIME - Coordinated Universal Time. + * LOCAL_TIME - Use the server's timezone setting. + */ + Timezone string `json:"timezone,omitempty"` + /** + * Log user-configurable log messages to nslog. + Setting this parameter to NO causes auditing to ignore all user-configured message actions. Setting this parameter to YES causes auditing to log user-configured message actions that meet the other logging criteria. + */ + Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` + /** + * Export log messages to AppFlow collectors. + Appflow collectors are entities to which log messages can be sent so that some action can be performed on them. + */ + Appflowexport string `json:"appflowexport,omitempty"` + /** + * Log the LSN messages + */ + Lsn string `json:"lsn,omitempty"` + /** + * Log the ALG messages + */ + Alg string `json:"alg,omitempty"` + /** + * Log subscriber session event information + */ + Subscriberlog string `json:"subscriberlog,omitempty"` + /** + * Log SSL Interception event information + */ + Sslinterception string `json:"sslinterception,omitempty"` + /** + * Log URL filtering event information + */ + Urlfiltering string `json:"urlfiltering,omitempty"` + /** + * Log Content Inspection event information + */ + Contentinspectionlog string `json:"contentinspectionlog,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy.go new file mode 100644 index 000000000..99a9ad783 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for ns log policy resource. +*/ +type Auditnslogpolicy struct { + /** + * Name for the policy. + Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the nslog policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my nslog policy" or 'my nslog policy'). + */ + Name string `json:"name,omitempty"` + /** + * Name of the Citrix ADC named rule, or an expression, that defines the messages to be logged to the nslog server. + */ + Rule string `json:"rule,omitempty"` + /** + * Nslog server action that is performed when this policy matches. + NOTE: An nslog server action must be associated with an nslog audit policy. + */ + Action string `json:"action,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Expressiontype string `json:"expressiontype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_binding.go new file mode 100644 index 000000000..cc0822f7d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding object which returns the resources bound to auditnslogpolicy_binding. +*/ +type Auditnslogpolicybinding struct { + /** + * Name of the policy.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_global_binding.go new file mode 100644 index 000000000..f7b747257 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_global_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the global that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_group_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_group_binding.go new file mode 100644 index 000000000..6d970e4e9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_group_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the group that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicygroupbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go new file mode 100644 index 000000000..f5fd139ed --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_nslogglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the nslogglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicynslogglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_user_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_user_binding.go new file mode 100644 index 000000000..53b6fba48 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_user_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the user that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyuserbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vserver_binding.go new file mode 100644 index 000000000..a2eac05d7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vserver that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go new file mode 100644 index 000000000..b00a9700f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go @@ -0,0 +1,158 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for system log action resource. +*/ +type Auditsyslogaction struct { + /** + * Name of the syslog action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the syslog action is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my syslog action" or 'my syslog action'). + */ + Name string `json:"name,omitempty"` + /** + * IP address of the syslog server. + */ + Serverip string `json:"serverip,omitempty"` + /** + * SYSLOG server name as a FQDN. Mutually exclusive with serverIP/lbVserverName + */ + Serverdomainname string `json:"serverdomainname,omitempty"` + /** + * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the syslog server if the last query failed. + */ + Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + /** + * Name of the LB vserver. Mutually exclusive with syslog serverIP/serverName + */ + Lbvservername string `json:"lbvservername,omitempty"` + /** + * Port on which the syslog server accepts connections. + */ + Serverport int32 `json:"serverport,omitempty"` + /** + * Audit log level, which specifies the types of events to log. + Available values function as follows: + * ALL - All events. + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + * NONE - No events. + */ + Loglevel []string `json:"loglevel,omitempty"` + /** + * Format of dates in the logs. + Supported formats are: + * MMDDYYYY. -U.S. style month/date/year format. + * DDMMYYYY - European style date/month/year format. + * YYYYMMDD - ISO style year/month/date format. + */ + Dateformat string `json:"dateformat,omitempty"` + /** + * Facility value, as defined in RFC 3164, assigned to the log message. + Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. + */ + Logfacility string `json:"logfacility,omitempty"` + /** + * Log TCP messages. + */ + Tcp string `json:"tcp,omitempty"` + /** + * Log access control list (ACL) messages. + */ + Acl string `json:"acl,omitempty"` + /** + * Time zone used for date and timestamps in the logs. + Supported settings are: + * GMT_TIME. Coordinated Universal time. + * LOCAL_TIME. Use the server's timezone setting. + */ + Timezone string `json:"timezone,omitempty"` + /** + * Log user-configurable log messages to syslog. + Setting this parameter to NO causes auditing to ignore all user-configured message actions. Setting this parameter to YES causes auditing to log user-configured message actions that meet the other logging criteria. + */ + Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` + /** + * Export log messages to AppFlow collectors. + Appflow collectors are entities to which log messages can be sent so that some action can be performed on them. + */ + Appflowexport string `json:"appflowexport,omitempty"` + /** + * Log lsn info + */ + Lsn string `json:"lsn,omitempty"` + /** + * Log alg info + */ + Alg string `json:"alg,omitempty"` + /** + * Log subscriber session event information + */ + Subscriberlog string `json:"subscriberlog,omitempty"` + /** + * Transport type used to send auditlogs to syslog server. Default type is UDP. + */ + Transport string `json:"transport,omitempty"` + /** + * Name of the TCP profile whose settings are to be applied to the audit server info to tune the TCP connection parameters. + */ + Tcpprofilename string `json:"tcpprofilename,omitempty"` + /** + * Max size of log data that can be held in NSB chain of server info. + */ + Maxlogdatasizetohold uint32 `json:"maxlogdatasizetohold,omitempty"` + /** + * Log DNS related syslog messages + */ + Dns string `json:"dns,omitempty"` + /** + * Log Content Inspection event information + */ + Contentinspectionlog string `json:"contentinspectionlog,omitempty"` + /** + * Name of the network profile. + The SNIP configured in the network profile will be used as source IP while sending log messages. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * Log SSL Interception event information + */ + Sslinterception string `json:"sslinterception,omitempty"` + /** + * Log URL filtering event information + */ + Urlfiltering string `json:"urlfiltering,omitempty"` + /** + * Immediately send a DNS query to resolve the server's domain name. + */ + Domainresolvenow bool `json:"domainresolvenow,omitempty"` + + //------- Read only Parameter ---------; + + Ip string `json:"ip,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_binding.go new file mode 100644 index 000000000..c7d72e5dd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding object which returns the resources bound to auditsyslogglobal_binding. +*/ +type Auditsyslogglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go new file mode 100644 index 000000000..3da327410 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_syslogpolicy_binding.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the syslogpolicy that can be bound to auditsyslogglobal. +*/ +type Auditsyslogglobalsyslogpolicybinding struct { + /** + * Name of the audit syslog policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * number of polices bound to label. + */ + Numpol uint32 `json:"numpol,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go new file mode 100644 index 000000000..d1741f15d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go @@ -0,0 +1,118 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for system log parameters resource. +*/ +type Auditsyslogparams struct { + /** + * IP address of the syslog server. + */ + Serverip string `json:"serverip,omitempty"` + /** + * Port on which the syslog server accepts connections. + */ + Serverport int32 `json:"serverport,omitempty"` + /** + * Format of dates in the logs. + Supported formats are: + * MMDDYYYY - U.S. style month/date/year format. + * DDMMYYYY. European style -date/month/year format. + * YYYYMMDD - ISO style year/month/date format. + */ + Dateformat string `json:"dateformat,omitempty"` + /** + * Types of information to be logged. + Available settings function as follows: + * ALL - All events. + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + * NONE - No events. + */ + Loglevel []string `json:"loglevel,omitempty"` + /** + * Facility value, as defined in RFC 3164, assigned to the log message. + Log facility values are numbers 0 to 7 (LOCAL0 through LOCAL7). Each number indicates where a specific message originated from, such as the Citrix ADC itself, the VPN, or external. + */ + Logfacility string `json:"logfacility,omitempty"` + /** + * Log TCP messages. + */ + Tcp string `json:"tcp,omitempty"` + /** + * Log access control list (ACL) messages. + */ + Acl string `json:"acl,omitempty"` + /** + * Time zone used for date and timestamps in the logs. + Available settings function as follows: + * GMT_TIME - Coordinated Universal Time. + * LOCAL_TIME Use the server's timezone setting. + */ + Timezone string `json:"timezone,omitempty"` + /** + * Log user-configurable log messages to syslog. + Setting this parameter to NO causes audit to ignore all user-configured message actions. Setting this parameter to YES causes audit to log user-configured message actions that meet the other logging criteria. + */ + Userdefinedauditlog string `json:"userdefinedauditlog,omitempty"` + /** + * Export log messages to AppFlow collectors. + Appflow collectors are entities to which log messages can be sent so that some action can be performed on them. + */ + Appflowexport string `json:"appflowexport,omitempty"` + /** + * Log the LSN messages + */ + Lsn string `json:"lsn,omitempty"` + /** + * Log the ALG messages + */ + Alg string `json:"alg,omitempty"` + /** + * Log subscriber session event information + */ + Subscriberlog string `json:"subscriberlog,omitempty"` + /** + * Log DNS related syslog messages + */ + Dns string `json:"dns,omitempty"` + /** + * Log SSL Interceptionn event information + */ + Sslinterception string `json:"sslinterception,omitempty"` + /** + * Log URL filtering event information + */ + Urlfiltering string `json:"urlfiltering,omitempty"` + /** + * Log Content Inspection event ifnormation + */ + Contentinspectionlog string `json:"contentinspectionlog,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy.go new file mode 100644 index 000000000..5f9ce91e6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Configuration for system log policy resource. +*/ +type Auditsyslogpolicy struct { + /** + * Name for the policy. + Must begin with a letter, number, or the underscore character (_), and must consist only of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the syslog policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my syslog policy" or 'my syslog policy'). + */ + Name string `json:"name,omitempty"` + /** + * Name of the Citrix ADC named rule, or an expression, that defines the messages to be logged to the syslog server. + */ + Rule string `json:"rule,omitempty"` + /** + * Syslog server action to perform when this policy matches traffic. + NOTE: A syslog server action must be associated with a syslog audit policy. + */ + Action string `json:"action,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Expressiontype string `json:"expressiontype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_binding.go new file mode 100644 index 000000000..2cc0a3a22 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding object which returns the resources bound to auditsyslogpolicy_binding. +*/ +type Auditsyslogpolicybinding struct { + /** + * Name of the policy.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_global_binding.go new file mode 100644 index 000000000..d7f960ae4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_global_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the global that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_group_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_group_binding.go new file mode 100644 index 000000000..e04ef3085 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_group_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the group that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicygroupbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go new file mode 100644 index 000000000..23a3cf0f5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the rnatglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyrnatglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go new file mode 100644 index 000000000..86daba61c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_syslogglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the syslogglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicysyslogglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_user_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_user_binding.go new file mode 100644 index 000000000..fb6b145f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_user_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the user that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyuserbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vserver_binding.go new file mode 100644 index 000000000..4536656d1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vserver that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/dbsmonitors.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/dbsmonitors.go new file mode 100644 index 000000000..f14b1b54f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/dbsmonitors.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for DB monitors resource. +*/ +type Dbsmonitors struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go new file mode 100644 index 000000000..1c06f60f4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for Parameter for extended memory used by LSN and Subscriber Store resource. +*/ +type Extendedmemoryparam struct { + /** + * Amount of Citrix ADC memory to reserve for the memory used by LSN and Subscriber Session Store feature, in multiples of 2MB. + Note: If you later reduce the value of this parameter, the amount of active memory is not reduced. Changing the configured memory limit can only increase the amount of active memory. + */ + Memlimit uint64 `json:"memlimit,omitempty"` + + //------- Read only Parameter ---------; + + Memlimitactive string `json:"memlimitactive,omitempty"` + Maxmemlimit string `json:"maxmemlimit,omitempty"` + Minrequiredmemory string `json:"minrequiredmemory,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go new file mode 100644 index 000000000..32c40f7d7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for location resource. +*/ +type Location struct { + /** + * First IP address in the range, in dotted decimal notation. + */ + Ipfrom string `json:"ipfrom,omitempty"` + /** + * Last IP address in the range, in dotted decimal notation. + */ + Ipto string `json:"ipto,omitempty"` + /** + * String of qualifiers, in dotted notation, describing the geographical location of the IP address range. Each qualifier is more specific than the one that precedes it, as in continent.country.region.city.isp.organization. For example, "NA.US.CA.San Jose.ATT.citrix". + Note: A qualifier that includes a dot (.) or space ( ) must be enclosed in double quotation marks. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Numerical value, in degrees, specifying the longitude of the geographical location of the IP address-range. + Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. + */ + Longitude int32 `json:"longitude,omitempty"` + /** + * Numerical value, in degrees, specifying the latitude of the geographical location of the IP address-range. + Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. + */ + Latitude int32 `json:"latitude,omitempty"` + + //------- Read only Parameter ---------; + + Q1label string `json:"q1label,omitempty"` + Q2label string `json:"q2label,omitempty"` + Q3label string `json:"q3label,omitempty"` + Q4label string `json:"q4label,omitempty"` + Q5label string `json:"q5label,omitempty"` + Q6label string `json:"q6label,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationdata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationdata.go new file mode 100644 index 000000000..a4a120347 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationdata.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for location data resource. +*/ +type Locationdata struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile.go new file mode 100644 index 000000000..275b181f2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for location file resource. +*/ +type Locationfile struct { + /** + * Name of the location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both Citrix ADCs. + */ + Locationfile string `json:"Locationfile,omitempty"` + /** + * Format of the location file. Required for the Citrix ADC to identify how to read the location file. + */ + Format string `json:"format,omitempty"` + /** + * URL \(protocol, host, path, and file name\) from where the location file will be imported. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile6.go new file mode 100644 index 000000000..40f8cf496 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationfile6.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for location file6 resource. +*/ +type Locationfile6 struct { + /** + * Name of the IPv6 location file, with or without absolute path. If the path is not included, the default path (/var/netscaler/locdb) is assumed. In a high availability setup, the static database must be stored in the same location on both Citrix ADCs. + */ + Locationfile string `json:"Locationfile,omitempty"` + /** + * Format of the IPv6 location file. Required for the Citrix ADC to identify how to read the location file. + */ + Format string `json:"format,omitempty"` + /** + * URL \(protocol, host, path, and file name\) from where the location file will be imported. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationparameter.go new file mode 100644 index 000000000..cf0355eb6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/locationparameter.go @@ -0,0 +1,92 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for location parameter resource. +*/ +type Locationparameter struct { + /** + * Context for describing locations. In geographic context, qualifier labels are assigned by default in the following sequence: Continent.Country.Region.City.ISP.Organization. In custom context, the qualifiers labels can have any meaning that you designate. + */ + Context string `json:"context,omitempty"` + /** + * Label specifying the meaning of the first qualifier. Can be specified for custom context only. + */ + Q1label string `json:"q1label,omitempty"` + /** + * Label specifying the meaning of the second qualifier. Can be specified for custom context only. + */ + Q2label string `json:"q2label,omitempty"` + /** + * Label specifying the meaning of the third qualifier. Can be specified for custom context only. + */ + Q3label string `json:"q3label,omitempty"` + /** + * Label specifying the meaning of the fourth qualifier. Can be specified for custom context only. + */ + Q4label string `json:"q4label,omitempty"` + /** + * Label specifying the meaning of the fifth qualifier. Can be specified for custom context only. + */ + Q5label string `json:"q5label,omitempty"` + /** + * Label specifying the meaning of the sixth qualifier. Can be specified for custom context only. + */ + Q6label string `json:"q6label,omitempty"` + /** + * Indicates whether wildcard qualifiers should match any other + qualifier including non-wildcard while evaluating + location based expressions. + Possible values: Yes, No, Expression. + Yes - Wildcard qualifiers match any other qualifiers. + No - Wildcard qualifiers do not match non-wildcard + qualifiers, but match other wildcard qualifiers. + Expression - Wildcard qualifiers in an expression + match any qualifier in an LDNS location, + wildcard qualifiers in the LDNS location do not match + non-wildcard qualifiers in an expression + */ + Matchwildcardtoany string `json:"matchwildcardtoany,omitempty"` + + //------- Read only Parameter ---------; + + Locationfile string `json:"Locationfile,omitempty"` + Format string `json:"format,omitempty"` + Custom string `json:"custom,omitempty"` + Static string `json:"Static,omitempty"` + Lines string `json:"lines,omitempty"` + Errors string `json:"errors,omitempty"` + Warnings string `json:"warnings,omitempty"` + Entries string `json:"entries,omitempty"` + Locationfile6 string `json:"locationfile6,omitempty"` + Format6 string `json:"format6,omitempty"` + Custom6 string `json:"custom6,omitempty"` + Static6 string `json:"static6,omitempty"` + Lines6 string `json:"lines6,omitempty"` + Errors6 string `json:"errors6,omitempty"` + Warnings6 string `json:"warnings6,omitempty"` + Entries6 string `json:"entries6,omitempty"` + Flags string `json:"flags,omitempty"` + Status string `json:"status,omitempty"` + Databasemode string `json:"databasemode,omitempty"` + Flushing string `json:"flushing,omitempty"` + Loading string `json:"loading,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go new file mode 100644 index 000000000..29b0c48ee --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go @@ -0,0 +1,232 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for nstrace operations resource. +*/ +type Nstrace struct { + /** + * Number of files to be generated in cycle. + */ + Nf uint32 `json:"nf,omitempty"` + /** + * Time per file (sec). + */ + Time uint32 `json:"time,omitempty"` + /** + * Size of the captured data. Set 0 for full packet trace. + */ + Size uint32 `json:"size,omitempty"` + /** + * Capturing mode for trace. Mode can be any of the following values or combination of these values: + RX Received packets before NIC pipelining (Filter does not work when RX capturing mode is ON) + NEW_RX Received packets after NIC pipelining + TX Transmitted packets + TXB Packets buffered for transmission + IPV6 Translated IPv6 packets + C2C Capture C2C message + NS_FR_TX TX/TXB packets are not captured in flow receiver. + MPTCP MPTCP master flow + HTTP_QUIC HTTP-over-QUIC stream data and stream events + Default mode: NEW_RX TXB + */ + Mode []string `json:"mode,omitempty"` + /** + * Use separate trace files for each interface. Works only with cap format. + */ + Pernic string `json:"pernic,omitempty"` + /** + * Name of the trace file. + */ + Filename string `json:"filename,omitempty"` + /** + * ID for the trace file name for uniqueness. Should be used only with -name option. + */ + Fileid string `json:"fileid,omitempty"` + /** + * Filter expression for nstrace. Maximum length of filter is 255 and it can be of following format: + [ ] + = ( && | || ) + =: + CONNECTION...() + = SRCIP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.SRCIP.EQ(127.0.0.1) + = DSTIP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.DSTIP.EQ(127.0.0.1) + = IP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.IP.EQ(127.0.0.1) + = SRCIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.SRCIPv6.EQ(2001:db8:0:0:1::1) + = DSTIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.DSTIPv6.EQ(2001:db8:0:0:1::1) + = IPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.IPv6.EQ(2001:db8:0:0:1::1) + = SRCPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.SRCPORT.EQ(80) + = DSTPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.DSTPORT.EQ(80) + = PORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.PORT.EQ(80) + = VLANID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid VLAN ID. + example = CONNECTION.VLANID.EQ(0) + = CONNID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid PCB dev number. + example = CONNECTION.CONNID.EQ(0) + = PPEID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid core ID. + example = CONNECTION.PPEID.EQ(0) + = SVCNAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = A valid text string. + example = CONNECTION.SVCNAME.EQ("name") + = LB_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = LB vserver name. + example = CONNECTION.LB_VSERVER.NAME.EQ("name") + = CS_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = CS vserver name. + example = CONNECTION.CS_VSERVER.NAME.EQ("name") + = INTF + = [ EQ | NE ] + = A valid interface id in the + form of x/y. + example = CONNECTION.INTF.EQ("x/y") + = SERVICE_TYPE + = [ EQ | NE ] + = ( SVC_HTTP | FTP | TCP | UDP | SSL | + SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS | + RPCCLNT | SVC_DNS | ADNS | SNMP | RTSP | DHCPRA | ANY| + MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP | + SVC_MYSQL | SVC_MSSQL | FIX | SSL_FIX | PKTSTEER | + SVC_AAA | SERVICE_UNKNOWN ) + example = CONNECTION.SERVICE_TYPE.EQ(ANY) + = TRAFFIC_DOMAIN_ID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid traffic domain ID. + example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0) + eg: start nstrace -filter "CONNECTION.SRCIP.EQ(127.0.0.1) || (CONNECTION.SVCNAME.NE("s1") && CONNECTION.SRCPORT.EQ(80))" + The filter expression should be given in double quotes. + common use cases: + Trace capturing full sized traffic from/to ip 10.102.44.111, excluding loopback traffic + start nstrace -size 0 -filter "CONNECTION.IP.NE(127.0.0.1) && CONNECTION.IP.EQ(10.102.44.111)" + Trace capturing all traffic to (terminating at) port 80 or 443 + start nstrace -size 0 -filter "CONNECTION.DSTPORT.EQ(443) || CONNECTION.DSTPORT.EQ(80)" + Trace capturing all backend traffic specific to service service1 along with corresponding client side traffic + start nstrace -size 0 -filter "CONNECTION.SVCNAME.EQ("service1")" -link ENABLED + Trace capturing all traffic through Citrix ADC interface 1/1 + start nstrace -filter "CONNECTION.INTF.EQ("1/1")" + Trace capturing all traffic specific through vlan 2 + start nstrace -filter "CONNECTION.VLANID.EQ(2)" + Trace capturing all frontend (client side) traffic specific to lb vserver vserver1 along with corresponding server side traffic + start nstrace -size 0 -filter "CONNECTION.LB_VSERVER.NAME.EQ("vserver1")" -link ENABLED + */ + Filter string `json:"filter,omitempty"` + /** + * Includes filtered connection's peer traffic. + */ + Link string `json:"link,omitempty"` + /** + * Nodes on which tracing is started. + */ + Nodes []uint32 `json:"nodes,omitempty"` + /** + * File size, in MB, treshold for rollover. If free disk space is less than 2GB at the time of rollover, trace will stop + */ + Filesize uint32 `json:"filesize,omitempty"` + /** + * Format in which trace will be generated + */ + Traceformat string `json:"traceformat,omitempty"` + /** + * Specify how traces across PE's are merged + */ + Merge string `json:"merge,omitempty"` + /** + * Enable or disable runtime temp file cleanup + */ + Doruntimecleanup string `json:"doruntimecleanup,omitempty"` + /** + * Number of 16KB trace buffers + */ + Tracebuffers uint32 `json:"tracebuffers,omitempty"` + /** + * skip RPC packets + */ + Skiprpc string `json:"skiprpc,omitempty"` + /** + * skip local SSH packets + */ + Skiplocalssh string `json:"skiplocalssh,omitempty"` + /** + * Capture SSL Master keys. Master keys will not be captured on FIPS machine. + Warning: The captured keys can be used to decrypt information that may be confidential. The captured key files have to be stored in a secure environment + */ + Capsslkeys string `json:"capsslkeys,omitempty"` + /** + * Captures Dropped Packets if set to ENABLED. + */ + Capdroppkt string `json:"capdroppkt,omitempty"` + /** + * Logs packets in appliance's memory and dumps the trace file on stopping the nstrace operation + */ + Inmemorytrace string `json:"inmemorytrace,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + Scope string `json:"scope,omitempty"` + Tracelocation string `json:"tracelocation,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/radiusnode.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/radiusnode.go new file mode 100644 index 000000000..eca643a80 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/radiusnode.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for RADIUS Node resource. +*/ +type Radiusnode struct { + /** + * IP address/IP prefix of radius node in CIDR format + */ + Nodeprefix string `json:"nodeprefix,omitempty"` + /** + * The key shared between the RADIUS server and clients. + Required for Citrix ADC to communicate with the RADIUS nodes. + */ + Radkey string `json:"radkey,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/reporting.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/reporting.go new file mode 100644 index 000000000..7afc3a484 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/reporting.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for reporting resource. +*/ +type Reporting struct { + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go new file mode 100644 index 000000000..76893e214 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go @@ -0,0 +1,103 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for server resource. +*/ +type Server struct { + /** + * Name for the server. + Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + Can be changed after the name is created. + */ + Name string `json:"name,omitempty"` + /** + * IPv4 or IPv6 address of the server. If you create an IP address based server, you can specify the name of the server, instead of its IP address, when creating a service. Note: If you do not create a server entry, the server IP address that you enter when you create a service becomes the name of the server. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Domain name of the server. For a domain based configuration, you must create the server first. + */ + Domain string `json:"domain,omitempty"` + /** + * IP address used to transform the server's DNS-resolved IP address. + */ + Translationip string `json:"translationip,omitempty"` + /** + * The netmask of the translation ip + */ + Translationmask string `json:"translationmask,omitempty"` + /** + * Time, in seconds, for which the Citrix ADC must wait, after DNS resolution fails, before sending the next DNS query to resolve the domain name. + */ + Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + /** + * Initial state of the server. + */ + State string `json:"state,omitempty"` + /** + * Support IPv6 addressing mode. If you configure a server with the IPv6 addressing mode, you cannot use the server in the IPv4 addressing mode. + */ + Ipv6address string `json:"ipv6address,omitempty"` + /** + * Any information about the server. + */ + Comment string `json:"comment,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Specify the type of DNS resolution to be done on the configured domain to get the backend services. Valid query types are A, AAAA and SRV with A being the default querytype. The type of DNS resolution done on the domains in SRV records is inherited from ipv6 argument. + */ + Querytype string `json:"querytype,omitempty"` + /** + * Immediately send a DNS query to resolve the server's domain name. + */ + Domainresolvenow bool `json:"domainresolvenow,omitempty"` + /** + * Time, in seconds, after which all the services configured on the server are disabled. + */ + Delay uint64 `json:"delay,omitempty"` + /** + * Shut down gracefully, without accepting any new connections, and disabling each service when all of its connections are closed. + */ + Graceful string `json:"graceful,omitempty"` + /** + * Display names of the servers that have been created for internal use. + */ + Internal bool `json:"Internal,omitempty"` + /** + * New name for the server. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Autoscale string `json:"autoscale,omitempty"` + Usip string `json:"usip,omitempty"` + Cka string `json:"cka,omitempty"` + Tcpb string `json:"tcpb,omitempty"` + Cmp string `json:"cmp,omitempty"` + Cacheable string `json:"cacheable,omitempty"` + Sc string `json:"sc,omitempty"` + Sp string `json:"sp,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_binding.go new file mode 100644 index 000000000..ee2b37c91 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding object which returns the resources bound to server_binding. +*/ +type Serverbinding struct { + /** + * Name of the server for which to display parameters.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go new file mode 100644 index 000000000..080721349 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the service that can be bound to server. +*/ +type Serverservicebinding struct { + /** + * The services attatched to the server. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The type of bound service + */ + Svctype string `json:"svctype,omitempty"` + /** + * The IP address of the bound service + */ + Serviceipaddress string `json:"serviceipaddress,omitempty"` + /** + * The port number to be used for the bound service. + */ + Port int32 `json:"port,omitempty"` + /** + * The state of the bound service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * This field has been intorduced to show the dbs services ip + */ + Serviceipstr string `json:"serviceipstr,omitempty"` + /** + * Name of the server for which to display parameters. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go new file mode 100644 index 000000000..4bc78ee7f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go @@ -0,0 +1,162 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the servicegroup that can be bound to server. +*/ +type Serverservicegroupbinding struct { + /** + * servicegroups bind to this server + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The type of bound service + */ + Svctype string `json:"svctype,omitempty"` + /** + * The IP address of the bound service + */ + Serviceipaddress string `json:"serviceipaddress,omitempty"` + /** + * The port number to be used for the bound service. + */ + Port int32 `json:"port,omitempty"` + /** + * A positive integer to identify the service. Used when the persistency type is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The state of the bound service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * service type of the service. + */ + Dupsvctype string `json:"dup_svctype,omitempty"` + /** + * port of the service. + */ + Dupport int32 `json:"dup_port,omitempty"` + /** + * service flags to denote its a db enabled. + */ + Svrcfgflags uint32 `json:"svrcfgflags,omitempty"` + /** + * This field has been intorduced to show the dbs services ip + */ + Serviceipstr string `json:"serviceipstr,omitempty"` + /** + * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. + */ + Monthreshold uint32 `json:"monthreshold,omitempty"` + /** + * Maximum number of simultaneous open connections for the service group. + */ + Maxclient uint32 `json:"maxclient,omitempty"` + /** + * Maximum number of requests that can be sent on a persistent connection to the service group. + Note: Connection requests beyond this value are rejected. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * Maximum bandwidth, in Kbps, allocated for all the services in the service group. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Use the client's IP address as the source IP address when initiating a connection to the server. When creating a service, if you do not set this parameter, the service inherits the global Use Source IP setting (available in the enable ns mode and disable ns mode CLI commands, or in the System > Settings > Configure modes > Configure Modes dialog box). However, you can override this setting after you create the service. + */ + Usip string `json:"usip,omitempty"` + /** + * Enable client keep-alive for the service group. + */ + Cka string `json:"cka,omitempty"` + /** + * Enable TCP buffering for the service group. + */ + Tcpb string `json:"tcpb,omitempty"` + /** + * Enable compression for the specified service. + */ + Cmp string `json:"cmp,omitempty"` + /** + * Time, in seconds, after which to terminate an idle client connection. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Time, in seconds, after which to terminate an idle server connection. + */ + Svrtimeout uint64 `json:"svrtimeout,omitempty"` + /** + * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Before forwarding a request to the service, insert an HTTP header with the client's IPv4 or IPv6 address as its value. Used if the server needs the client's IP address for security, accounting, or other purposes, and setting the Use Source IP parameter is not a viable option. + */ + Cip string `json:"cip,omitempty"` + /** + * Use the transparent cache redirection virtual server to forward the request to the cache server. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * State of the SureConnect feature for the service group. + */ + Sc string `json:"sc,omitempty"` + /** + * Enable surge protection for the service group. + */ + Sp string `json:"sp,omitempty"` + /** + * Perform delayed clean-up of connections to all services in the service group. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Enable logging of AppFlow information for the specified service group. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Boundtd uint32 `json:"boundtd,omitempty"` + /** + * Indicates the weight of bound IPs + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Used for show server of SRV type to indicate target FQDNs + */ + Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` + /** + * Indicates the Priority of the SRV target FQDN + */ + Svcitmpriority uint32 `json:"svcitmpriority,omitempty"` + /** + * Indicates the total number of active IPs for SRV target FQDN + */ + Svcitmactsvcs uint32 `json:"svcitmactsvcs,omitempty"` + /** + * Indicates the total number of bound IPs for the SRV target FQDN + */ + Svcitmboundsvcs uint32 `json:"svcitmboundsvcs,omitempty"` + /** + * Name of the server for which to display parameters. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go new file mode 100644 index 000000000..ec54ef941 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go @@ -0,0 +1,265 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for service resource. +*/ +type Service struct { + /** + * Name for the service. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the service has been created. + */ + Name string `json:"name,omitempty"` + /** + * IP to assign to the service. + */ + Ip string `json:"ip,omitempty"` + /** + * Name of the server that hosts the service. + */ + Servername string `json:"servername,omitempty"` + /** + * Protocol in which data is exchanged with the service. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Port number of the service. + */ + Port int32 `json:"port,omitempty"` + /** + * Port to which clear text data must be sent after the appliance decrypts incoming SSL traffic. Applicable to transparent SSL services. + */ + Cleartextport int32 `json:"cleartextport,omitempty"` + /** + * Cache type supported by the cache server. + */ + Cachetype string `json:"cachetype,omitempty"` + /** + * Maximum number of simultaneous open connections to the service. + */ + Maxclient uint32 `json:"maxclient,omitempty"` + /** + * Monitor the health of this service. Available settings function as follows: + YES - Send probes to check the health of the service. + NO - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times. + */ + Healthmonitor string `json:"healthmonitor,omitempty"` + /** + * Maximum number of requests that can be sent on a persistent connection to the service. + Note: Connection requests beyond this value are rejected. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * Use the transparent cache redirection virtual server to forward requests to the cache server. + Note: Do not specify this parameter if you set the Cache Type parameter. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * Before forwarding a request to the service, insert an HTTP header with the client's IPv4 or IPv6 address as its value. Used if the server needs the client's IP address for security, accounting, or other purposes, and setting the Use Source IP parameter is not a viable option. + */ + Cip string `json:"cip,omitempty"` + /** + * Name for the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If you set the Client IP parameter, and you do not specify a name for the header, the appliance uses the header name specified for the global Client IP Header parameter (the cipHeader parameter in the set ns param CLI command or the Client IP Header parameter in the Configure HTTP Parameters dialog box at System > Settings > Change HTTP parameters). If the global Client IP Header parameter is not specified, the appliance inserts a header with the name "client-ip." + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Use the client's IP address as the source IP address when initiating a connection to the server. When creating a service, if you do not set this parameter, the service inherits the global Use Source IP setting (available in the enable ns mode and disable ns mode CLI commands, or in the System > Settings > Configure modes > Configure Modes dialog box). However, you can override this setting after you create the service. + */ + Usip string `json:"usip,omitempty"` + /** + * Path monitoring for clustering + */ + Pathmonitor string `json:"pathmonitor,omitempty"` + /** + * Individual Path monitoring decisions + */ + Pathmonitorindv string `json:"pathmonitorindv,omitempty"` + /** + * Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. + Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES. + */ + Useproxyport string `json:"useproxyport,omitempty"` + /** + * State of SureConnect for the service. + */ + Sc string `json:"sc,omitempty"` + /** + * Enable surge protection for the service. + */ + Sp string `json:"sp,omitempty"` + /** + * Enable RTSP session ID mapping for the service. + */ + Rtspsessionidremap string `json:"rtspsessionidremap,omitempty"` + /** + * Time, in seconds, after which to terminate an idle client connection. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Time, in seconds, after which to terminate an idle server connection. + */ + Svrtimeout uint64 `json:"svrtimeout,omitempty"` + /** + * Unique identifier for the service. Used when the persistency type for the virtual server is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid uint32 `json:"serverid,omitempty"` + /** + * Enable client keep-alive for the service. + */ + Cka string `json:"cka,omitempty"` + /** + * Enable TCP buffering for the service. + */ + Tcpb string `json:"tcpb,omitempty"` + /** + * Enable compression for the service. + */ + Cmp string `json:"cmp,omitempty"` + /** + * Maximum bandwidth, in Kbps, allocated to the service. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Use Layer 2 mode to bridge the packets sent to this service if it is marked as DOWN. If the service is DOWN, and this parameter is disabled, the packets are dropped. + */ + Accessdown string `json:"accessdown,omitempty"` + /** + * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. + */ + Monthreshold uint32 `json:"monthreshold,omitempty"` + /** + * Initial state of the service. + */ + State string `json:"state,omitempty"` + /** + * Flush all active transactions associated with a service whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Name of the TCP profile that contains TCP configuration settings for the service. + */ + Tcpprofilename string `json:"tcpprofilename,omitempty"` + /** + * Name of the HTTP profile that contains HTTP configuration settings for the service. + */ + Httpprofilename string `json:"httpprofilename,omitempty"` + /** + * Name of the ContentInspection profile that contains IPS/IDS communication related setting for the service + */ + Contentinspectionprofilename string `json:"contentinspectionprofilename,omitempty"` + /** + * A numerical identifier that can be used by hash based load balancing methods. Must be unique for each service. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Any information about the service. + */ + Comment string `json:"comment,omitempty"` + /** + * Enable logging of AppFlow information. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Network profile to use for the service. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * By turning on this option packets destined to a service in a cluster will not under go any steering. Turn this option for single packet request response mode or when the upstream device is performing a proper RSS for connection based distribution. + */ + Processlocal string `json:"processlocal,omitempty"` + /** + * Name of the DNS profile to be associated with the service. DNS profile properties will applied to the transactions processed by a service. This parameter is valid only for ADNS and ADNS-TCP services. + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + /** + * Close monitoring connections by sending the service a connection termination message with the specified bit set. + */ + Monconnectionclose string `json:"monconnectionclose,omitempty"` + /** + * The new IP address of the service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Name of the monitor bound to the specified service. + */ + Monitornamesvc string `json:"monitor_name_svc,omitempty"` + /** + * Time, in seconds, allocated to the Citrix ADC for a graceful shutdown of the service. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). + */ + Delay uint64 `json:"delay,omitempty"` + /** + * Shut down gracefully, not accepting any new connections, and disabling the service when all of its connections are closed. + */ + Graceful string `json:"graceful,omitempty"` + /** + * Display both user-configured and dynamically learned services. + */ + All bool `json:"all,omitempty"` + /** + * Display only dynamically learned services. + */ + Internal bool `json:"Internal,omitempty"` + /** + * New name for the service. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numofconnections string `json:"numofconnections,omitempty"` + Policyname string `json:"policyname,omitempty"` + Serviceconftype string `json:"serviceconftype,omitempty"` + Serviceconftype2 string `json:"serviceconftype2,omitempty"` + Value string `json:"value,omitempty"` + Gslb string `json:"gslb,omitempty"` + Dupstate string `json:"dup_state,omitempty"` + Publicip string `json:"publicip,omitempty"` + Publicport string `json:"publicport,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Monitorstate string `json:"monitor_state,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Lastresponse string `json:"lastresponse,omitempty"` + Responsetime string `json:"responsetime,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Stateupdatereason string `json:"stateupdatereason,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Serviceipstr string `json:"serviceipstr,omitempty"` + Oracleserverversion string `json:"oracleserverversion,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + Monuserstatusmesg string `json:"monuserstatusmesg,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_binding.go new file mode 100644 index 000000000..70ac998ea --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding object which returns the resources bound to service_binding. +*/ +type Servicebinding struct { + /** + * Name of the service for which to display configuration details.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_monitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_monitor_binding.go new file mode 100644 index 000000000..f76d0246d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_monitor_binding.go @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the monitor that can be bound to service. +*/ +type Servicemonitorbinding struct { + /** + * The monitor Names. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * The configured state (enable/disable) of the monitor on this server. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Added this field for getting state value from table. + */ + Dupstate string `json:"dup_state,omitempty"` + /** + * Weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * The weight of the monitor. + */ + Dupweight uint32 `json:"dup_weight,omitempty"` + /** + * The total number of probs sent. + */ + Totalprobes uint32 `json:"totalprobes,omitempty"` + /** + * The total number of failed probs. + */ + Totalfailedprobes uint32 `json:"totalfailedprobes,omitempty"` + /** + * Number of the current failed monitoring probes. + */ + Failedprobes uint32 `json:"failedprobes,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int32 `json:"monstatcode,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * First parameter for use with message code. + */ + Monstatparam1 int32 `json:"monstatparam1,omitempty"` + /** + * Second parameter for use with message code. + */ + Monstatparam2 int32 `json:"monstatparam2,omitempty"` + /** + * Third parameter for use with message code. + */ + Monstatparam3 int32 `json:"monstatparam3,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime uint64 `json:"responsetime,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the service to which to bind a policy or monitor. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_policy_binding.go new file mode 100644 index 000000000..d2013660a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_policy_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the policy that can be bound to service. +*/ +type Servicepolicybinding struct { + /** + * The name of the policyname for which this service is bound + */ + Policyname string `json:"policyname,omitempty"` + /** + * Name of the service to which to bind a policy or monitor. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go new file mode 100644 index 000000000..a4143c7e3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go @@ -0,0 +1,252 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for service group resource. +*/ +type Servicegroup struct { + /** + * Name of the service group. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the name is created. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Protocol used to exchange data with the service. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Cache type supported by the cache server. + */ + Cachetype string `json:"cachetype,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Maximum number of simultaneous open connections for the service group. + */ + Maxclient uint32 `json:"maxclient,omitempty"` + /** + * Maximum number of requests that can be sent on a persistent connection to the service group. + Note: Connection requests beyond this value are rejected. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * Use the transparent cache redirection virtual server to forward the request to the cache server. + Note: Do not set this parameter if you set the Cache Type. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * Insert the Client IP header in requests forwarded to the service. + */ + Cip string `json:"cip,omitempty"` + /** + * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Use client's IP address as the source IP address when initiating connection to the server. With the NO setting, which is the default, a mapped IP (MIP) address or subnet IP (SNIP) address is used as the source IP address to initiate server side connections. + */ + Usip string `json:"usip,omitempty"` + /** + * Path monitoring for clustering + */ + Pathmonitor string `json:"pathmonitor,omitempty"` + /** + * Individual Path monitoring decisions. + */ + Pathmonitorindv string `json:"pathmonitorindv,omitempty"` + /** + * Use the proxy port as the source port when initiating connections with the server. With the NO setting, the client-side connection port is used as the source port for the server-side connection. + Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES. + */ + Useproxyport string `json:"useproxyport,omitempty"` + /** + * Monitor the health of this service. Available settings function as follows: + YES - Send probes to check the health of the service. + NO - Do not send probes to check the health of the service. With the NO option, the appliance shows the service as UP at all times. + */ + Healthmonitor string `json:"healthmonitor,omitempty"` + /** + * State of the SureConnect feature for the service group. + */ + Sc string `json:"sc,omitempty"` + /** + * Enable surge protection for the service group. + */ + Sp string `json:"sp,omitempty"` + /** + * Enable RTSP session ID mapping for the service group. + */ + Rtspsessionidremap string `json:"rtspsessionidremap,omitempty"` + /** + * Time, in seconds, after which to terminate an idle client connection. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Time, in seconds, after which to terminate an idle server connection. + */ + Svrtimeout uint64 `json:"svrtimeout,omitempty"` + /** + * Enable client keep-alive for the service group. + */ + Cka string `json:"cka,omitempty"` + /** + * Enable TCP buffering for the service group. + */ + Tcpb string `json:"tcpb,omitempty"` + /** + * Enable compression for the specified service. + */ + Cmp string `json:"cmp,omitempty"` + /** + * Maximum bandwidth, in Kbps, allocated for all the services in the service group. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. + */ + Monthreshold uint32 `json:"monthreshold,omitempty"` + /** + * Initial state of the service group. + */ + State string `json:"state,omitempty"` + /** + * Flush all active transactions associated with all the services in the service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Name of the TCP profile that contains TCP configuration settings for the service group. + */ + Tcpprofilename string `json:"tcpprofilename,omitempty"` + /** + * Name of the HTTP profile that contains HTTP configuration settings for the service group. + */ + Httpprofilename string `json:"httpprofilename,omitempty"` + /** + * Any information about the service group. + */ + Comment string `json:"comment,omitempty"` + /** + * Enable logging of AppFlow information for the specified service group. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Network profile for the service group. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * Auto scale option for a servicegroup + */ + Autoscale string `json:"autoscale,omitempty"` + /** + * member port + */ + Memberport int32 `json:"memberport,omitempty"` + /** + * Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service. + */ + Autodisablegraceful string `json:"autodisablegraceful,omitempty"` + /** + * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. + */ + Autodisabledelay uint64 `json:"autodisabledelay,omitempty"` + /** + * Close monitoring connections by sending the service a connection termination message with the specified bit set. + */ + Monconnectionclose string `json:"monconnectionclose,omitempty"` + /** + * Name of the server to which to bind the service group. + */ + Servername string `json:"servername,omitempty"` + /** + * Server port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid uint32 `json:"serverid,omitempty"` + /** + * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl uint64 `json:"dbsttl,omitempty"` + /** + * Name of the monitor bound to the service group. Used to assign a weight to the monitor. + */ + Monitornamesvc string `json:"monitor_name_svc,omitempty"` + /** + * weight of the monitor that is bound to servicegroup. + */ + Dupweight uint32 `json:"dup_weight,omitempty"` + /** + * Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). + */ + Delay uint64 `json:"delay,omitempty"` + /** + * Wait for all existing connections to the service to terminate before shutting down the service. + */ + Graceful string `json:"graceful,omitempty"` + /** + * Display the members of the listed service groups in addition to their settings. Can be specified when no service group name is provided in the command. In that case, the details displayed for each service group are identical to the details displayed when a service group name is provided, except that bound monitors are not displayed. + */ + Includemembers bool `json:"includemembers,omitempty"` + /** + * New name for the service group. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numofconnections string `json:"numofconnections,omitempty"` + Serviceconftype string `json:"serviceconftype,omitempty"` + Value string `json:"value,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Ip string `json:"ip,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Stateupdatereason string `json:"stateupdatereason,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Groupcount string `json:"groupcount,omitempty"` + Serviceipstr string `json:"serviceipstr,omitempty"` + Servicegroupeffectivestate string `json:"servicegroupeffectivestate,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + Svcitmactsvcs string `json:"svcitmactsvcs,omitempty"` + Svcitmboundsvcs string `json:"svcitmboundsvcs,omitempty"` + Monuserstatusmesg string `json:"monuserstatusmesg,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_binding.go new file mode 100644 index 000000000..2cd12a787 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding object which returns the resources bound to servicegroup_binding. +*/ +type Servicegroupbinding struct { + /** + * Name of the service group.
Minimum value = + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_monitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_monitor_binding.go new file mode 100644 index 000000000..a11d26859 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_monitor_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the monitor that can be bound to servicegroup. +*/ +type Servicegroupmonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * weight of the monitor that is bound to servicegroup. + */ + Monweight uint32 `json:"monweight,omitempty"` + /** + * Monitor state. + */ + Monstate string `json:"monstate,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the service. Each service must have a unique port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Unique service identifier. Used when the persistency type for the virtual server is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid uint32 `json:"serverid,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl uint64 `json:"dbsttl,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go new file mode 100644 index 000000000..4bc08a2dc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the servicegroupentitymonbindings that can be bound to servicegroup. +*/ +type Servicegroupservicegroupentitymonbindingsbinding struct { + Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Response time of this monitor in milli sec. + */ + Responsetime uint64 `json:"responsetime,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the service. Each service must have a unique port number. + */ + Port int32 `json:"port,omitempty"` + Weight uint32 `json:"weight,omitempty"` + /** + * Unique service identifier. Used when the persistency type for the virtual server is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid uint32 `json:"serverid,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl uint64 `json:"dbsttl,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go new file mode 100644 index 000000000..fbb58868f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the servicegroupmember that can be bound to servicegroup. +*/ +type Servicegroupservicegroupmemberbinding struct { + /** + * IP Address. + */ + Ip string `json:"ip,omitempty"` + /** + * Server port number. + */ + Port int32 `json:"port,omitempty"` + /** + * The state of the service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * Time when last state change occurred. Seconds part. + */ + Statechangetimesec string `json:"statechangetimesec,omitempty"` + /** + * Time in 10 millisecond ticks since the last state change. + */ + Tickssincelaststatechange uint32 `json:"tickssincelaststatechange,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Name of the server to which to bind the service group. + */ + Servername string `json:"servername,omitempty"` + /** + * The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid uint32 `json:"serverid,omitempty"` + /** + * Initial state of the service group. + */ + State string `json:"state,omitempty"` + /** + * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Wait for all existing connections to the service to terminate before shutting down the service. + */ + Graceful string `json:"graceful,omitempty"` + /** + * Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). + */ + Delay uint64 `json:"delay,omitempty"` + /** + * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl uint64 `json:"dbsttl,omitempty"` + /** + * This gives the priority of the FQDN service items for SRV server binding + */ + Svcitmpriority uint32 `json:"svcitmpriority,omitempty"` + /** + * Specify reason if service group member in TROFS + */ + Trofsreason string `json:"trofsreason,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go new file mode 100644 index 000000000..4968d8dc9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the servicegroupmemberlist that can be bound to servicegroup. +*/ +type Servicegroupservicegroupmemberlistbinding struct { + /** + * Desired servicegroupmember binding set. Any existing servicegroupmember which is not part of the input will be deleted or disabled based on graceful setting on servicegroup. + */ + Members []Members `json:"members,omitempty"` + /** + * List of servicegroupmembers which couldn't be bound. + */ + Failedmembers []Failedmembers `json:"failedmembers,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} +type Members struct { + /** + * IP Address. + */ + Ip string `json:"ip,omitempty"` + /** + * The port number of the service to be enabled. + */ + Port int32 `json:"port,omitempty"` + Weight uint32 `json:"weight,omitempty"` + /** + * Initial state of the service group. + */ + State string `json:"state,omitempty"` +} + +type Failedmembers struct { + /** + * IP Address. + */ + Ip string `json:"ip,omitempty"` + /** + * The port number of the service to be enabled. + */ + Port int32 `json:"port,omitempty"` +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroupbindings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroupbindings.go new file mode 100644 index 000000000..5ba0cb352 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroupbindings.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for servicegroupbind resource. +*/ +type Servicegroupbindings struct { + /** + * The name of the service. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + //------- Read only Parameter ---------; + + Ipaddress string `json:"ipaddress,omitempty"` + Port string `json:"port,omitempty"` + State string `json:"state,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Vservername string `json:"vservername,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/svcbindings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/svcbindings.go new file mode 100644 index 000000000..f98a566b7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/svcbindings.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for service bindings resource. +*/ +type Svcbindings struct { + /** + * The name of the service. + */ + Servicename string `json:"servicename,omitempty"` + + //------- Read only Parameter ---------; + + Ipaddress string `json:"ipaddress,omitempty"` + Port string `json:"port,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Vservername string `json:"vservername,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go new file mode 100644 index 000000000..a70886183 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Configuration for virtual server resource. +*/ +type Vserver struct { + /** + * The name of the virtual server to be removed. + */ + Name string `json:"name,omitempty"` + /** + * The name of the backup virtual server for this virtual server. + */ + Backupvserver string `json:"backupvserver,omitempty"` + /** + * The URL where traffic is redirected if the virtual server in the system becomes unavailable. + */ + Redirecturl string `json:"redirecturl,omitempty"` + /** + * Use this option to specify whether a virtual server (used for load balancing or content switching) routes requests to the cache redirection virtual server before sending it to the configured servers. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * The timeout value in seconds for idle client connection + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * The spillover factor. The system will use this value to determine if it should send traffic to the backupvserver when the main virtual server reaches the spillover threshold. + */ + Somethod string `json:"somethod,omitempty"` + /** + * The state of the spillover persistence. + */ + Sopersistence string `json:"sopersistence,omitempty"` + /** + * The spillover persistence entry timeout. + */ + Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + /** + * The spillver threshold value. + */ + Sothreshold uint32 `json:"sothreshold,omitempty"` + /** + * The lb vserver of type PUSH/SSL_PUSH to which server pushes the updates received on the client facing non-push lb vserver. + */ + Pushvserver string `json:"pushvserver,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/cluster.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/cluster.go new file mode 100644 index 000000000..7b4ec7e77 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/cluster.go @@ -0,0 +1,30 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + + +type Cluster struct { + /** + * Cluster IP address to which to add the node. + */ + Clip string `json:"clip,omitempty"` + /** + * Password for the nsroot account of the configuration coordinator (CCO). + */ + Password string `json:"password,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterfiles.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterfiles.go new file mode 100644 index 000000000..070957778 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterfiles.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Configuration for files resource. +*/ +type Clusterfiles struct { + /** + * The directories and files to be synchronized. The available settings function as follows: + Mode Paths + all /nsconfig/ssl/ + /var/netscaler/ssl/ + /var/vpn/bookmark/ + /nsconfig/dns/ + /nsconfig/htmlinjection/ + /netscaler/htmlinjection/ens/ + /nsconfig/monitors/ + /nsconfig/nstemplates/ + /nsconfig/ssh/ + /nsconfig/rc.netscaler + /nsconfig/resolv.conf + /nsconfig/inetd.conf + /nsconfig/syslog.conf + /nsconfig/ntp.conf + /nsconfig/httpd.conf + /nsconfig/sshd_config + /nsconfig/hosts + /nsconfig/enckey + /var/nslw.bin/etc/krb5.conf + /var/nslw.bin/etc/krb5.keytab + /var/lib/likewise/db/ + /var/download/ + /var/wi/tomcat/webapps/ + /var/wi/tomcat/conf/Catalina/localhost/ + /var/wi/java_home/lib/security/cacerts + /var/wi/java_home/jre/lib/security/cacerts + /var/netscaler/locdb/ + ssl /nsconfig/ssl/ + /var/netscaler/ssl/ + bookmarks /var/vpn/bookmark/ + dns /nsconfig/dns/ + htmlinjection /nsconfig/htmlinjection/ + imports /var/download/ + misc /nsconfig/license/ + /nsconfig/rc.conf + all_plus_misc Includes *all* files and /nsconfig/license/ and /nsconfig/rc.conf. + Default value: all + */ + Mode []string `json:"mode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go new file mode 100644 index 000000000..f7417bf55 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go @@ -0,0 +1,87 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Configuration for cluster instance resource. +*/ +type Clusterinstance struct { + /** + * Unique number that identifies the cluster. + */ + Clid uint32 `json:"clid,omitempty"` + /** + * Amount of time, in seconds, after which nodes that do not respond to the heartbeats are assumed to be down.If the value is less than 3 sec, set the helloInterval parameter to 200 msec + */ + Deadinterval uint64 `json:"deadinterval,omitempty"` + /** + * Interval, in milliseconds, at which heartbeats are sent to each cluster node to check the health status.Set the value to 200 msec, if the deadInterval parameter is less than 3 sec + */ + Hellointerval uint32 `json:"hellointerval,omitempty"` + /** + * Preempt a cluster node that is configured as a SPARE if an ACTIVE node becomes available. + */ + Preemption string `json:"preemption,omitempty"` + /** + * Quorum Configuration Choices - "Majority" (recommended) requires majority of nodes to be online for the cluster to be UP. "None" relaxes this requirement. + */ + Quorumtype string `json:"quorumtype,omitempty"` + /** + * This option is required if the cluster nodes reside on different networks. + */ + Inc string `json:"inc,omitempty"` + /** + * By turning on this option packets destined to a service in a cluster will not under go any steering. + */ + Processlocal string `json:"processlocal,omitempty"` + /** + * This option enables you to retain existing connections on a node joining a Cluster system or when a node is being configured for passive timeout. By default, this option is disabled. + */ + Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` + /** + * View based on heartbeat only on bkplane interface + */ + Backplanebasedview string `json:"backplanebasedview,omitempty"` + /** + * strict mode for sync status of cluster. Depending on the the mode if there are any errors while applying config, sync status is displayed accordingly. By default the flag is disabled. + */ + Syncstatusstrictmode string `json:"syncstatusstrictmode,omitempty"` + /** + * The node group in a Cluster system used for transition from L2 to L3. + */ + Nodegroup string `json:"nodegroup,omitempty"` + + //------- Read only Parameter ---------; + + Adminstate string `json:"adminstate,omitempty"` + Propstate string `json:"propstate,omitempty"` + Validmtu string `json:"validmtu,omitempty"` + Heterogeneousflag string `json:"heterogeneousflag,omitempty"` + Operationalstate string `json:"operationalstate,omitempty"` + Status string `json:"status,omitempty"` + Rsskeymismatch string `json:"rsskeymismatch,omitempty"` + Penummismatch string `json:"penummismatch,omitempty"` + Nodegroupstatewarning string `json:"nodegroupstatewarning,omitempty"` + Licensemismatch string `json:"licensemismatch,omitempty"` + Jumbonotsupported string `json:"jumbonotsupported,omitempty"` + Clusternoheartbeatonnode string `json:"clusternoheartbeatonnode,omitempty"` + Clusternolinksetmbf string `json:"clusternolinksetmbf,omitempty"` + Clusternospottedip string `json:"clusternospottedip,omitempty"` + Nodepenummismatch string `json:"nodepenummismatch,omitempty"` + Operationalpropstate string `json:"operationalpropstate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go new file mode 100644 index 000000000..c5fd95db7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding object which returns the resources bound to clusterinstance_binding. +*/ +type Clusterinstancebinding struct { + /** + * Unique number that identifies the cluster.
Minimum value = 1
Maximum value = 16 + */ + Clid uint32 `json:"clid,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_node_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_node_binding.go new file mode 100644 index 000000000..62f950f47 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_node_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the node that can be bound to clusterinstance. +*/ +type Clusterinstancenodebinding struct { + /** + * The unique number that identiies a cluster. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + /** + * The IP Address of the node. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Node Health state. + */ + Health string `json:"health,omitempty"` + /** + * Node clusterd state. + */ + Clusterhealth string `json:"clusterhealth,omitempty"` + /** + * Node effective health state. + */ + Effectivestate string `json:"effectivestate,omitempty"` + /** + * Master state. + */ + Masterstate string `json:"masterstate,omitempty"` + /** + * Active, Spare or Passive. An active node serves traffic. A spare node serves as a backup for active nodes. A passive node does not serve traffic. This may be useful during temporary maintenance activity where it is desirable that the node takes part in the consensus protocol, but not serve traffic. + */ + State string `json:"state,omitempty"` + /** + * This argument is used to determine whether the node is configuration coordinator (CCO). + */ + Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` + /** + * This argument is used to determine whether it is local node. + */ + Islocalnode bool `json:"islocalnode,omitempty"` + /** + * This argument is used to determine if there is a RSS key mismatch at cluster node level. + */ + Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` + /** + * This argument is used to determine if there is a License mismatch at cluster node level. + */ + Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` + /** + * This argument is used to determine if Jumbo framework not supported at cluster node level. + */ + Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` + /** + * Unique number that identifies the cluster. + */ + Clid uint32 `json:"clid,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go new file mode 100644 index 000000000..9d512b11d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Configuration for cluster node resource. +*/ +type Clusternode struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + /** + * Citrix ADC IP (NSIP) address of the appliance to add to the cluster. Must be an IPv4 address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Admin state of the cluster node. The available settings function as follows: + ACTIVE - The node serves traffic. + SPARE - The node does not serve traffic unless an ACTIVE node goes down. + PASSIVE - The node does not serve traffic, unless you change its state. PASSIVE state is useful during temporary maintenance activities in which you want the node to take part in the consensus protocol but not to serve traffic. + */ + State string `json:"state,omitempty"` + /** + * Interface through which the node communicates with the other nodes in the cluster. Must be specified in the three-tuple form n/c/u, where n represents the node ID and c/u refers to the interface on the appliance. + */ + Backplane string `json:"backplane,omitempty"` + /** + * Preference for selecting a node as the configuration coordinator. The node with the lowest priority value is selected as the configuration coordinator. + When the current configuration coordinator goes down, the node with the next lowest priority is made the new configuration coordinator. When the original node comes back up, it will preempt the new configuration coordinator and take over as the configuration coordinator. + Note: When priority is not configured for any of the nodes or if multiple nodes have the same priority, the cluster elects one of the nodes as the configuration coordinator. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * The default node group in a Cluster system. + */ + Nodegroup string `json:"nodegroup,omitempty"` + /** + * Applicable for Passive node and node becomes passive after this timeout (in minutes) + */ + Delay uint32 `json:"delay,omitempty"` + /** + * To set the tunnel mode + */ + Tunnelmode string `json:"tunnelmode,omitempty"` + /** + * Option to remove nodegroup config + */ + Clearnodegroupconfig string `json:"clearnodegroupconfig,omitempty"` + + //------- Read only Parameter ---------; + + Clusterhealth string `json:"clusterhealth,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Operationalsyncstate string `json:"operationalsyncstate,omitempty"` + Syncfailurereason string `json:"syncfailurereason,omitempty"` + Masterstate string `json:"masterstate,omitempty"` + Health string `json:"health,omitempty"` + Syncstate string `json:"syncstate,omitempty"` + Isconfigurationcoordinator string `json:"isconfigurationcoordinator,omitempty"` + Islocalnode string `json:"islocalnode,omitempty"` + Nodersskeymismatch string `json:"nodersskeymismatch,omitempty"` + Nodelicensemismatch string `json:"nodelicensemismatch,omitempty"` + Nodejumbonotsupported string `json:"nodejumbonotsupported,omitempty"` + Nodelist string `json:"nodelist,omitempty"` + Ifaceslist string `json:"ifaceslist,omitempty"` + Enabledifaces string `json:"enabledifaces,omitempty"` + Disabledifaces string `json:"disabledifaces,omitempty"` + Partialfailifaces string `json:"partialfailifaces,omitempty"` + Hamonifaces string `json:"hamonifaces,omitempty"` + Name string `json:"name,omitempty"` + Cfgflags string `json:"cfgflags,omitempty"` + Routemonitor string `json:"routemonitor,omitempty"` + Netmask string `json:"netmask,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go new file mode 100644 index 000000000..9510b63be --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding object which returns the resources bound to clusternode_binding. +*/ +type Clusternodebinding struct { + /** + * ID of the cluster node for which to display information. If an ID is not provided, information about all nodes is shown.
Default value: 255
Minimum value = 0
Maximum value = 31 + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go new file mode 100644 index 000000000..81ce366e6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the routemonitor that can be bound to clusternode. +*/ +type Clusternoderoutemonitorbinding struct { + /** + * The IP address (IPv4 or IPv6). + */ + Routemonitor string `json:"routemonitor,omitempty"` + /** + * The netmask. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Current routemonstate + */ + Routemonstate uint32 `json:"routemonstate,omitempty"` + /** + * A number that uniquely identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go new file mode 100644 index 000000000..d8a2d488f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Configuration for Node group object type resource. +*/ +type Clusternodegroup struct { + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + /** + * Specifies whether cluster nodes, that are not part of the nodegroup, will be used as backup for the nodegroup. + * Enabled - When one of the nodes goes down, no other cluster node is picked up to replace it. When the node comes up, it will continue being part of the nodegroup. + * Disabled - When one of the nodes goes down, a non-nodegroup cluster node is picked up and acts as part of the nodegroup. When the original node of the nodegroup comes up, the backup node will be replaced. + */ + Strict string `json:"strict,omitempty"` + /** + * Only one node can be bound to nodegroup with this option enabled. It specifies whether to prempt the traffic for the entities bound to nodegroup when owner node goes down and rejoins the cluster. + * Enabled - When owner node goes down, backup node will become the owner node and takes the traffic for the entities bound to the nodegroup. When bound node rejoins the cluster, traffic for the entities bound to nodegroup will not be steered back to this bound node. Current owner will have the ownership till it goes down. + * Disabled - When one of the nodes goes down, a non-nodegroup cluster node is picked up and acts as part of the nodegroup. When the original node of the nodegroup comes up, the backup node will be replaced. + */ + Sticky string `json:"sticky,omitempty"` + /** + * State of the nodegroup. All the nodes binding to this nodegroup must have the same state. ACTIVE/SPARE/PASSIVE + */ + State string `json:"state,omitempty"` + /** + * Priority of Nodegroup. This priority is used for all the nodes bound to the nodegroup for Nodegroup selection + */ + Priority uint32 `json:"priority,omitempty"` + + //------- Read only Parameter ---------; + + Currentnodemask string `json:"currentnodemask,omitempty"` + Backupnodemask string `json:"backupnodemask,omitempty"` + Boundedentitiescntfrompe string `json:"boundedentitiescntfrompe,omitempty"` + Activelist string `json:"activelist,omitempty"` + Backuplist string `json:"backuplist,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_binding.go new file mode 100644 index 000000000..610d35e42 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding object which returns the resources bound to clusternodegroup_binding. +*/ +type Clusternodegroupbinding struct { + /** + * Name of the nodegroup to be displayed. If a name is not provided, information about all nodegroups is displayed.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_identifier_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_identifier_binding.go new file mode 100644 index 000000000..1213817b7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_identifier_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the identifier that can be bound to clusternodegroup. +*/ +type Clusternodegroupidentifierbinding struct { + /** + * stream identifier and rate limit identifier that need to be bound to this nodegroup. + */ + Identifiername string `json:"identifiername,omitempty"` + /** + * Name of the nodegroup to which you want to bind a cluster node or an entity. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_limitidentifier_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_limitidentifier_binding.go new file mode 100644 index 000000000..362bc42ef --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_limitidentifier_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the limitidentifier that can be bound to clusternodegroup. +*/ +type Clusternodegrouplimitidentifierbinding struct { + /** + * stream identifier and rate limit identifier that need to be bound to this nodegroup. + */ + Identifiername string `json:"identifiername,omitempty"` + /** + * Name of the nodegroup to which you want to bind a cluster node or an entity. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_node_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_node_binding.go new file mode 100644 index 000000000..86a98af08 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_node_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the node that can be bound to clusternodegroup. +*/ +type Clusternodegroupnodebinding struct { + /** + * Nodes in the nodegroup + */ + Node uint32 `json:"node,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_service_binding.go new file mode 100644 index 000000000..8428d4437 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_service_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the service that can be bound to clusternodegroup. +*/ +type Clusternodegroupservicebinding struct { + /** + * name of the service bound to this nodegroup. + */ + Service string `json:"service,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_site_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_site_binding.go new file mode 100644 index 000000000..d7bd4b244 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_site_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the site that can be bound to clusternodegroup. +*/ +type Clusternodegroupsitebinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Gslbsite string `json:"gslbsite,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vserver_binding.go new file mode 100644 index 000000000..56583c595 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the vserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go new file mode 100644 index 000000000..5345f832f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + + +type Clusterpropstatus struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Numpropcmdfailed string `json:"numpropcmdfailed,omitempty"` + Cmdstrs string `json:"cmdstrs,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clustersync.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clustersync.go new file mode 100644 index 000000000..3dfa04a25 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clustersync.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Configuration for sync resource. +*/ +type Clustersync struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpaction.go new file mode 100644 index 000000000..e9050282f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpaction.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Configuration for compression action resource. +*/ +type Cmpaction struct { + /** + * Name of the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the action is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp action" or 'my cmp action'). + */ + Name string `json:"name,omitempty"` + /** + * Type of compression performed by this action. + Available settings function as follows: + * COMPRESS - Apply GZIP or DEFLATE compression to the response, depending on the request header. Prefer GZIP. + * GZIP - Apply GZIP compression. + * DEFLATE - Apply DEFLATE compression. + * NOCOMPRESS - Do not compress the response if the request matches a policy that uses this action. + */ + Cmptype string `json:"cmptype,omitempty"` + /** + * Control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header. + */ + Addvaryheader string `json:"addvaryheader,omitempty"` + /** + * The value of the HTTP Vary header for compressed responses. + */ + Varyheadervalue string `json:"varyheadervalue,omitempty"` + /** + * The type of delta action (if delta type compression action is defined). + */ + Deltatype string `json:"deltatype,omitempty"` + /** + * New name for the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at + (@), equals (=), and hyphen (-) characters. + Choose a name that can be correlated with the function that the action performs. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp action" or 'my cmp action'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_binding.go new file mode 100644 index 000000000..702387f3b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding object which returns the resources bound to cmpglobal_binding. +*/ +type Cmpglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_policy_binding.go new file mode 100644 index 000000000..fb93d9fef --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_policy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the policy that can be bound to cmpglobal. +*/ +type Cmpglobalpolicybinding struct { + /** + * The name of the globally bound HTTP compression policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Positive integer specifying the priority of the policy. The lower the number, the higher the priority. By default, polices within a label are evaluated in the order of their priority numbers. + In the configuration utility, you can click the Priority field and edit the priority level or drag the entry to a new position in the list. If you drag the entry to a new position, the priority level is updated automatically. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * The current state of the policy binding. This attribute is relevant only for CLASSIC policies. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which the policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * Policy type (Classic/Advanced) to be bound.Used for display. + */ + Policytype string `json:"policytype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Expression or other value specifying the priority of the next policy, within the policy label, to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher numbered priority. + * END - Stop evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, that policy is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher priority number is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest priority number, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only for default-syntax policies. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. This argument is relevant only for advanced (default-syntax) policies. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. Applicable only to advanced (default-syntax) policies. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go new file mode 100644 index 000000000..015b5d492 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Configuration for CMP parameter resource. +*/ +type Cmpparameter struct { + /** + * Specify a compression level. Available settings function as follows: + * Optimal - Corresponds to a gzip GZIP level of 5-7. + * Best speed - Corresponds to a gzip level of 1. + * Best compression - Corresponds to a gzip level of 9. + */ + Cmplevel string `json:"cmplevel,omitempty"` + /** + * Minimum quantum of data to be filled before compression begins. + */ + Quantumsize uint32 `json:"quantumsize,omitempty"` + /** + * Allow the server to send compressed data to the Citrix ADC. With the default setting, the Citrix ADC appliance handles all compression. + */ + Servercmp string `json:"servercmp,omitempty"` + /** + * Heuristic basefile expiry. + */ + Heurexpiry string `json:"heurexpiry,omitempty"` + /** + * Threshold compression ratio for heuristic basefile expiry, multiplied by 100. For example, to set the threshold ratio to 1.25, specify 125. + */ + Heurexpirythres uint32 `json:"heurexpirythres,omitempty"` + /** + * For heuristic basefile expiry, weightage to be given to historical delta compression ratio, specified as percentage. For example, to give 25% weightage to historical ratio (and therefore 75% weightage to the ratio for current delta compression transaction), specify 25. + */ + Heurexpiryhistwt uint32 `json:"heurexpiryhistwt,omitempty"` + /** + * Smallest response size, in bytes, to be compressed. + */ + Minressize uint32 `json:"minressize,omitempty"` + /** + * Citrix ADC CPU threshold after which compression is not performed. Range: 0 - 100 + */ + Cmpbypasspct uint32 `json:"cmpbypasspct,omitempty"` + /** + * Citrix ADC does not wait for the quantum to be filled before starting to compress data. Upon receipt of a packet with a PUSH flag, the appliance immediately begins compression of the accumulated packets. + */ + Cmponpush string `json:"cmponpush,omitempty"` + /** + * Type of policy. Available settings function as follows: + * Classic - Classic policies evaluate basic characteristics of traffic and other data. Deprecated. + * Advanced - Advanced policies (which have been renamed as default syntax policies) can perform the same type of evaluations as classic policies. They also enable you to analyze more data (for example, the body of an HTTP request) and to configure more operations in the policy rule (for example, transforming data in the body of a request into an HTTP header). + */ + Policytype string `json:"policytype,omitempty"` + /** + * Control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header. + */ + Addvaryheader string `json:"addvaryheader,omitempty"` + /** + * The value of the HTTP Vary header for compressed responses. If this argument is not specified, a default value of "Accept-Encoding" will be used. + */ + Varyheadervalue string `json:"varyheadervalue,omitempty"` + /** + * Enable insertion of Cache-Control: private response directive to indicate response message is intended for a single user and must not be cached by a shared or proxy cache. + */ + Externalcache string `json:"externalcache,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy.go new file mode 100644 index 000000000..c2d4fe954 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Configuration for compression policy resource. +*/ +type Cmppolicy struct { + /** + * Name of the HTTP compression policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + Can be changed after the policy is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policy" or 'my cmp policy'). + */ + Name string `json:"name,omitempty"` + /** + * Expression that determines which HTTP requests or responses match the compression policy. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * The built-in or user-defined compression action to apply to the response when the policy matches a request or response. + */ + Resaction string `json:"resaction,omitempty"` + /** + * New name for the compression policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + Choose a name that reflects the function that the policy performs. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policy" or 'my cmp policy'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Expressiontype string `json:"expressiontype,omitempty"` + Reqaction string `json:"reqaction,omitempty"` + Hits string `json:"hits,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Clientttlb string `json:"clientttlb,omitempty"` + Clienttransactions string `json:"clienttransactions,omitempty"` + Serverttlb string `json:"serverttlb,omitempty"` + Servertransactions string `json:"servertransactions,omitempty"` + Description string `json:"description,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_binding.go new file mode 100644 index 000000000..dbf427223 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding object which returns the resources bound to cmppolicy_binding. +*/ +type Cmppolicybinding struct { + /** + * Name of the HTTP compression policy for which to display details.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_global_binding.go new file mode 100644 index 000000000..2fc1c5a19 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_global_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the global that can be bound to cmppolicy. +*/ +type Cmppolicyglobalbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_policylabel_binding.go new file mode 100644 index 000000000..df5d5f41f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_policylabel_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the policylabel that can be bound to cmppolicy. +*/ +type Cmppolicypolicylabelbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_vserver_binding.go new file mode 100644 index 000000000..e93a59a04 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_vserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the vserver that can be bound to cmppolicy. +*/ +type Cmppolicyvserverbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel.go new file mode 100644 index 000000000..c0e8cbae3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel.go @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Configuration for compression policy label resource. +*/ +type Cmppolicylabel struct { + /** + * Name of the HTTP compression policy label. Must begin with a letter, number, or the underscore character (_). Additional characters allowed, after the first character, are the hyphen (-), period (.) pound sign (#), space ( ), at sign (@), equals (=), and colon (:). The name must be unique within the list of policy labels for compression policies. Can be renamed after the policy label is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policylabel" or 'my cmp policylabel'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Type of packets (request packets or response) against which to match the policies bound to this policy label. + */ + Type string `json:"type,omitempty"` + /** + * New name for the compression policy label. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp policylabel" or 'my cmp policylabel'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_binding.go new file mode 100644 index 000000000..0b9b3ea75 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding object which returns the resources bound to cmppolicylabel_binding. +*/ +type Cmppolicylabelbinding struct { + /** + * Name of the HTTP compression policy label for which to display details.
Minimum value = + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policy_binding.go new file mode 100644 index 000000000..592835c7e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the policy that can be bound to cmppolicylabel. +*/ +type Cmppolicylabelpolicybinding struct { + /** + * The compression policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the HTTP compression policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go new file mode 100644 index 000000000..6e5c8c6cb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the policybinding that can be bound to cmppolicylabel. +*/ +type Cmppolicylabelpolicybindingbinding struct { + /** + * The compression policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the HTTP compression policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csaction.go new file mode 100644 index 000000000..36a7f3ad5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csaction.go @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Configuration for Content Switching action resource. +*/ +type Csaction struct { + /** + * Name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the content switching action is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my action" or 'my action'). + */ + Name string `json:"name,omitempty"` + /** + * Name of the load balancing virtual server to which the content is switched. + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Name of the VPN, GSLB or Authentication virtual server to which the content is switched. + */ + Targetvserver string `json:"targetvserver,omitempty"` + /** + * Information about this content switching action. + */ + Targetvserverexpr string `json:"targetvserverexpr,omitempty"` + /** + * Comments associated with this cs action. + */ + Comment string `json:"comment,omitempty"` + /** + * New name for the content switching action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my name" or 'my name'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csparameter.go new file mode 100644 index 000000000..f9c1a198d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csparameter.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Configuration for CS parameter resource. +*/ +type Csparameter struct { + /** + * Specifies whether the virtual server checks the attached load balancing server for state information. + */ + Stateupdate string `json:"stateupdate,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy.go new file mode 100644 index 000000000..0a553dfcc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Configuration for content-switching policy resource. +*/ +type Cspolicy struct { + /** + * Name for the content switching policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Cannot be changed after a policy is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). + */ + Policyname string `json:"policyname,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * Expression, or name of a named expression, against which traffic is evaluated. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * Content switching action that names the target load balancing virtual server to which the traffic is switched. + */ + Action string `json:"action,omitempty"` + /** + * The log action associated with the content switching policy + */ + Logaction string `json:"logaction,omitempty"` + /** + * The new name of the content switching policy. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Vstype string `json:"vstype,omitempty"` + Hits string `json:"hits,omitempty"` + Bindhits string `json:"bindhits,omitempty"` + Labelname string `json:"labelname,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Priority string `json:"priority,omitempty"` + Activepolicy string `json:"activepolicy,omitempty"` + Cspolicytype string `json:"cspolicytype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_binding.go new file mode 100644 index 000000000..18115e89f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding object which returns the resources bound to cspolicy_binding. +*/ +type Cspolicybinding struct { + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed.
Minimum value = + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_policylabel_binding.go new file mode 100644 index 000000000..c8938ddf1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the policylabel that can be bound to cspolicy. +*/ +type Cspolicypolicylabelbinding struct { + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * priority of bound policy + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Total number of hits. + */ + Hits uint32 `json:"hits,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_vserver_binding.go new file mode 100644 index 000000000..c3af18cdc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_vserver_binding.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the vserver that can be bound to cspolicy. +*/ +type Cspolicyvserverbinding struct { + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * Content switching action that names the target load balancing virtual server to which the traffic is switched. + */ + Action string `json:"action,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * priority of bound policy + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Total number of hits. + */ + Hits uint32 `json:"hits,omitempty"` + /** + * Total number of hits. + */ + Pihits uint32 `json:"pihits,omitempty"` + /** + * bind hits for PI CS Policy. + */ + Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel.go new file mode 100644 index 000000000..529adb774 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Configuration for CS policy label resource. +*/ +type Cspolicylabel struct { + /** + * Name for the policy label. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + The label name must be unique within the list of policy labels for content switching. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policylabel" or 'my policylabel'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Protocol supported by the policy label. All policies bound to the policy label must either match the specified protocol or be a subtype of that protocol. Available settings function as follows: + * HTTP - Supports policies that process HTTP traffic. Used to access unencrypted Web sites. (The default.) + * SSL - Supports policies that process HTTPS/SSL encrypted traffic. Used to access encrypted Web sites. + * TCP - Supports policies that process any type of TCP traffic, including HTTP. + * SSL_TCP - Supports policies that process SSL-encrypted TCP traffic, including SSL. + * UDP - Supports policies that process any type of UDP-based traffic, including DNS. + * DNS - Supports policies that process DNS traffic. + * ANY - Supports all types of policies except HTTP, SSL, and TCP. + * SIP_UDP - Supports policies that process UDP based Session Initiation Protocol (SIP) traffic. SIP initiates, manages, and terminates multimedia communications sessions, and has emerged as the standard for Internet telephony (VoIP). + * RTSP - Supports policies that process Real Time Streaming Protocol (RTSP) traffic. RTSP provides delivery of multimedia and other streaming data, such as audio, video, and other types of streamed media. + * RADIUS - Supports policies that process Remote Authentication Dial In User Service (RADIUS) traffic. RADIUS supports combined authentication, authorization, and auditing services for network management. + * MYSQL - Supports policies that process MYSQL traffic. + * MSSQL - Supports policies that process Microsoft SQL traffic. + */ + Cspolicylabeltype string `json:"cspolicylabeltype,omitempty"` + /** + * The new name of the content switching policylabel. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` + Targetvserver string `json:"targetvserver,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_binding.go new file mode 100644 index 000000000..bc51134ef --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding object which returns the resources bound to cspolicylabel_binding. +*/ +type Cspolicylabelbinding struct { + /** + * Name of the content switching policy label to display. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_policy_binding.go new file mode 100644 index 000000000..eae251b8b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_policy_binding.go @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the policy that can be bound to cspolicylabel. +*/ +type Cspolicylabelpolicybinding struct { + /** + * Name of the content switching policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the virtual server to which to forward requests that match the policy. + */ + Targetvserver string `json:"targetvserver,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the policy label to which to bind a content switching policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go new file mode 100644 index 000000000..c14a7f6b3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go @@ -0,0 +1,374 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Configuration for CS virtual server resource. +*/ +type Csvserver struct { + /** + * Name for the content switching virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + Cannot be changed after the CS virtual server is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, my server or my server). + */ + Name string `json:"name,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Protocol used by the virtual server. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * IP address of the content switching virtual server. + */ + Ipv46 string `json:"ipv46,omitempty"` + /** + * Virtual server target type. + */ + Targettype string `json:"targettype,omitempty"` + Dnsrecordtype string `json:"dnsrecordtype,omitempty"` + Persistenceid uint32 `json:"persistenceid,omitempty"` + /** + * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. + For example, if the IP pattern assigned to the virtual server is 198.51.100.0 and the IP mask is 255.255.240.0 (a forward mask), the first 20 bits in the destination IP addresses are matched with the first 20 bits in the pattern. The virtual server accepts requests with IP addresses that range from 198.51.96.1 to 198.51.111.254. You can also use a pattern such as 0.0.2.2 and a mask such as 0.0.255.255 (a reverse mask). + If a destination IP address matches more than one IP pattern, the pattern with the longest match is selected, and the associated virtual server processes the request. For example, if the virtual servers, vs1 and vs2, have the same IP pattern, 0.0.100.128, but different IP masks of 0.0.255.255 and 0.0.224.255, a destination IP address of 198.51.100.128 has the longest match with the IP pattern of vs1. If a destination IP address matches two or more virtual servers to the same extent, the request is processed by the virtual server whose port number matches the port number in the request. + */ + Ippattern string `json:"ippattern,omitempty"` + /** + * IP mask, in dotted decimal notation, for the IP Pattern parameter. Can have leading or trailing non-zero octets (for example, 255.255.240.0 or 0.0.255.255). Accordingly, the mask specifies whether the first n bits or the last n bits of the destination IP address in a client request are to be matched with the corresponding bits in the IP pattern. The former is called a forward mask. The latter is called a reverse mask. + */ + Ipmask string `json:"ipmask,omitempty"` + /** + * Number of consecutive IP addresses, starting with the address specified by the IP Address parameter, to include in a range of addresses assigned to this virtual server. + */ + Range uint32 `json:"range,omitempty"` + /** + * Port number for content switching virtual server. + */ + Port int32 `json:"port,omitempty"` + /** + * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current cs vserver + */ + Ipset string `json:"ipset,omitempty"` + /** + * Initial state of the load balancing virtual server. + */ + State string `json:"state,omitempty"` + /** + * Enable state updates for a specific content switching virtual server. By default, the Content Switching virtual server is always UP, regardless of the state of the Load Balancing virtual servers bound to it. This parameter interacts with the global setting as follows: + Global Level | Vserver Level | Result + ENABLED ENABLED ENABLED + ENABLED DISABLED ENABLED + DISABLED ENABLED ENABLED + DISABLED DISABLED DISABLED + If you want to enable state updates for only some content switching virtual servers, be sure to disable the state update parameter. + */ + Stateupdate string `json:"stateupdate,omitempty"` + /** + * Use this option to specify whether a virtual server, used for load balancing or content switching, routes requests to the cache redirection virtual server before sending it to the configured servers. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * URL to which traffic is redirected if the virtual server becomes unavailable. The service type of the virtual server should be either HTTP or SSL. + Caution: Make sure that the domain in the URL does not match the domain specified for a content switching policy. If it does, requests are continuously redirected to the unavailable virtual server. + */ + Redirecturl string `json:"redirecturl,omitempty"` + /** + * Idle time, in seconds, after which the client connection is terminated. The default values are: + 180 seconds for HTTP/SSL-based services. + 9000 seconds for other TCP-based services. + 120 seconds for DNS-based services. + 120 seconds for other UDP-based services. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Type of precedence to use for both RULE-based and URL-based policies on the content switching virtual server. With the default (RULE) setting, incoming requests are evaluated against the rule-based content switching policies. If none of the rules match, the URL in the request is evaluated against the URL-based content switching policies. + */ + Precedence string `json:"precedence,omitempty"` + /** + * Consider case in URLs (for policies that use URLs instead of RULES). For example, with the ON setting, the URLs /a/1.html and /A/1.HTML are treated differently and can have different targets (set by content switching policies). With the OFF setting, /a/1.html and /A/1.HTML are switched to the same target. + */ + Casesensitive string `json:"casesensitive,omitempty"` + /** + * Type of spillover used to divert traffic to the backup virtual server when the primary virtual server reaches the spillover threshold. Connection spillover is based on the number of connections. Bandwidth spillover is based on the total Kbps of incoming and outgoing traffic. + */ + Somethod string `json:"somethod,omitempty"` + /** + * Maintain source-IP based persistence on primary and backup virtual servers. + */ + Sopersistence string `json:"sopersistence,omitempty"` + /** + * Time-out value, in minutes, for spillover persistence. + */ + Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + /** + * Depending on the spillover method, the maximum number of connections or the maximum total bandwidth (Kbps) that a virtual server can handle before spillover occurs. + */ + Sothreshold uint32 `json:"sothreshold,omitempty"` + /** + * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists + */ + Sobackupaction string `json:"sobackupaction,omitempty"` + /** + * State of port rewrite while performing HTTP redirect. + */ + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + /** + * Flush all active transactions associated with a virtual server whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Name of the backup virtual server that you are configuring. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the backup virtual server is created. You can assign a different backup virtual server or rename the existing virtual server. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks. + */ + Backupvserver string `json:"backupvserver,omitempty"` + /** + * Continue forwarding the traffic to backup virtual server even after the primary server comes UP from the DOWN state. + */ + Disableprimaryondown string `json:"disableprimaryondown,omitempty"` + /** + * Insert the virtual server's VIP address and port number in the request header. Available values function as follows: + VIPADDR - Header contains the vserver's IP address and port number without any translation. + OFF - The virtual IP and port header insertion option is disabled. + V6TOV4MAPPING - Header contains the mapped IPv4 address corresponding to the IPv6 address of the vserver and the port number. An IPv6 address can be mapped to a user-specified IPv4 address using the set ns ip6 command. + */ + Insertvserveripport string `json:"insertvserveripport,omitempty"` + /** + * Name of virtual server IP and port header, for use with the VServer IP Port Insertion parameter. + */ + Vipheader string `json:"vipheader,omitempty"` + /** + * Enable network address translation (NAT) for real-time streaming protocol (RTSP) connections. + */ + Rtspnat string `json:"rtspnat,omitempty"` + /** + * FQDN of the authentication virtual server. The service type of the virtual server should be either HTTP or SSL. + */ + Authenticationhost string `json:"authenticationhost,omitempty"` + /** + * Authenticate users who request a connection to the content switching virtual server. + */ + Authentication string `json:"authentication,omitempty"` + /** + * String specifying the listen policy for the content switching virtual server. Can be either the name of an existing expression or an in-line expression. + */ + Listenpolicy string `json:"listenpolicy,omitempty"` + /** + * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. + */ + Listenpriority uint32 `json:"listenpriority,omitempty"` + /** + * Enable HTTP 401-response based authentication. + */ + Authn401 string `json:"authn401,omitempty"` + /** + * Name of authentication virtual server that authenticates the incoming user requests to this content switching virtual server. + */ + Authnvsname string `json:"authnvsname,omitempty"` + /** + * Process traffic with the push virtual server that is bound to this content switching virtual server (specified by the Push VServer parameter). The service type of the push virtual server should be either HTTP or SSL. + */ + Push string `json:"push,omitempty"` + /** + * Name of the load balancing virtual server, of type PUSH or SSL_PUSH, to which the server pushes updates received on the client-facing load balancing virtual server. + */ + Pushvserver string `json:"pushvserver,omitempty"` + /** + * Expression for extracting the label from the response received from server. This string can be either an existing rule name or an inline expression. The service type of the virtual server should be either HTTP or SSL. + */ + Pushlabel string `json:"pushlabel,omitempty"` + /** + * Allow multiple Web 2.0 connections from the same client to connect to the virtual server and expect updates. + */ + Pushmulticlients string `json:"pushmulticlients,omitempty"` + /** + * Name of the TCP profile containing TCP configuration settings for the virtual server. + */ + Tcpprofilename string `json:"tcpprofilename,omitempty"` + /** + * Name of the HTTP profile containing HTTP configuration settings for the virtual server. The service type of the virtual server should be either HTTP or SSL. + */ + Httpprofilename string `json:"httpprofilename,omitempty"` + /** + * Name of the DB profile. + */ + Dbprofilename string `json:"dbprofilename,omitempty"` + /** + * Oracle server version + */ + Oracleserverversion string `json:"oracleserverversion,omitempty"` + /** + * Information about this virtual server. + */ + Comment string `json:"comment,omitempty"` + /** + * The version of the MSSQL server + */ + Mssqlserverversion string `json:"mssqlserverversion,omitempty"` + /** + * Use L2 Parameters to identify a connection + */ + L2conn string `json:"l2conn,omitempty"` + /** + * The protocol version returned by the mysql vserver. + */ + Mysqlprotocolversion uint32 `json:"mysqlprotocolversion,omitempty"` + /** + * The server version string returned by the mysql vserver. + */ + Mysqlserverversion string `json:"mysqlserverversion,omitempty"` + /** + * The character set returned by the mysql vserver. + */ + Mysqlcharacterset uint32 `json:"mysqlcharacterset,omitempty"` + /** + * The server capabilities returned by the mysql vserver. + */ + Mysqlservercapabilities uint32 `json:"mysqlservercapabilities,omitempty"` + /** + * Enable logging appflow flow information + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * The name of the network profile. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * Can be active or passive + */ + Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` + /** + * A host route is injected according to the setting on the virtual servers + * If set to PASSIVE on all the virtual servers that share the IP address, the appliance always injects the hostroute. + * If set to ACTIVE on all the virtual servers that share the IP address, the appliance injects even if one virtual server is UP. + * If set to ACTIVE on some virtual servers and PASSIVE on the others, the appliance, injects even if one virtual server set to ACTIVE is UP. + */ + Rhistate string `json:"rhistate,omitempty"` + /** + * Name of the authentication profile to be used when authentication is turned on. + */ + Authnprofile string `json:"authnprofile,omitempty"` + /** + * Name of the DNS profile to be associated with the VServer. DNS profile properties will applied to the transactions processed by a VServer. This parameter is valid only for DNS and DNS-TCP VServers. + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + /** + * This option starts/stops the dtls service on the vserver + */ + Dtls string `json:"dtls,omitempty"` + /** + * Type of persistence for the virtual server. Available settings function as follows: + * SOURCEIP - Connections from the same client IP address belong to the same persistence session. + * COOKIEINSERT - Connections that have the same HTTP Cookie, inserted by a Set-Cookie directive from a server, belong to the same persistence session. + * SSLSESSION - Connections that have the same SSL Session ID belong to the same persistence session. + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * Persistence mask for IP based persistence types, for IPv4 virtual servers. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Persistence mask for IP based persistence types, for IPv6 virtual servers. + */ + V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + /** + * Time period for which a persistence session is in effect. + */ + Timeout uint32 `json:"timeout,omitempty"` + /** + * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. + */ + Cookiename string `json:"cookiename,omitempty"` + /** + * Backup persistence type for the virtual server. Becomes operational if the primary persistence mechanism fails. + */ + Persistencebackup string `json:"persistencebackup,omitempty"` + /** + * Time period for which backup persistence is in effect. + */ + Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + /** + * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. + */ + Tcpprobeport int32 `json:"tcpprobeport,omitempty"` + /** + * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck + */ + Probeprotocol string `json:"probeprotocol,omitempty"` + /** + * HTTP code to return in SUCCESS case. + */ + Probesuccessresponsecode string `json:"probesuccessresponsecode,omitempty"` + /** + * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring + */ + Probeport int32 `json:"probeport,omitempty"` + /** + * Name of QUIC profile which will be attached to the Content Switching VServer. + */ + Quicprofilename string `json:"quicprofilename,omitempty"` + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + Ttl uint64 `json:"ttl,omitempty"` + Backupip string `json:"backupip,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Cookietimeout uint32 `json:"cookietimeout,omitempty"` + Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + /** + * New name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my name" or 'my name'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Ip string `json:"ip,omitempty"` + Value string `json:"value,omitempty"` + Ngname string `json:"ngname,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Sc string `json:"sc,omitempty"` + Status string `json:"status,omitempty"` + Cachetype string `json:"cachetype,omitempty"` + Redirect string `json:"redirect,omitempty"` + Homepage string `json:"homepage,omitempty"` + Dnsvservername string `json:"dnsvservername,omitempty"` + Domain string `json:"domain,omitempty"` + Servicename string `json:"servicename,omitempty"` + Weight string `json:"weight,omitempty"` + Cachevserver string `json:"cachevserver,omitempty"` + Targetvserver string `json:"targetvserver,omitempty"` + Url string `json:"url,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` + Gt2gb string `json:"gt2gb,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Ruletype string `json:"ruletype,omitempty"` + Lbvserver string `json:"lbvserver,omitempty"` + Targetlbvserver string `json:"targetlbvserver,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + Version string `json:"version,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_binding.go new file mode 100644 index 000000000..d77958164 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding object which returns the resources bound to csvserver_binding. +*/ +type Csvserverbinding struct { + /** + * Name of a content switching virtual server for which to display information, including the policies bound to the virtual server. To display a list of all configured Content Switching virtual servers, do not specify a value for this parameter.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go new file mode 100644 index 000000000..910aff424 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the domain that can be bound to csvserver. +*/ +type Csvserverdomainbinding struct { + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + Ttl uint64 `json:"ttl,omitempty"` + Backupip string `json:"backupip,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Cookietimeout uint32 `json:"cookietimeout,omitempty"` + Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + /** + * Enable logging appflow flow information + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_nslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_nslogpolicy_binding.go new file mode 100644 index 000000000..390772798 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_nslogpolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the nslogpolicy that can be bound to csvserver. +*/ +type Csvservernslogpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_policy_binding.go new file mode 100644 index 000000000..a6126416e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_policy_binding.go @@ -0,0 +1,85 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the policy that can be bound to csvserver. +*/ +type Csvserverpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * target vserver name. + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Number of hits. + */ + Hits uint32 `json:"hits,omitempty"` + /** + * Number of hits. + */ + Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` + /** + * Rule. + */ + Rule string `json:"rule,omitempty"` + /** + * Vserver Id of vserver + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_profile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_profile_binding.go new file mode 100644 index 000000000..23edeab5d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_profile_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the profile that can be bound to csvserver. +*/ +type Csvserverprofilebinding struct { + /** + * Name of the analytics profile bound to the LB vserver. + */ + Analyticsprofile string `json:"analyticsprofile,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_syslogpolicy_binding.go new file mode 100644 index 000000000..4ea7bd16a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_syslogpolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the syslogpolicy that can be bound to csvserver. +*/ +type Csvserversyslogpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_trafficpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_trafficpolicy_binding.go new file mode 100644 index 000000000..d2c724b6d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_trafficpolicy_binding.go @@ -0,0 +1,75 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the trafficpolicy that can be bound to csvserver. +*/ +type Csvservertrafficpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vserver_binding.go new file mode 100644 index 000000000..82083383c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the vserver that can be bound to csvserver. +*/ +type Csvservervserverbinding struct { + /** + * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the default lb vserver bound. Use this param for Default binding only. For Example: bind cs vserver cs1 -lbvserver lb1 + */ + Lbvserver string `json:"lbvserver,omitempty"` + /** + * Number of hits. + */ + Hits uint32 `json:"hits,omitempty"` + /** + * Vserver Id of vserver + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * The virtual server name (created with the add lb vserver command) to which content will be switched. + */ + Targetvserver string `json:"targetvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go new file mode 100644 index 000000000..7e246db99 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for IPv6 address type record resource. +*/ +type Dnsaaaarec struct { + /** + * Domain name. + */ + Hostname string `json:"hostname,omitempty"` + /** + * One or more IPv6 addresses to assign to the domain name. + */ + Ipv6address string `json:"ipv6address,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached records need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Vservername string `json:"vservername,omitempty"` + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go new file mode 100644 index 000000000..d4b85b7e7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS action resource. +*/ +type Dnsaction struct { + /** + * Name of the dns action. + */ + Actionname string `json:"actionname,omitempty"` + /** + * The type of DNS action that is being configured. + */ + Actiontype string `json:"actiontype,omitempty"` + /** + * List of IP address to be returned in case of rewrite_response actiontype. They can be of IPV4 or IPV6 type. + In case of set command We will remove all the IP address previously present in the action and will add new once given in set dns action command. + */ + Ipaddress []string `json:"ipaddress,omitempty"` + /** + * Time to live, in seconds. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * The view name that must be used for the given action. + */ + Viewname string `json:"viewname,omitempty"` + /** + * The location list in priority order used for the given action. + */ + Preferredloclist []string `json:"preferredloclist,omitempty"` + /** + * Name of the DNS profile to be associated with the transaction for which the action is chosen + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + + //------- Read only Parameter ---------; + + Drop string `json:"drop,omitempty"` + Cachebypass string `json:"cachebypass,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction64.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction64.go new file mode 100644 index 000000000..a1e498565 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction64.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for dns64 action resource. +*/ +type Dnsaction64 struct { + /** + * Name of the dns64 action. + */ + Actionname string `json:"actionname,omitempty"` + /** + * The dns64 prefix to be used if the after evaluating the rules + */ + Prefix string `json:"prefix,omitempty"` + /** + * The expression to select the criteria for ipv4 addresses to be used for synthesis. + Only if the mappedrule is evaluated to true the corresponding ipv4 address is used for synthesis using respective prefix, + otherwise the A RR is discarded + */ + Mappedrule string `json:"mappedrule,omitempty"` + /** + * The expression to select the criteria for eliminating the corresponding ipv6 addresses from the response. + */ + Excluderule string `json:"excluderule,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go new file mode 100644 index 000000000..b8dfeea17 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for address type record resource. +*/ +type Dnsaddrec struct { + /** + * Domain name. + */ + Hostname string `json:"hostname,omitempty"` + /** + * One or more IPv4 addresses to assign to the domain name. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached address records need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * The address record type. The type can take 3 values: + ADNS - If this is specified, all of the authoritative address records will be displayed. + PROXY - If this is specified, all of the proxy address records will be displayed. + ALL - If this is specified, all of the address records will be displayed. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Vservername string `json:"vservername,omitempty"` + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go new file mode 100644 index 000000000..c38aa8452 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for CNAME record resource. +*/ +type Dnscnamerec struct { + /** + * Alias for the canonical domain name. + */ + Aliasname string `json:"aliasname,omitempty"` + /** + * Canonical domain name. + */ + Canonicalname string `json:"canonicalname,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached CNAME record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Vservername string `json:"vservername,omitempty"` + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_binding.go new file mode 100644 index 000000000..85f7e6692 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnsglobal_binding. +*/ +type Dnsglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_policy_binding.go new file mode 100644 index 000000000..32d8d1e3f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_policy_binding.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the policy that can be bound to dnsglobal. +*/ +type Dnsglobalpolicybinding struct { + /** + * Name of the dns policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Type of global bind point for which to show bound policies. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy with which it is bound. Maximum allowed priority should be less than 65535 + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * flowtype of the bound rewrite policy. + */ + Flowtype uint32 `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go new file mode 100644 index 000000000..cd1ec9b66 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for dns key resource. +*/ +type Dnskey struct { + /** + * Name of the public-private key pair to publish in the zone. + */ + Keyname string `json:"keyname,omitempty"` + /** + * File name of the public key. + */ + Publickey string `json:"publickey,omitempty"` + /** + * File name of the private key. + */ + Privatekey string `json:"privatekey,omitempty"` + /** + * Time period for which to consider the key valid, after the key is used to sign a zone. + */ + Expires uint32 `json:"expires,omitempty"` + /** + * Units for the expiry period. + */ + Units1 string `json:"units1,omitempty"` + /** + * Time at which to generate notification of key expiration, specified as number of days, hours, or minutes before expiry. Must be less than the expiry period. The notification is an SNMP trap sent to an SNMP manager. To enable the appliance to send the trap, enable the DNSKEY-EXPIRY SNMP alarm. + */ + Notificationperiod uint32 `json:"notificationperiod,omitempty"` + /** + * Units for the notification period. + */ + Units2 string `json:"units2,omitempty"` + /** + * Time to Live (TTL), in seconds, for the DNSKEY resource record created in the zone. TTL is the time for which the record must be cached by the DNS proxies. If the TTL is not specified, either the DNS zone's minimum TTL or the default value of 3600 is used. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Passphrase for reading the encrypted public/private DNS keys + */ + Password string `json:"password,omitempty"` + /** + * Name of the zone for which to create a key. + */ + Zonename string `json:"zonename,omitempty"` + /** + * Type of key to create. + */ + Keytype string `json:"keytype,omitempty"` + /** + * Algorithm to generate for zone signing. + */ + Algorithm string `json:"algorithm,omitempty"` + /** + * Size of the key, in bits. + */ + Keysize uint32 `json:"keysize,omitempty"` + /** + * Common prefix for the names of the generated public and private key files and the Delegation Signer (DS) resource record. During key generation, the .key, .private, and .ds suffixes are appended automatically to the file name prefix to produce the names of the public key, the private key, and the DS record, respectively. + */ + Filenameprefix string `json:"filenameprefix,omitempty"` + /** + * URL (protocol, host, path, and file name) from where the DNS key file will be imported. NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. This is a mandatory argument + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go new file mode 100644 index 000000000..f28017c74 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for MX record resource. +*/ +type Dnsmxrec struct { + /** + * Domain name for which to add the MX record. + */ + Domain string `json:"domain,omitempty"` + /** + * Host name of the mail exchange server. + */ + Mx string `json:"mx,omitempty"` + /** + * Priority number to assign to the mail exchange server. A domain name can have multiple mail servers, with a priority number assigned to each server. The lower the priority number, the higher the mail server's priority. When other mail servers have to deliver mail to the specified domain, they begin with the mail server with the lowest priority number, and use other configured mail servers, in priority order, as backups. + */ + Pref uint32 `json:"pref,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached MX record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnameserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnameserver.go new file mode 100644 index 000000000..eeddf7a60 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnameserver.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for name server resource. +*/ +type Dnsnameserver struct { + /** + * IP address of an external name server or, if the Local parameter is set, IP address of a local DNS server (LDNS). + */ + Ip string `json:"ip,omitempty"` + /** + * Name of a DNS virtual server. Overrides any IP address-based name servers configured on the Citrix ADC. + */ + Dnsvservername string `json:"dnsvservername,omitempty"` + /** + * Mark the IP address as one that belongs to a local recursive DNS server on the Citrix ADC. The appliance recursively resolves queries received on an IP address that is marked as being local. For recursive resolution to work, the global DNS parameter, Recursion, must also be set. + If no name server is marked as being local, the appliance functions as a stub resolver and load balances the name servers. + */ + Local bool `json:"local,omitempty"` + /** + * Administrative state of the name server. + */ + State string `json:"state,omitempty"` + /** + * Protocol used by the name server. UDP_TCP is not valid if the name server is a DNS virtual server configured on the appliance. + */ + Type string `json:"type,omitempty"` + /** + * Name of the DNS profile to be associated with the name server + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + + //------- Read only Parameter ---------; + + Servicename string `json:"servicename,omitempty"` + Port string `json:"port,omitempty"` + Nameserverstate string `json:"nameserverstate,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go new file mode 100644 index 000000000..368bcdffc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for NAPTR record resource. +*/ +type Dnsnaptrrec struct { + /** + * Name of the domain for the NAPTR record. + */ + Domain string `json:"domain,omitempty"` + /** + * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest + */ + Order uint32 `json:"order,omitempty"` + /** + * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. + */ + Preference uint32 `json:"preference,omitempty"` + /** + * flags for this NAPTR. + */ + Flags string `json:"flags,omitempty"` + /** + * Service Parameters applicable to this delegation path. + */ + Services string `json:"services,omitempty"` + /** + * The regular expression, that specifies the substitution expression for this NAPTR + */ + Regexp string `json:"regexp,omitempty"` + /** + * The replacement domain name for this NAPTR. + */ + Replacement string `json:"replacement,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Unique, internally generated record ID. View the details of the naptr record to obtain its record ID. Records can be removed by either specifying the domain name and record id OR by specifying + domain name and all other naptr record attributes as was supplied during the add command. + */ + Recordid uint32 `json:"recordid,omitempty"` + /** + * Subnet for which the cached NAPTR record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + Vservername string `json:"vservername,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsecrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsecrec.go new file mode 100644 index 000000000..55b23ff25 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsecrec.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + + +type Dnsnsecrec struct { + /** + * Name of the domain. + */ + Hostname string `json:"hostname,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + + //------- Read only Parameter ---------; + + Nextnsec string `json:"nextnsec,omitempty"` + Nextrecs string `json:"nextrecs,omitempty"` + Ttl string `json:"ttl,omitempty"` + Ecssubnet string `json:"ecssubnet,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go new file mode 100644 index 000000000..1082a9f6f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for name server record resource. +*/ +type Dnsnsrec struct { + /** + * Domain name. + */ + Domain string `json:"domain,omitempty"` + /** + * Host name of the name server to add to the domain. + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached name server record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go new file mode 100644 index 000000000..0d63788d7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go @@ -0,0 +1,118 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS parameter resource. +*/ +type Dnsparameter struct { + /** + * Maximum number of retry attempts when no response is received for a query sent to a name server. Applies to end resolver and forwarder configurations. + */ + Retries uint32 `json:"retries,omitempty"` + /** + * Minimum permissible time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is lower than the value configured for minTTL, the TTL of the record is set to the value of minTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. + */ + Minttl uint64 `json:"minttl,omitempty"` + /** + * Maximum time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxTTL, the TTL of the record is set to the value of maxTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. + */ + Maxttl uint64 `json:"maxttl,omitempty"` + /** + * Cache resource records in the DNS cache. Applies to resource records obtained through proxy configurations only. End resolver and forwarder configurations always cache records in the DNS cache, and you cannot disable this behavior. When you disable record caching, the appliance stops caching server responses. However, cached records are not flushed. The appliance does not serve requests from the cache until record caching is enabled again. + */ + Cacherecords string `json:"cacherecords,omitempty"` + /** + * Type of lookup (DNS or WINS) to attempt first. If the first-priority lookup fails, the second-priority lookup is attempted. Used only by the SSL VPN feature. + */ + Namelookuppriority string `json:"namelookuppriority,omitempty"` + /** + * Function as an end resolver and recursively resolve queries for domains that are not hosted on the Citrix ADC. Also resolve queries recursively when the external name servers configured on the appliance (for a forwarder configuration) are unavailable. When external name servers are unavailable, the appliance queries a root server and resolves the request recursively, as it does for an end resolver configuration. + */ + Recursion string `json:"recursion,omitempty"` + /** + * Type of DNS queries (A, AAAA, or both) to generate during the routine functioning of certain Citrix ADC features, such as SSL VPN, cache redirection, and the integrated cache. The queries are sent to the external name servers that are configured for the forwarder function. If you specify both query types, you can also specify the order. Available settings function as follows: + * OnlyAQuery. Send queries for IPv4 address records (A records) only. + * OnlyAAAAQuery. Send queries for IPv6 address records (AAAA records) instead of queries for IPv4 address records (A records). + * AThenAAAAQuery. Send a query for an A record, and then send a query for an AAAA record if the query for the A record results in a NODATA response from the name server. + * AAAAThenAQuery. Send a query for an AAAA record, and then send a query for an A record if the query for the AAAA record results in a NODATA response from the name server. + */ + Resolutionorder string `json:"resolutionorder,omitempty"` + /** + * Enable or disable the Domain Name System Security Extensions (DNSSEC) feature on the appliance. Note: Even when the DNSSEC feature is enabled, forwarder configurations (used by internal Citrix ADC features such as SSL VPN and Cache Redirection for name resolution) do not support the DNSSEC OK (DO) bit in the EDNS0 OPT header. + */ + Dnssec string `json:"dnssec,omitempty"` + /** + * Maximum number of concurrent DNS requests to allow on a single client connection, which is identified by the - tuple. A value of 0 (zero) applies no limit to the number of concurrent DNS requests allowed on a single client connection. + */ + Maxpipeline uint32 `json:"maxpipeline,omitempty"` + /** + * Send a root referral if a client queries a domain name that is unrelated to the domains configured/cached on the Citrix ADC. If the setting is disabled, the appliance sends a blank response instead of a root referral. Applicable to domains for which the appliance is authoritative. Disable the parameter when the appliance is under attack from a client that is sending a flood of queries for unrelated domains. + */ + Dnsrootreferral string `json:"dnsrootreferral,omitempty"` + /** + * While doing DNS64 resolution, this parameter specifies the time to wait before sending an A query if no response is received from backend DNS server for AAAA query. + */ + Dns64timeout uint32 `json:"dns64timeout,omitempty"` + /** + * Maximum number of subnets that can be cached corresponding to a single domain. Subnet caching will occur for responses with EDNS Client Subnet (ECS) option. Caching of such responses can be disabled using DNS profile settings. A value of zero indicates that the number of subnets cached is limited only by existing memory constraints. The default value is zero. + */ + Ecsmaxsubnets uint32 `json:"ecsmaxsubnets,omitempty"` + /** + * Maximum time to live (TTL) for all negative records ( NXDONAIN and NODATA ) cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxnegcacheTTL, the TTL of the record is set to the value of maxnegcacheTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. + */ + Maxnegcachettl uint64 `json:"maxnegcachettl,omitempty"` + /** + * This parameter is applicable only in proxy mode and if this parameter is enabled we will forward all the client requests to the backend DNS server and the response served will be cached on Citrix ADC + */ + Cachehitbypass string `json:"cachehitbypass,omitempty"` + /** + * Maximum memory, in megabytes, that can be used for dns caching per Packet Engine. + */ + Maxcachesize uint64 `json:"maxcachesize,omitempty"` + /** + * Maximum memory, in megabytes, that can be used for caching of negative DNS responses per packet engine. + */ + Maxnegativecachesize uint64 `json:"maxnegativecachesize,omitempty"` + /** + * If this flag is set to YES, the existing entries in cache do not age out. On reaching the max limit the cache records are frozen + */ + Cachenoexpire string `json:"cachenoexpire,omitempty"` + /** + * Processing requests split across multiple packets + */ + Splitpktqueryprocessing string `json:"splitpktqueryprocessing,omitempty"` + /** + * Cache ECS responses with a Scope Prefix length of zero. Such a cached response will be used for all queries with this domain name and any subnet. When disabled, ECS responses with Scope Prefix length of zero will be cached, but not tied to any subnet. This option has no effect if caching of ECS responses is disabled in the corresponding DNS profile. + */ + Cacheecszeroprefix string `json:"cacheecszeroprefix,omitempty"` + /** + * Maximum UDP packet size that can be handled by Citrix ADC. This is the value advertised by Citrix ADC when responding as an authoritative server and it is also used when Citrix ADC queries other name servers as a forwarder. When acting as a proxy, requests from clients are limited by this parameter - if a request contains a size greater than this value in the OPT record, it will be replaced. + */ + Maxudppacketsize uint32 `json:"maxudppacketsize,omitempty"` + /** + * Rate limit threshold for Non-Existant domain (NXDOMAIN) responses generated from Citrix ADC. Once the threshold is breached , DNS queries leading to NXDOMAIN response will be dropped. This threshold will not be applied for NXDOMAIN responses got from the backend. The threshold will be applied per packet engine and per second. + */ + Nxdomainratelimitthreshold uint32 `json:"nxdomainratelimitthreshold,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Nxdomainthresholdcrossed string `json:"nxdomainthresholdcrossed,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy.go new file mode 100644 index 000000000..45e375ef8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy.go @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS policy resource. +*/ +type Dnspolicy struct { + /** + * Name for the DNS policy. + */ + Name string `json:"name,omitempty"` + /** + * Expression against which DNS traffic is evaluated. + Note: + * On the command line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. + * If the expression itself includes double quotation marks, you must escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + Example: CLIENT.UDP.DNS.DOMAIN.EQ("domainname") + */ + Rule string `json:"rule,omitempty"` + /** + * The view name that must be used for the given policy. + */ + Viewname string `json:"viewname,omitempty"` + /** + * The location used for the given policy. This is deprecated attribute. Please use -prefLocList + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * The location list in priority order used for the given policy. + */ + Preferredloclist []string `json:"preferredloclist,omitempty"` + /** + * The dns packet must be dropped. + */ + Drop string `json:"drop,omitempty"` + /** + * By pass dns cache for this. + */ + Cachebypass string `json:"cachebypass,omitempty"` + /** + * Name of the DNS action to perform when the rule evaluates to TRUE. The built in actions function as follows: + * dns_default_act_Drop. Drop the DNS request. + * dns_default_act_Cachebypass. Bypass the DNS cache and forward the request to the name server. + You can create custom actions by using the add dns action command in the CLI or the DNS > Actions > Create DNS Action dialog box in the Citrix ADC configuration utility. + */ + Actionname string `json:"actionname,omitempty"` + /** + * Name of the messagelog action to use for requests that match this policy. + */ + Logaction string `json:"logaction,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Description string `json:"description,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64.go new file mode 100644 index 000000000..30da5b26e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64.go @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for dns64 policy resource. +*/ +type Dnspolicy64 struct { + /** + * Name for the DNS64 policy. + */ + Name string `json:"name,omitempty"` + /** + * Expression against which DNS traffic is evaluated. + Note: + * On the command line interface, if the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. + * If the expression itself includes double quotation marks, you must escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + Example: CLIENT.IP.SRC.IN_SUBENT(23.34.0.0/16) + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the DNS64 action to perform when the rule evaluates to TRUE. The built in actions function as follows: + * A default dns64 action with prefix and mapped and exclude are any + You can create custom actions by using the add dns action command in the CLI or the DNS64 > Actions > Create DNS64 Action dialog box in the Citrix ADC configuration utility. + */ + Action string `json:"action,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Labelname string `json:"labelname,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_binding.go new file mode 100644 index 000000000..8bc976937 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnspolicy64_binding. +*/ +type Dnspolicy64binding struct { + /** + * Name of the DNS64 policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_vserver_binding.go new file mode 100644 index 000000000..e50ca408b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_vserver_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the vserver that can be bound to dnspolicy64. +*/ +type Dnspolicy64vserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name of the DNS64 policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_binding.go new file mode 100644 index 000000000..f3ad91c27 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnspolicy_binding. +*/ +type Dnspolicybinding struct { + /** + * Name of the DNS policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_global_binding.go new file mode 100644 index 000000000..6ece9703d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_global_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the global that can be bound to dnspolicy. +*/ +type Dnspolicyglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the DNS policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_policylabel_binding.go new file mode 100644 index 000000000..e6eb68a24 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the policylabel that can be bound to dnspolicy. +*/ +type Dnspolicypolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the DNS policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel.go new file mode 100644 index 000000000..0c03a68e3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel.go @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for dns policy label resource. +*/ +type Dnspolicylabel struct { + /** + * Name of the dns policy label. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The type of transformations allowed by the policies bound to the label. + */ + Transform string `json:"transform,omitempty"` + /** + * The new name of the dns policylabel. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_binding.go new file mode 100644 index 000000000..ea1c45c27 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnspolicylabel_binding. +*/ +type Dnspolicylabelbinding struct { + /** + * Name of the dns policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policy_binding.go new file mode 100644 index 000000000..1643f88b0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the policy that can be bound to dnspolicylabel. +*/ +type Dnspolicylabelpolicybinding struct { + /** + * The dns policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the dns policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go new file mode 100644 index 000000000..4a3fe71d1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the policybinding that can be bound to dnspolicylabel. +*/ +type Dnspolicylabelpolicybindingbinding struct { + /** + * The dns policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the dns policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsprofile.go new file mode 100644 index 000000000..587d7a9eb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsprofile.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS profile resource. +*/ +type Dnsprofile struct { + /** + * Name of the DNS profile + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + /** + * DNS query logging; if enabled, DNS query information such as DNS query id, DNS query flags , DNS domain name and DNS query type will be logged + */ + Dnsquerylogging string `json:"dnsquerylogging,omitempty"` + /** + * DNS answer section; if enabled, answer section in the response will be logged. + */ + Dnsanswerseclogging string `json:"dnsanswerseclogging,omitempty"` + /** + * DNS extended logging; if enabled, authority and additional section in the response will be logged. + */ + Dnsextendedlogging string `json:"dnsextendedlogging,omitempty"` + /** + * DNS error logging; if enabled, whenever error is encountered in DNS module reason for the error will be logged. + */ + Dnserrorlogging string `json:"dnserrorlogging,omitempty"` + /** + * Cache resource records in the DNS cache. Applies to resource records obtained through proxy configurations only. End resolver and forwarder configurations always cache records in the DNS cache, and you cannot disable this behavior. When you disable record caching, the appliance stops caching server responses. However, cached records are not flushed. The appliance does not serve requests from the cache until record caching is enabled again. + */ + Cacherecords string `json:"cacherecords,omitempty"` + /** + * Cache negative responses in the DNS cache. When disabled, the appliance stops caching negative responses except referral records. This applies to all configurations - proxy, end resolver, and forwarder. However, cached responses are not flushed. The appliance does not serve negative responses from the cache until this parameter is enabled again. + */ + Cachenegativeresponses string `json:"cachenegativeresponses,omitempty"` + /** + * Drop the DNS requests containing multiple queries. When enabled, DNS requests containing multiple queries will be dropped. In case of proxy configuration by default the DNS request containing multiple queries is forwarded to the backend and in case of ADNS and Resolver configuration NOCODE error response will be sent to the client. + */ + Dropmultiqueryrequest string `json:"dropmultiqueryrequest,omitempty"` + /** + * Cache DNS responses with EDNS Client Subnet(ECS) option in the DNS cache. When disabled, the appliance stops caching responses with ECS option. This is relevant to proxy configuration. Enabling/disabling support of ECS option when Citrix ADC is authoritative for a GSLB domain is supported using a knob in GSLB vserver. In all other modes, ECS option is ignored. + */ + Cacheecsresponses string `json:"cacheecsresponses,omitempty"` + + //------- Read only Parameter ---------; + + Referencecount string `json:"referencecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsproxyrecords.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsproxyrecords.go new file mode 100644 index 000000000..d7cfc3755 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsproxyrecords.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for proxy record resource. +*/ +type Dnsproxyrecords struct { + /** + * Filter the DNS records to be flushed.e.g flush dns proxyRecords -type A will flush only the A records from the cache. + */ + Type string `json:"type,omitempty"` + /** + * Filter the Negative DNS records i.e NXDOMAIN and NODATA entries to be flushed. e.g flush dns proxyRecords NXDOMAIN will flush only the NXDOMAIN entries from the cache + */ + Negrectype string `json:"negrectype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go new file mode 100644 index 000000000..427eb52b3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for PTR record resource. +*/ +type Dnsptrrec struct { + /** + * Reversed domain name representation of the IPv4 or IPv6 address for which to create the PTR record. Use the "in-addr.arpa." suffix for IPv4 addresses and the "ip6.arpa." suffix for IPv6 addresses. + */ + Reversedomain string `json:"reversedomain,omitempty"` + /** + * Domain name for which to configure reverse mapping. + */ + Domain string `json:"domain,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached PTR record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go new file mode 100644 index 000000000..64f978783 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for SOA record resource. +*/ +type Dnssoarec struct { + /** + * Domain name for which to add the SOA record. + */ + Domain string `json:"domain,omitempty"` + /** + * Domain name of the name server that responds authoritatively for the domain. + */ + Originserver string `json:"originserver,omitempty"` + /** + * Email address of the contact to whom domain issues can be addressed. In the email address, replace the @ sign with a period (.). For example, enter domainadmin.example.com instead of domainadmin@example.com. + */ + Contact string `json:"contact,omitempty"` + /** + * The secondary server uses this parameter to determine whether it requires a zone transfer from the primary server. + */ + Serial uint32 `json:"serial,omitempty"` + /** + * Time, in seconds, for which a secondary server must wait between successive checks on the value of the serial number. + */ + Refresh uint64 `json:"refresh,omitempty"` + /** + * Time, in seconds, between retries if a secondary server's attempt to contact the primary server for a zone refresh fails. + */ + Retry uint64 `json:"retry,omitempty"` + /** + * Time, in seconds, after which the zone data on a secondary name server can no longer be considered authoritative because all refresh and retry attempts made during the period have failed. After the expiry period, the secondary server stops serving the zone. Typically one week. Not used by the primary server. + */ + Expire uint64 `json:"expire,omitempty"` + /** + * Default time to live (TTL) for all records in the zone. Can be overridden for individual records. + */ + Minimum uint64 `json:"minimum,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached SOA record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go new file mode 100644 index 000000000..430ed6877 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for server record resource. +*/ +type Dnssrvrec struct { + /** + * Domain name, which, by convention, is prefixed by the symbolic name of the desired service and the symbolic name of the desired protocol, each with an underscore (_) prepended. For example, if an SRV-aware client wants to discover a SIP service that is provided over UDP, in the domain example.com, the client performs a lookup for _sip._udp.example.com. + */ + Domain string `json:"domain,omitempty"` + /** + * Target host for the specified service. + */ + Target string `json:"target,omitempty"` + /** + * Integer specifying the priority of the target host. The lower the number, the higher the priority. If multiple target hosts have the same priority, selection is based on the Weight parameter. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Weight for the target host. Aids host selection when two or more hosts have the same priority. A larger number indicates greater weight. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Port on which the target host listens for client requests. + */ + Port uint32 `json:"port,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Subnet for which the cached SRV record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go new file mode 100644 index 000000000..1900e4b26 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for subnet cache resource. +*/ +type Dnssubnetcache struct { + /** + * ECS Subnet. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Flush all the ECS subnets from the DNS cache. + */ + All bool `json:"all,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Hostname string `json:"hostname,omitempty"` + Nextrecs string `json:"nextrecs,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssuffix.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssuffix.go new file mode 100644 index 000000000..633e4a699 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssuffix.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS suffix resource. +*/ +type Dnssuffix struct { + /** + * Suffix to be appended when resolving domain names that are not fully qualified. + */ + Dnssuffix string `json:"Dnssuffix,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go new file mode 100644 index 000000000..13113df9e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for TXT record resource. +*/ +type Dnstxtrec struct { + /** + * Name of the domain for the TXT record. + */ + Domain string `json:"domain,omitempty"` + /** + * Information to store in the TXT resource record. Enclose the string in single or double quotation marks. A TXT resource record can contain up to six strings, each of which can contain up to 255 characters. If you want to add a string of more than 255 characters, evaluate whether splitting it into two or more smaller strings, subject to the six-string limit, works for you. + */ + String []string `json:"String,omitempty"` + /** + * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * Unique, internally generated record ID. View the details of the TXT record to obtain its record ID. Mutually exclusive with the string parameter. + */ + Recordid uint32 `json:"recordid,omitempty"` + /** + * Subnet for which the cached TXT record need to be removed. + */ + Ecssubnet string `json:"ecssubnet,omitempty"` + /** + * Type of records to display. Available settings function as follows: + * ADNS - Display all authoritative address records. + * PROXY - Display all proxy address records. + * ALL - Display all address records. + */ + Type string `json:"type,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Authtype string `json:"authtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview.go new file mode 100644 index 000000000..5ca7ee6c0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS view resource. +*/ +type Dnsview struct { + /** + * Name for the DNS view. + */ + Viewname string `json:"viewname,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_binding.go new file mode 100644 index 000000000..8a85d47ee --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnsview_binding. +*/ +type Dnsviewbinding struct { + /** + * Name of the view to display.
Minimum value = + */ + Viewname string `json:"viewname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_policy_binding.go new file mode 100644 index 000000000..08d3f6fd9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_policy_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the policy that can be bound to dnsview. +*/ +type Dnsviewpolicybinding struct { + /** + * dnspolicy name of this view. + */ + Dnspolicyname string `json:"dnspolicyname,omitempty"` + /** + * Name of the view to display. + */ + Viewname string `json:"viewname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_service_binding.go new file mode 100644 index 000000000..0dd5b6ad7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_service_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the service that can be bound to dnsview. +*/ +type Dnsviewservicebinding struct { + /** + * Service name of the service using this view. + */ + Gslbservicename string `json:"gslbservicename,omitempty"` + /** + * IP of the service corresponding to the given view. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the view to display. + */ + Viewname string `json:"viewname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone.go new file mode 100644 index 000000000..b6d9e9c5d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone.go @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Configuration for DNS zone resource. +*/ +type Dnszone struct { + /** + * Name of the zone to create. + */ + Zonename string `json:"zonename,omitempty"` + /** + * Deploy the zone in proxy mode. Enable in the following scenarios: + * The load balanced DNS servers are authoritative for the zone and all resource records that are part of the zone. + * The load balanced DNS servers are authoritative for the zone, but the Citrix ADC owns a subset of the resource records that belong to the zone (partial zone ownership configuration). Typically seen in global server load balancing (GSLB) configurations, in which the appliance responds authoritatively to queries for GSLB domain names but forwards queries for other domain names in the zone to the load balanced servers. + In either scenario, do not create the zone's Start of Authority (SOA) and name server (NS) resource records on the appliance. + Disable if the appliance is authoritative for the zone, but make sure that you have created the SOA and NS records on the appliance before you create the zone. + */ + Proxymode string `json:"proxymode,omitempty"` + /** + * Enable dnssec offload for this zone. + */ + Dnssecoffload string `json:"dnssecoffload,omitempty"` + /** + * Enable nsec generation for dnssec offload. + */ + Nsec string `json:"nsec,omitempty"` + /** + * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. + */ + Keyname []string `json:"keyname,omitempty"` + /** + * Type of zone to display. Mutually exclusive with the DNS Zone (zoneName) parameter. Available settings function as follows: + * ADNS - Display all the zones for which the Citrix ADC is authoritative. + * PROXY - Display all the zones for which the Citrix ADC is functioning as a proxy server. + * ALL - Display all the zones configured on the appliance. + */ + Type string `json:"type,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_binding.go new file mode 100644 index 000000000..7d3b31ade --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding object which returns the resources bound to dnszone_binding. +*/ +type Dnszonebinding struct { + /** + * Name of the zone. Mutually exclusive with the type parameter.
Minimum value = + */ + Zonename string `json:"zonename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_domain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_domain_binding.go new file mode 100644 index 000000000..588a95c35 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_domain_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the domain that can be bound to dnszone. +*/ +type Dnszonedomainbinding struct { + /** + * Domain name that belongs to the given zone + */ + Domain string `json:"domain,omitempty"` + /** + * An array of record types associated with the nsec record. + */ + Nextrecs []string `json:"nextrecs,omitempty"` + /** + * Name of the zone. Mutually exclusive with the type parameter. + */ + Zonename string `json:"zonename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_key_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_key_binding.go new file mode 100644 index 000000000..0f2915639 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_key_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the key that can be bound to dnszone. +*/ +type Dnszonekeybinding struct { + /** + * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. + */ + Keyname []string `json:"keyname,omitempty"` + /** + * The time when sign was done with this key. + */ + Siginceptiontime []uint32 `json:"siginceptiontime,omitempty"` + /** + * Integer which denote status of keys. + */ + Signed uint32 `json:"signed,omitempty"` + /** + * Time period for which to consider the key valid, after the key is used to sign a zone. + */ + Expires uint32 `json:"expires,omitempty"` + /** + * Name of the zone. Mutually exclusive with the type parameter. + */ + Zonename string `json:"zonename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go new file mode 100644 index 000000000..59e120b6b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for filter action resource. +*/ +type Filteraction struct { + /** + * Name for the filtering action. Must begin with a letter, number, or the underscore character (_). Other characters allowed, after the first character, are the hyphen (-), period (.) hash (#), space ( ), at sign (@), equals (=), and colon (:) characters. Choose a name that helps identify the type of action. The name of a filter action cannot be changed after it is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my action" or 'my action'). + */ + Name string `json:"name,omitempty"` + /** + * Qualifier, which is the action to be performed. The qualifier cannot be changed after it is set. The available options function as follows: + ADD - Adds the specified HTTP header. + RESET - Terminates the connection, sending the appropriate termination notice to the user's browser. + FORWARD - Redirects the request to the designated service. You must specify either a service name or a page, but not both. + DROP - Silently deletes the request, without sending a response to the user's browser. + CORRUPT - Modifies the designated HTTP header to prevent it from performing the function it was intended to perform, then sends the request/response to the server/browser. + ERRORCODE. Returns the designated HTTP error code to the user's browser (for example, 404, the standard HTTP code for a non-existent Web page). + */ + Qual string `json:"qual,omitempty"` + /** + * Service to which to forward HTTP requests. Required if the qualifier is FORWARD. + */ + Servicename string `json:"servicename,omitempty"` + /** + * String containing the header_name and header_value. If the qualifier is ADD, specify :. If the qualifier is CORRUPT, specify only the header_name + */ + Value string `json:"value,omitempty"` + /** + * Response code to be returned for HTTP requests (for use with the ERRORCODE qualifier). + */ + Respcode uint32 `json:"respcode,omitempty"` + /** + * HTML page to return for HTTP requests (For use with the ERRORCODE qualifier). + */ + Page string `json:"page,omitempty"` + + //------- Read only Parameter ---------; + + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_binding.go new file mode 100644 index 000000000..15bf224a3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding object which returns the resources bound to filterglobal_binding. +*/ +type Filterglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_policy_binding.go new file mode 100644 index 000000000..ede528d9b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_policy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the policy that can be bound to filterglobal. +*/ +type Filterglobalpolicybinding struct { + /** + * The name of the filter policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * State of the binding. + */ + State string `json:"state,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go new file mode 100644 index 000000000..b88bfbf41 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for HTML injection parameter resource. +*/ +type Filterhtmlinjectionparameter struct { + /** + * For a rate of x, HTML injection is done for 1 out of x policy matches. + */ + Rate uint32 `json:"rate,omitempty"` + /** + * For a frequency of x, HTML injection is done at least once per x milliseconds. + */ + Frequency uint32 `json:"frequency,omitempty"` + /** + * Searching for tag. If this parameter is enabled, HTML injection does not insert the prebody or postbody content unless the tag is found. + */ + Strict string `json:"strict,omitempty"` + /** + * Number of characters, in the HTTP body, in which to search for the tag if strict mode is set. + */ + Htmlsearchlen uint32 `json:"htmlsearchlen,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionvariable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionvariable.go new file mode 100644 index 000000000..c562d79e0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionvariable.go @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for HTML injection variable resource. +*/ +type Filterhtmlinjectionvariable struct { + /** + * Name for the HTML injection variable to be added. + */ + Variable string `json:"variable,omitempty"` + /** + * Value to be assigned to the new variable. + */ + Value string `json:"value,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Type string `json:"type,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy.go new file mode 100644 index 000000000..59d4c6400 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for filter policy resource. +*/ +type Filterpolicy struct { + /** + * Name for the filtering action. Must begin with a letter, number, or the underscore character (_). Other characters allowed, after the first character, are the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), and colon (:) characters. Choose a name that helps identify the type of action. The name cannot be updated after the policy is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). + */ + Name string `json:"name,omitempty"` + /** + * Citrix ADC classic expression specifying the type of connections that match this policy. + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the action to be performed on requests that match the policy. Cannot be specified if the rule includes condition to be evaluated for responses. + */ + Reqaction string `json:"reqaction,omitempty"` + /** + * The action to be performed on the response. The string value can be a filter action created filter action or a built-in action. + */ + Resaction string `json:"resaction,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_binding.go new file mode 100644 index 000000000..8ad7599dd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding object which returns the resources bound to filterpolicy_binding. +*/ +type Filterpolicybinding struct { + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_global_binding.go new file mode 100644 index 000000000..f75d86686 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_global_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the global that can be bound to filterpolicy. +*/ +type Filterpolicyglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_vserver_binding.go new file mode 100644 index 000000000..7398bc2c7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_vserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the vserver that can be bound to filterpolicy. +*/ +type Filterpolicyvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpostbodyinjection.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpostbodyinjection.go new file mode 100644 index 000000000..2353eeb25 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpostbodyinjection.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for HTML Injection postbody resource. +*/ +type Filterpostbodyinjection struct { + /** + * Name of file whose contents are to be inserted after the response body. + */ + Postbody string `json:"postbody,omitempty"` + + //------- Read only Parameter ---------; + + Systemiid string `json:"systemiid,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterprebodyinjection.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterprebodyinjection.go new file mode 100644 index 000000000..b317fa3b8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterprebodyinjection.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Configuration for HTML Injection prebody resource. +*/ +type Filterprebodyinjection struct { + /** + * Name of file whose contents are to be inserted before the response body. + */ + Prebody string `json:"prebody,omitempty"` + + //------- Read only Parameter ---------; + + Systemiid string `json:"systemiid,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbconfig.go new file mode 100644 index 000000000..3bb56305d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbconfig.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for gslb config resource. +*/ +type Gslbconfig struct { + /** + * Do not synchronize the GSLB sites, but display the commands that would be applied on the slave node upon synchronization. Mutually exclusive with the Save Configuration option. + */ + Preview bool `json:"preview,omitempty"` + /** + * Generate verbose output when synchronizing the GSLB sites. The Debug option generates more verbose output than the sync gslb config command in which the option is not used, and is useful for analyzing synchronization issues. + */ + Debug bool `json:"debug,omitempty"` + /** + * Force synchronization of the specified site even if a dependent configuration on the remote site is preventing synchronization or if one or more GSLB entities on the remote site have the same name but are of a different type. You can specify either the name of the remote site that you want to synchronize with the local site, or you can specify All Sites in the configuration utility (the string all-sites in the CLI). If you specify All Sites, all the sites in the GSLB setup are synchronized with the site on the master node. + Note: If you select the Force Sync option, the synchronization starts without displaying the commands that are going to be executed. + */ + Forcesync string `json:"forcesync,omitempty"` + /** + * Suppress the warning and the confirmation prompt that are displayed before site synchronization begins. This option can be used in automation scripts that must not be interrupted by a prompt. + */ + Nowarn bool `json:"nowarn,omitempty"` + /** + * Save the configuration on all the nodes participating in the synchronization process, automatically. The master saves its configuration immediately before synchronization begins. Slave nodes save their configurations after the process of synchronization is complete. A slave node saves its configuration only if the configuration difference was successfully applied to it. Mutually exclusive with the Preview option. + */ + Saveconfig bool `json:"saveconfig,omitempty"` + /** + * Run the specified command on the master node and then on all the slave nodes. You cannot use this option with the force sync and preview options. + */ + Command string `json:"command,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain.go new file mode 100644 index 000000000..1fcd1367b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for GSLB domain resource. +*/ +type Gslbdomain struct { + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_binding.go new file mode 100644 index 000000000..2042ec29f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding object which returns the resources bound to gslbdomain_binding. +*/ +type Gslbdomainbinding struct { + /** + * Name of the Domain.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_monitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_monitor_binding.go new file mode 100644 index 000000000..6b4f32c3c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_monitor_binding.go @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the monitor that can be bound to gslbdomain. +*/ +type Gslbdomainmonitorbinding struct { + /** + * Monitor name + */ + Monitorname string `json:"monitorname,omitempty"` + /** + * The service name. + */ + Servicename string `json:"servicename,omitempty"` + Vservername string `json:"vservername,omitempty"` + /** + * Monitor state + */ + Monstate string `json:"monstate,omitempty"` + /** + * HTTP request to the backend server + */ + Httprequest string `json:"httprequest,omitempty"` + /** + * The state of the monitor for tunneled devices. + */ + Iptunnel string `json:"iptunnel,omitempty"` + /** + * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. + */ + Customheaders string `json:"customheaders,omitempty"` + /** + * The response codes. + */ + Respcode string `json:"respcode,omitempty"` + /** + * Total monitor probes + */ + Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + /** + * Total probes failed + */ + Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of current failed probes + */ + Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime uint64 `json:"responsetime,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int32 `json:"monstatcode,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_service_binding.go new file mode 100644 index 000000000..3b5b66db0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_service_binding.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the service that can be bound to gslbdomain. +*/ +type Gslbdomainservicebinding struct { + /** + * The service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + Vservername string `json:"vservername,omitempty"` + /** + * The Ip address of the service + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port Number + */ + Port int32 `json:"port,omitempty"` + /** + * The state of the vserver + */ + State string `json:"state,omitempty"` + /** + * weight assigned + */ + Weight uint32 `json:"weight,omitempty"` + /** + * dynamic weight + */ + Dynamicconfwt uint32 `json:"dynamicconfwt,omitempty"` + /** + * cumlative weight + */ + Cumulativeweight uint32 `json:"cumulativeweight,omitempty"` + /** + * GSLB server state + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * The threshold value of the service + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + /** + * The cname of the gslb service + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroup_binding.go new file mode 100644 index 000000000..a17ea5646 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroup that can be bound to gslbdomain. +*/ +type Gslbdomainservicegroupbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroupmember_binding.go new file mode 100644 index 000000000..15617c80b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_servicegroupmember_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroupmember that can be bound to gslbdomain. +*/ +type Gslbdomainservicegroupmemberbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The Ip address of the service + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port Number + */ + Port int32 `json:"port,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * weight assigned + */ + Weight uint32 `json:"weight,omitempty"` + /** + * GSLB server state + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * The threshold value of the service + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_vserver_binding.go new file mode 100644 index 000000000..d833df534 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_vserver_binding.go @@ -0,0 +1,107 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the vserver that can be bound to gslbdomain. +*/ +type Gslbdomainvserverbinding struct { + Vservername string `json:"vservername,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The state of the vserver + */ + State string `json:"state,omitempty"` + /** + * The load balancing method set for the virtual server + */ + Lbmethod string `json:"lbmethod,omitempty"` + /** + * The IP type for this GSLB vserver. + */ + Dnsrecordtype string `json:"dnsrecordtype,omitempty"` + /** + * Indicates the backup method in case the primary fails + */ + Backuplbmethod string `json:"backuplbmethod,omitempty"` + /** + * Indicates if persistence is set on the gslb vserver + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * Send clients an empty DNS response when the GSLB virtual server is DOWN. + */ + Edr string `json:"edr,omitempty"` + Mir string `json:"mir,omitempty"` + /** + * Dynamic weight method of the vserver + */ + Dynamicweight string `json:"dynamicweight,omitempty"` + /** + * Time since last state change + */ + Statechangetimesec string `json:"statechangetimesec,omitempty"` + /** + * Indicates if Client IP option is enabled + */ + Cip string `json:"cip,omitempty"` + /** + * Persistence id of the gslb vserver + */ + Persistenceid uint32 `json:"persistenceid,omitempty"` + /** + * Netmask + */ + Netmask string `json:"netmask,omitempty"` + /** + * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. + */ + V6netmasklen uint32 `json:"v6netmasklen,omitempty"` + /** + * Name of the site to which the service belongs. + */ + Sitename string `json:"sitename,omitempty"` + /** + * Indicates the type of cookie persistence set + */ + Sitepersistence string `json:"sitepersistence,omitempty"` + /** + * The site prefix string. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. + */ + Customheaders string `json:"customheaders,omitempty"` + /** + * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. + */ + V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go new file mode 100644 index 000000000..de418a9a8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for LDNS entry resource. +*/ +type Gslbldnsentries struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Sitename string `json:"sitename,omitempty"` + Numsites string `json:"numsites,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + Ttl string `json:"ttl,omitempty"` + Name string `json:"name,omitempty"` + Rtt string `json:"rtt,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentry.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentry.go new file mode 100644 index 000000000..bcac61bb3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentry.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for LDNS entry resource. +*/ +type Gslbldnsentry struct { + /** + * IP address of the LDNS server. + */ + Ipaddress string `json:"ipaddress,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go new file mode 100644 index 000000000..2490d1fad --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for GSLB parameter resource. +*/ +type Gslbparameter struct { + /** + * Time, in seconds, after which an inactive LDNS entry is removed. + */ + Ldnsentrytimeout uint64 `json:"ldnsentrytimeout,omitempty"` + /** + * Tolerance, in milliseconds, for newly learned round-trip time (RTT) values. If the difference between the old RTT value and the newly computed RTT value is less than or equal to the specified tolerance value, the LDNS entry in the network metric table is not updated with the new RTT value. Prevents the exchange of metrics when variations in RTT values are negligible. + */ + Rtttolerance uint32 `json:"rtttolerance,omitempty"` + /** + * The IPv4 network mask with which to create LDNS entries. + */ + Ldnsmask string `json:"ldnsmask,omitempty"` + /** + * Mask for creating LDNS entries for IPv6 source addresses. The mask is defined as the number of leading bits to consider, in the source IP address, when creating an LDNS entry. + */ + V6ldnsmasklen uint32 `json:"v6ldnsmasklen,omitempty"` + /** + * Order in which monitors should be initiated to calculate RTT. + */ + Ldnsprobeorder []string `json:"ldnsprobeorder,omitempty"` + /** + * Drop LDNS requests if round-trip time (RTT) information is not available. + */ + Dropldnsreq string `json:"dropldnsreq,omitempty"` + /** + * Amount of delay in updating the state of GSLB service to DOWN when MEP goes down. + This parameter is applicable only if monitors are not bound to GSLB services + */ + Gslbsvcstatedelaytime uint64 `json:"gslbsvcstatedelaytime,omitempty"` + /** + * Time (in seconds) within which local or child site services remain in learning phase. GSLB site will enter the learning phase after reboot, HA failover, Cluster GSLB owner node changes or MEP being enabled on local node. Backup parent (if configured) will selectively move the adopted children's GSLB services to learning phase when primary parent goes down. While a service is in learning period, remote site will not honour the state and stats got through MEP for that service. State can be learnt from health monitor if bound explicitly. + */ + Svcstatelearningtime uint64 `json:"svcstatelearningtime,omitempty"` + /** + * GSLB configuration will be synced automatically to remote gslb sites if enabled. + */ + Automaticconfigsync string `json:"automaticconfigsync,omitempty"` + /** + * Time duartion (in seconds) during which if no new packets received by Local gslb site from Remote gslb site then mark the MEP connection DOWN + */ + Mepkeepalivetimeout uint64 `json:"mepkeepalivetimeout,omitempty"` + /** + * Time duartion (in seconds) for which the gslb sync process will wait before checking for config changes. + */ + Gslbsyncinterval uint64 `json:"gslbsyncinterval,omitempty"` + /** + * Mode in which configuration will be synced from master site to remote sites. + */ + Gslbsyncmode string `json:"gslbsyncmode,omitempty"` + /** + * If disabled, Location files will not be synced to the remote sites as part of automatic sync. + */ + Gslbsynclocfiles string `json:"gslbsynclocfiles,omitempty"` + /** + * If enabled, remote gslb site's rsync port will be monitored and site is considered for configuration sync only when the monitor is successful. + */ + Gslbconfigsyncmonitor string `json:"gslbconfigsyncmonitor,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Incarnation string `json:"incarnation,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbrunningconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbrunningconfig.go new file mode 100644 index 000000000..bfcb6bde5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbrunningconfig.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for running GSLB configuration resource. +*/ +type Gslbrunningconfig struct { + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go new file mode 100644 index 000000000..1044ebbce --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go @@ -0,0 +1,192 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for GSLB service resource. +*/ +type Gslbservice struct { + /** + * Name for the GSLB service. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the GSLB service is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my gslbsvc" or 'my gslbsvc'). + */ + Servicename string `json:"servicename,omitempty"` + /** + * Canonical name of the GSLB service. Used in CNAME-based GSLB. + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * IP address for the GSLB service. Should represent a load balancing, content switching, or VPN virtual server on the Citrix ADC, or the IP address of another load balancing device. + */ + Ip string `json:"ip,omitempty"` + /** + * Name of the server hosting the GSLB service. + */ + Servername string `json:"servername,omitempty"` + /** + * Type of service to create. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Port on which the load balancing entity represented by this GSLB service listens. + */ + Port int32 `json:"port,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int32 `json:"publicport,omitempty"` + /** + * The maximum number of open connections that the service can support at any given time. A GSLB service whose connection count reaches the maximum is not considered when a GSLB decision is made, until the connection count drops below the maximum. + */ + Maxclient uint32 `json:"maxclient,omitempty"` + /** + * Monitor the health of the GSLB service. + */ + Healthmonitor string `json:"healthmonitor,omitempty"` + /** + * Name of the GSLB site to which the service belongs. + */ + Sitename string `json:"sitename,omitempty"` + /** + * Enable or disable the service. + */ + State string `json:"state,omitempty"` + /** + * In the request that is forwarded to the GSLB service, insert a header that stores the client's IP address. Client IP header insertion is used in connection-proxy based site persistence. + */ + Cip string `json:"cip,omitempty"` + /** + * Name for the HTTP header that stores the client's IP address. Used with the Client IP option. If client IP header insertion is enabled on the service and a name is not specified for the header, the Citrix ADC uses the name specified by the cipHeader parameter in the set ns param command or, in the GUI, the Client IP Header parameter in the Configure HTTP Parameters dialog box. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Use cookie-based site persistence. Applicable only to HTTP and SSL GSLB services. + */ + Sitepersistence string `json:"sitepersistence,omitempty"` + /** + * Timeout value, in minutes, for the cookie, when cookie based site persistence is enabled. + */ + Cookietimeout uint32 `json:"cookietimeout,omitempty"` + /** + * The site's prefix string. When the service is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound service-domain pair by concatenating the site prefix of the service and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * Idle time, in seconds, after which a client connection is terminated. Applicable if connection proxy based site persistence is used. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Idle time, in seconds, after which a server connection is terminated. Applicable if connection proxy based site persistence is used. + */ + Svrtimeout uint64 `json:"svrtimeout,omitempty"` + /** + * Integer specifying the maximum bandwidth allowed for the service. A GSLB service whose bandwidth reaches the maximum is not considered when a GSLB decision is made, until its bandwidth consumption drops below the maximum. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Flush all active transactions associated with the GSLB service when its state transitions from UP to DOWN. Do not enable this option for services that must complete their transactions. Applicable if connection proxy based site persistence is used. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Maximum number of SSL VPN users that can be logged on concurrently to the VPN virtual server that is represented by this GSLB service. A GSLB service whose user count reaches the maximum is not considered when a GSLB decision is made, until the count drops below the maximum. + */ + Maxaaausers uint32 `json:"maxaaausers,omitempty"` + /** + * Monitoring threshold value for the GSLB service. If the sum of the weights of the monitors that are bound to this GSLB service and are in the UP state is not equal to or greater than this threshold value, the service is marked as DOWN. + */ + Monthreshold uint32 `json:"monthreshold,omitempty"` + /** + * Unique hash identifier for the GSLB service, used by hash based load balancing methods. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Any comments that you might want to associate with the GSLB service. + */ + Comment string `json:"comment,omitempty"` + /** + * Enable logging appflow flow information + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * The replacement domain name for this NAPTR. + */ + Naptrreplacement string `json:"naptrreplacement,omitempty"` + /** + * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest + */ + Naptrorder uint32 `json:"naptrorder,omitempty"` + /** + * Service Parameters applicable to this delegation path. + */ + Naptrservices string `json:"naptrservices,omitempty"` + /** + * Modify the TTL of the internally created naptr domain + */ + Naptrdomainttl uint64 `json:"naptrdomainttl,omitempty"` + /** + * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. + */ + Naptrpreference uint32 `json:"naptrpreference,omitempty"` + /** + * The new IP address of the service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. + */ + Viewname string `json:"viewname,omitempty"` + /** + * IP address to be used for the given view + */ + Viewip string `json:"viewip,omitempty"` + /** + * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Name of the monitor to bind to the service. + */ + Monitornamesvc string `json:"monitor_name_svc,omitempty"` + /** + * New name for the GSLB service. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Gslb string `json:"gslb,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + Gslbthreshold string `json:"gslbthreshold,omitempty"` + Gslbsvcstats string `json:"gslbsvcstats,omitempty"` + Monstate string `json:"monstate,omitempty"` + Preferredlocation string `json:"preferredlocation,omitempty"` + Monitorstate string `json:"monitor_state,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Threshold string `json:"threshold,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Gslbsvchealth string `json:"gslbsvchealth,omitempty"` + Glsbsvchealthdescr string `json:"glsbsvchealthdescr,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_binding.go new file mode 100644 index 000000000..839f79845 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding object which returns the resources bound to gslbservice_binding. +*/ +type Gslbservicebinding struct { + /** + * Name of the GSLB service.
Minimum value = + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_monitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_monitor_binding.go new file mode 100644 index 000000000..95eecea99 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_monitor_binding.go @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the monitor that can be bound to gslbservice. +*/ +type Gslbservicemonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * State of the monitor bound to gslb service. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * The total number of failed probs. + */ + Totalfailedprobes uint32 `json:"totalfailedprobes,omitempty"` + /** + * Number of the current failed monitoring probes. + */ + Failedprobes uint32 `json:"failedprobes,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int32 `json:"monstatcode,omitempty"` + /** + * First parameter for use with message code. + */ + Monstatparam1 int32 `json:"monstatparam1,omitempty"` + /** + * Second parameter for use with message code. + */ + Monstatparam2 int32 `json:"monstatparam2,omitempty"` + /** + * Third parameter for use with message code. + */ + Monstatparam3 int32 `json:"monstatparam3,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime uint64 `json:"responsetime,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Displays the gslb monitor status in string format. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Name of the GSLB service. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_view_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_view_binding.go new file mode 100644 index 000000000..3ecc2846d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_view_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the view that can be bound to gslbservice. +*/ +type Gslbserviceviewbinding struct { + /** + * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. + */ + Viewname string `json:"viewname,omitempty"` + /** + * IP address to be used for the given view + */ + Viewip string `json:"viewip,omitempty"` + /** + * Name of the GSLB service. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go new file mode 100644 index 000000000..b0ebbbce8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go @@ -0,0 +1,168 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for GSLB service group resource. +*/ +type Gslbservicegroup struct { + /** + * Name of the GSLB service group. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the name is created. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Protocol used to exchange data with the GSLB service. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Maximum number of simultaneous open connections for the GSLB service group. + */ + Maxclient uint32 `json:"maxclient,omitempty"` + /** + * Insert the Client IP header in requests forwarded to the GSLB service. + */ + Cip string `json:"cip,omitempty"` + /** + * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Monitor the health of this GSLB service.Available settings function are as follows: + YES - Send probes to check the health of the GSLB service. + NO - Do not send probes to check the health of the GSLB service. With the NO option, the appliance shows the service as UP at all times. + */ + Healthmonitor string `json:"healthmonitor,omitempty"` + /** + * Time, in seconds, after which to terminate an idle client connection. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Time, in seconds, after which to terminate an idle server connection. + */ + Svrtimeout uint64 `json:"svrtimeout,omitempty"` + /** + * Maximum bandwidth, in Kbps, allocated for all the services in the GSLB service group. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Minimum sum of weights of the monitors that are bound to this GSLB service. Used to determine whether to mark a GSLB service as UP or DOWN. + */ + Monthreshold uint32 `json:"monthreshold,omitempty"` + /** + * Initial state of the GSLB service group. + */ + State string `json:"state,omitempty"` + /** + * Flush all active transactions associated with all the services in the GSLB service group whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Any information about the GSLB service group. + */ + Comment string `json:"comment,omitempty"` + /** + * Enable logging of AppFlow information for the specified GSLB service group. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Auto scale option for a GSLB servicegroup + */ + Autoscale string `json:"autoscale,omitempty"` + /** + * Name of the GSLB site to which the service group belongs. + */ + Sitename string `json:"sitename,omitempty"` + /** + * Use cookie-based site persistence. Applicable only to HTTP and SSL non-autoscale enabled GSLB servicegroups. + */ + Sitepersistence string `json:"sitepersistence,omitempty"` + /** + * Name of the server to which to bind the service group. + */ + Servername string `json:"servername,omitempty"` + /** + * Server port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int32 `json:"publicport,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * Name of the monitor bound to the GSLB service group. Used to assign a weight to the monitor. + */ + Monitornamesvc string `json:"monitor_name_svc,omitempty"` + /** + * weight of the monitor that is bound to GSLB servicegroup. + */ + Dupweight uint32 `json:"dup_weight,omitempty"` + /** + * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. + */ + Delay uint64 `json:"delay,omitempty"` + /** + * Wait for all existing connections to the service to terminate before shutting down the service. + */ + Graceful string `json:"graceful,omitempty"` + /** + * Display the members of the listed GSLB service groups in addition to their settings. Can be specified when no service group name is provided in the command. In that case, the details displayed for each service group are identical to the details displayed when a service group name is provided, except that bound monitors are not displayed. + */ + Includemembers bool `json:"includemembers,omitempty"` + /** + * New name for the GSLB service group. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numofconnections string `json:"numofconnections,omitempty"` + Serviceconftype string `json:"serviceconftype,omitempty"` + Value string `json:"value,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Ip string `json:"ip,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Stateupdatereason string `json:"stateupdatereason,omitempty"` + Clmonowner string `json:"clmonowner,omitempty"` + Clmonview string `json:"clmonview,omitempty"` + Groupcount string `json:"groupcount,omitempty"` + Serviceipstr string `json:"serviceipstr,omitempty"` + Servicegroupeffectivestate string `json:"servicegroupeffectivestate,omitempty"` + Gslb string `json:"gslb,omitempty"` + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_binding.go new file mode 100644 index 000000000..813515d61 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding object which returns the resources bound to gslbservicegroup_binding. +*/ +type Gslbservicegroupbinding struct { + /** + * Name of the GSLB service group.
Minimum value = + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_monitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_monitor_binding.go new file mode 100644 index 000000000..367bbf780 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_monitor_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the monitor that can be bound to gslbservicegroup. +*/ +type Gslbservicegroupmonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * weight of the monitor that is bound to GSLB servicegroup. + */ + Monweight uint32 `json:"monweight,omitempty"` + /** + * Monitor state. + */ + Monstate string `json:"monstate,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the GSLB service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the GSLB service. Each service must have a unique port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int32 `json:"publicport,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go new file mode 100644 index 000000000..510a2eb93 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroupentitymonbindings that can be bound to gslbservicegroup. +*/ +type Gslbservicegroupservicegroupentitymonbindingsbinding struct { + Servicegroupentname2 string `json:"servicegroupentname2,omitempty"` + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Name of the GSLB service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the GSLB service. Each service must have a unique port number. + */ + Port int32 `json:"port,omitempty"` + /** + * When used along with monitor name, it specifies the weight of the monitor binding. When used along with servername & port pair, it specifies the weight of this GSLB service . + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int32 `json:"publicport,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go new file mode 100644 index 000000000..d328b37df --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupmember_binding.go @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroupmember that can be bound to gslbservicegroup. +*/ +type Gslbservicegroupservicegroupmemberbinding struct { + /** + * IP Address. + */ + Ip string `json:"ip,omitempty"` + /** + * Server port number. + */ + Port int32 `json:"port,omitempty"` + /** + * The state of the GSLB service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * Time when last state change occurred. Seconds part. + */ + Statechangetimesec string `json:"statechangetimesec,omitempty"` + /** + * Time in 10 millisecond ticks since the last state change. + */ + Tickssincelaststatechange uint32 `json:"tickssincelaststatechange,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Name of the server to which to bind the service group. + */ + Servername string `json:"servername,omitempty"` + /** + * Initial state of the GSLB service group. + */ + State string `json:"state,omitempty"` + /** + * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. + */ + Hashid uint32 `json:"hashid,omitempty"` + /** + * Wait for all existing connections to the service to terminate before shutting down the service. + */ + Graceful string `json:"graceful,omitempty"` + /** + * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. + */ + Delay uint64 `json:"delay,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int32 `json:"publicport,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + Threshold string `json:"threshold,omitempty"` + /** + * Prefered location. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * Name of the GSLB service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite.go new file mode 100644 index 000000000..cce793372 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite.go @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for GSLB site resource. +*/ +type Gslbsite struct { + /** + * Name for the GSLB site. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my gslbsite" or 'my gslbsite'). + */ + Sitename string `json:"sitename,omitempty"` + /** + * Type of site to create. If the type is not specified, the appliance automatically detects and sets the type on the basis of the IP address being assigned to the site. If the specified site IP address is owned by the appliance (for example, a MIP address or SNIP address), the site is a local site. Otherwise, it is a remote site. + */ + Sitetype string `json:"sitetype,omitempty"` + /** + * IP address for the GSLB site. The GSLB site uses this IP address to communicate with other GSLB sites. For a local site, use any IP address that is owned by the appliance (for example, a SNIP or MIP address, or the IP address of the ADNS service). + */ + Siteipaddress string `json:"siteipaddress,omitempty"` + /** + * Public IP address for the local site. Required only if the appliance is deployed in a private address space and the site has a public IP address hosted on an external firewall or a NAT device. + */ + Publicip string `json:"publicip,omitempty"` + /** + * Exchange metrics with other sites. Metrics are exchanged by using Metric Exchange Protocol (MEP). The appliances in the GSLB setup exchange health information once every second. + If you disable metrics exchange, you can use only static load balancing methods (such as round robin, static proximity, or the hash-based methods), and if you disable metrics exchange when a dynamic load balancing method (such as least connection) is in operation, the appliance falls back to round robin. Also, if you disable metrics exchange, you must use a monitor to determine the state of GSLB services. Otherwise, the service is marked as DOWN. + */ + Metricexchange string `json:"metricexchange,omitempty"` + /** + * Exchange, with other GSLB sites, network metrics such as round-trip time (RTT), learned from communications with various local DNS (LDNS) servers used by clients. RTT information is used in the dynamic RTT load balancing method, and is exchanged every 5 seconds. + */ + Nwmetricexchange string `json:"nwmetricexchange,omitempty"` + /** + * Exchange persistent session entries with other GSLB sites every five seconds. + */ + Sessionexchange string `json:"sessionexchange,omitempty"` + /** + * Specify the conditions under which the GSLB service must be monitored by a monitor, if one is bound. Available settings function as follows: + * ALWAYS - Monitor the GSLB service at all times. + * MEPDOWN - Monitor the GSLB service only when the exchange of metrics through the Metrics Exchange Protocol (MEP) is disabled. + MEPDOWN_SVCDOWN - Monitor the service in either of the following situations: + * The exchange of metrics through MEP is disabled. + * The exchange of metrics through MEP is enabled but the status of the service, learned through metrics exchange, is DOWN. + */ + Triggermonitor string `json:"triggermonitor,omitempty"` + /** + * Parent site of the GSLB site, in a parent-child topology. + */ + Parentsite string `json:"parentsite,omitempty"` + /** + * Cluster IP address. Specify this parameter to connect to the remote cluster site for GSLB auto-sync. Note: The cluster IP address is defined when creating the cluster. + */ + Clip string `json:"clip,omitempty"` + /** + * IP address to be used to globally access the remote cluster when it is deployed behind a NAT. It can be same as the normal cluster IP address. + */ + Publicclip string `json:"publicclip,omitempty"` + /** + * The naptr replacement suffix configured here will be used to construct the naptr replacement field in NAPTR record. + */ + Naptrreplacementsuffix string `json:"naptrreplacementsuffix,omitempty"` + /** + * The list of backup gslb sites configured in preferred order. Need to be parent gsb sites. + */ + Backupparentlist []string `json:"backupparentlist,omitempty"` + + //------- Read only Parameter ---------; + + Status string `json:"status,omitempty"` + Persistencemepstatus string `json:"persistencemepstatus,omitempty"` + Version string `json:"version,omitempty"` + Curbackupparentip string `json:"curbackupparentip,omitempty"` + Sitestate string `json:"sitestate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_binding.go new file mode 100644 index 000000000..dda7b5227 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding object which returns the resources bound to gslbsite_binding. +*/ +type Gslbsitebinding struct { + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed.
Minimum value = + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_service_binding.go new file mode 100644 index 000000000..df2bd1afb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_service_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the service that can be bound to gslbsite. +*/ +type Gslbsiteservicebinding struct { + /** + * Service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The cname of the gslb service. + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * IP Address of the gslb service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number of the gslb service. + */ + Port int32 `json:"port,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb service. + */ + State string `json:"state,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroup_binding.go new file mode 100644 index 000000000..53932bb6f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroup_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroup that can be bound to gslbsite. +*/ +type Gslbsiteservicegroupbinding struct { + /** + * Servicegroup name. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroupmember_binding.go new file mode 100644 index 000000000..cdb191538 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_servicegroupmember_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroupmember that can be bound to gslbsite. +*/ +type Gslbsiteservicegroupmemberbinding struct { + /** + * Servicegroup name. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * IP Address of the gslb service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number of the gslb service. + */ + Port int32 `json:"port,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb service. + */ + State string `json:"state,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsyncstatus.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsyncstatus.go new file mode 100644 index 000000000..77eddbf2d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsyncstatus.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for sync status resource. +*/ +type Gslbsyncstatus struct { + /** + * sync status summary to be displayed in one line (Success/Failure), in case of Failure stating reason for failure + */ + Summary bool `json:"summary,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go new file mode 100644 index 000000000..3de055a4c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go @@ -0,0 +1,224 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Configuration for Global Server Load Balancing Virtual Server resource. +*/ +type Gslbvserver struct { + /** + * Name for the GSLB virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Protocol used by services bound to the virtual server. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The IP type for this GSLB vserver. + */ + Iptype string `json:"iptype,omitempty"` + /** + * DNS record type to associate with the GSLB virtual server's domain name. + */ + Dnsrecordtype string `json:"dnsrecordtype,omitempty"` + /** + * Load balancing method for the GSLB virtual server. + */ + Lbmethod string `json:"lbmethod,omitempty"` + /** + * A non zero value enables the feature whose minimum value is 2 minutes. The feature can be disabled by setting the value to zero. The created session is in effect for a specific client per domain. + */ + Backupsessiontimeout uint32 `json:"backupsessiontimeout,omitempty"` + /** + * Backup load balancing method. Becomes operational if the primary load balancing method fails or cannot be used. Valid only if the primary method is based on either round-trip time (RTT) or static proximity. + */ + Backuplbmethod string `json:"backuplbmethod,omitempty"` + /** + * IPv4 network mask for use in the SOURCEIPHASH load balancing method. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. + */ + V6netmasklen uint32 `json:"v6netmasklen,omitempty"` + /** + * Expression, or name of a named expression, against which traffic is evaluated. + This field is applicable only if gslb method or gslb backup method are set to API. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * Site selection tolerance, in milliseconds, for implementing the RTT load balancing method. If a site's RTT deviates from the lowest RTT by more than the specified tolerance, the site is not considered when the Citrix ADC makes a GSLB decision. The appliance implements the round robin method of global server load balancing between sites whose RTT values are within the specified tolerance. If the tolerance is 0 (zero), the appliance always sends clients the IP address of the site with the lowest RTT. + */ + Tolerance uint32 `json:"tolerance,omitempty"` + /** + * Use source IP address based persistence for the virtual server. + After the load balancing method selects a service for the first packet, the IP address received in response to the DNS query is used for subsequent requests from the same client. + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * The persistence ID for the GSLB virtual server. The ID is a positive integer that enables GSLB sites to identify the GSLB virtual server, and is required if source IP address based or spill over based persistence is enabled on the virtual server. + */ + Persistenceid uint32 `json:"persistenceid,omitempty"` + /** + * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. + */ + V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + /** + * Idle time, in minutes, after which a persistence entry is cleared. + */ + Timeout uint32 `json:"timeout,omitempty"` + /** + * Send clients an empty DNS response when the GSLB virtual server is DOWN. + */ + Edr string `json:"edr,omitempty"` + /** + * If enabled, respond with EDNS Client Subnet (ECS) option in the response for a DNS query with ECS. The ECS address will be used for persistence and spillover persistence (if enabled) instead of the LDNS address. Persistence mask is ignored if ECS is enabled. + */ + Ecs string `json:"ecs,omitempty"` + /** + * Validate if ECS address is a private or unroutable address and in such cases, use the LDNS IP. + */ + Ecsaddrvalidation string `json:"ecsaddrvalidation,omitempty"` + /** + * Include multiple IP addresses in the DNS responses sent to clients. + */ + Mir string `json:"mir,omitempty"` + /** + * Continue to direct traffic to the backup chain even after the primary GSLB virtual server returns to the UP state. Used when spillover is configured for the virtual server. + */ + Disableprimaryondown string `json:"disableprimaryondown,omitempty"` + /** + * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. + */ + Dynamicweight string `json:"dynamicweight,omitempty"` + /** + * State of the GSLB virtual server. + */ + State string `json:"state,omitempty"` + /** + * If the primary state of all bound GSLB services is DOWN, consider the effective states of all the GSLB services, obtained through the Metrics Exchange Protocol (MEP), when determining the state of the GSLB virtual server. To consider the effective state, set the parameter to STATE_ONLY. To disregard the effective state, set the parameter to NONE. + The effective state of a GSLB service is the ability of the corresponding virtual server to serve traffic. The effective state of the load balancing virtual server, which is transferred to the GSLB service, is UP even if only one virtual server in the backup chain of virtual servers is in the UP state. + */ + Considereffectivestate string `json:"considereffectivestate,omitempty"` + /** + * Any comments that you might want to associate with the GSLB virtual server. + */ + Comment string `json:"comment,omitempty"` + /** + * Type of threshold that, when exceeded, triggers spillover. Available settings function as follows: + * CONNECTION - Spillover occurs when the number of client connections exceeds the threshold. + * DYNAMICCONNECTION - Spillover occurs when the number of client connections at the GSLB virtual server exceeds the sum of the maximum client (Max Clients) settings for bound GSLB services. Do not specify a spillover threshold for this setting, because the threshold is implied by the Max Clients settings of the bound GSLB services. + * BANDWIDTH - Spillover occurs when the bandwidth consumed by the GSLB virtual server's incoming and outgoing traffic exceeds the threshold. + * HEALTH - Spillover occurs when the percentage of weights of the GSLB services that are UP drops below the threshold. For example, if services gslbSvc1, gslbSvc2, and gslbSvc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if gslbSvc1 and gslbSvc3 or gslbSvc2 and gslbSvc3 transition to DOWN. + * NONE - Spillover does not occur. + */ + Somethod string `json:"somethod,omitempty"` + /** + * If spillover occurs, maintain source IP address based persistence for both primary and backup GSLB virtual servers. + */ + Sopersistence string `json:"sopersistence,omitempty"` + /** + * Timeout for spillover persistence, in minutes. + */ + Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + /** + * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). + */ + Sothreshold uint32 `json:"sothreshold,omitempty"` + /** + * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists + */ + Sobackupaction string `json:"sobackupaction,omitempty"` + /** + * Enable logging appflow flow information + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Name of the backup GSLB virtual server to which the appliance should to forward requests if the status of the primary GSLB virtual server is down or exceeds its spillover threshold. + */ + Backupvserver string `json:"backupvserver,omitempty"` + /** + * Name of the GSLB service for which to change the weight. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Weight to assign to the GSLB service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + /** + * Time to live (TTL) for the domain. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. + */ + Backupip string `json:"backupip,omitempty"` + /** + * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. + */ + Cookiedomain string `json:"cookie_domain,omitempty"` + /** + * Timeout, in minutes, for the GSLB site cookie. + */ + Cookietimeout uint32 `json:"cookietimeout,omitempty"` + /** + * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. + */ + Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + /** + * New name for the GSLB virtual server. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Curstate string `json:"curstate,omitempty"` + Status string `json:"status,omitempty"` + Lbrrreason string `json:"lbrrreason,omitempty"` + Iscname string `json:"iscname,omitempty"` + Sitepersistence string `json:"sitepersistence,omitempty"` + Totalservices string `json:"totalservices,omitempty"` + Activeservices string `json:"activeservices,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Health string `json:"health,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Type string `json:"type,omitempty"` + Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` + Vsvrbindsvcport string `json:"vsvrbindsvcport,omitempty"` + Servername string `json:"servername,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_binding.go new file mode 100644 index 000000000..e577308e7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding object which returns the resources bound to gslbvserver_binding. +*/ +type Gslbvserverbinding struct { + /** + * Name of the GSLB virtual server.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go new file mode 100644 index 000000000..51f8f0b44 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the domain that can be bound to gslbvserver. +*/ +type Gslbvserverdomainbinding struct { + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + /** + * Time to live (TTL) for the domain. + */ + Ttl uint64 `json:"ttl,omitempty"` + /** + * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. + */ + Backupip string `json:"backupip,omitempty"` + /** + * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. + */ + Cookiedomain string `json:"cookie_domain,omitempty"` + /** + * Timeout, in minutes, for the GSLB site cookie. + */ + Cookietimeout uint32 `json:"cookietimeout,omitempty"` + /** + * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. + */ + Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + /** + * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. + */ + Backupipflag bool `json:"backupipflag,omitempty"` + /** + * The cookie domain for the GSLB site. Used when inserting the GSLB site cookie in the HTTP response. + */ + Cookiedomainflag bool `json:"cookie_domainflag,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_policy_binding.go new file mode 100644 index 000000000..dc95abc9f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_policy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the policy that can be bound to gslbvserver. +*/ +type Gslbvserverpolicybinding struct { + /** + * Name of the policy bound to the GSLB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + o If gotoPriorityExpression is not present or if it is equal to END then the policy bank evaluation ends here + o Else if the gotoPriorityExpression is equal to NEXT then the next policy in the priority order is evaluated. + o Else gotoPriorityExpression is evaluated. The result of gotoPriorityExpression (which has to be a number) is processed as follows: + - An UNDEF event is triggered if + . gotoPriorityExpression cannot be evaluated + . gotoPriorityExpression evaluates to number which is smaller than the maximum priority in the policy bank but is not same as any policy's priority + . gotoPriorityExpression evaluates to a priority that is smaller than the current policy's priority + - If the gotoPriorityExpression evaluates to the priority of the current policy then the next policy in the priority order is evaluated. + - If the gotoPriorityExpression evaluates to the priority of a policy further ahead in the list then that policy will be evaluated next. + This field is applicable only to rewrite and responder policies. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Type string `json:"type,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_service_binding.go new file mode 100644 index 000000000..fad614a2a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_service_binding.go @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the service that can be bound to gslbvserver. +*/ +type Gslbvserverservicebinding struct { + /** + * Name of the GSLB service for which to change the weight. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Weight to assign to the GSLB service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * The cname of the gslb service. + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * IP address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Protocol used by services bound to the GSLBvirtual server. + */ + Gslbboundsvctype string `json:"gslbboundsvctype,omitempty"` + /** + * State of the gslb vserver. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight obtained by the virtue of bound service count or weight + */ + Dynamicconfwt uint32 `json:"dynamicconfwt,omitempty"` + /** + * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service + */ + Cumulativeweight uint32 `json:"cumulativeweight,omitempty"` + /** + * Effective state of the gslb svc + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + /** + * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Tells whether threshold exceeded for this service participating in CUSTOMLB + */ + Thresholdvalue int32 `json:"thresholdvalue,omitempty"` + /** + * is cname feature set on vserver + */ + Iscname string `json:"iscname,omitempty"` + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + /** + * This field is introduced for displaying the cookie in cluster setup. + */ + Sitepersistcookie string `json:"sitepersistcookie,omitempty"` + /** + * Type of Site Persistence set on the bound service + */ + Svcsitepersistence string `json:"svcsitepersistence,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroup_binding.go new file mode 100644 index 000000000..11dfefb7a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroup that can be bound to gslbvserver. +*/ +type Gslbvserverservicegroupbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroupmember_binding.go new file mode 100644 index 000000000..18849991f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_servicegroupmember_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the servicegroupmember that can be bound to gslbvserver. +*/ +type Gslbvserverservicegroupmemberbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * IP address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number. + */ + Port int32 `json:"port,omitempty"` + /** + * Protocol used by services bound to the virtual server. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb vserver. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight to assign to the GSLB service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. + */ + Dynamicweight string `json:"dynamicweight,omitempty"` + /** + * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Effective state of the gslb svc + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * Tells whether threshold exceeded for this service participating in CUSTOMLB + */ + Thresholdvalue int32 `json:"thresholdvalue,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int32 `json:"gslbthreshold,omitempty"` + /** + * This field is introduced for displaying the cookie in cluster setup. + */ + Sitepersistcookie string `json:"sitepersistcookie,omitempty"` + /** + * Type of Site Persistence set on the bound service + */ + Svcsitepersistence string `json:"svcsitepersistence,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go new file mode 100644 index 000000000..9518e7d2d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for LB group resource. +*/ +type Lbgroup struct { + /** + * Name of the load balancing virtual server group. + */ + Name string `json:"name,omitempty"` + /** + * Type of persistence for the group. Available settings function as follows: + * SOURCEIP - Create persistence sessions based on the client IP. + * COOKIEINSERT - Create persistence sessions based on a cookie in client requests. The cookie is inserted by a Set-Cookie directive from the server, in its first response to a client. + * RULE - Create persistence sessions based on a user defined rule. + * NONE - Disable persistence for the group. + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * Type of backup persistence for the group. + */ + Persistencebackup string `json:"persistencebackup,omitempty"` + /** + * Time period, in minutes, for which backup persistence is in effect. + */ + Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + /** + * Persistence mask to apply to source IPv4 addresses when creating source IP based persistence sessions. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. + */ + Cookiename string `json:"cookiename,omitempty"` + /** + * Persistence mask to apply to source IPv6 addresses when creating source IP based persistence sessions. + */ + V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + /** + * Domain attribute for the HTTP cookie. + */ + Cookiedomain string `json:"cookiedomain,omitempty"` + /** + * Time period for which a persistence session is in effect. + */ + Timeout uint32 `json:"timeout,omitempty"` + /** + * Expression, or name of a named expression, against which traffic is evaluated. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * Use this parameter to enable vserver level persistence on group members. This allows member vservers to have their own persistence, but need to be compatible with other members persistence rules. When this setting is enabled persistence sessions created by any of the members can be shared by other member vservers. + */ + Usevserverpersistency string `json:"usevserverpersistency,omitempty"` + /** + * When USE_VSERVER_PERSISTENCE is enabled, one can use this setting to designate a member vserver as master which is responsible to create the persistence sessions + */ + Mastervserver string `json:"mastervserver,omitempty"` + /** + * New name for the load balancing virtual server group. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Td string `json:"td,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_binding.go new file mode 100644 index 000000000..d406fcbe5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbgroup_binding. +*/ +type Lbgroupbinding struct { + /** + * Name of the load balancing virtual server group.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_vserver_binding.go new file mode 100644 index 000000000..0c2cbdb17 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_vserver_binding.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the vserver that can be bound to lbgroup. +*/ +type Lbgroupvserverbinding struct { + /** + * Virtual server name. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Name for the load balancing virtual server group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my lbgroup" or 'my lbgroup'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable.go new file mode 100644 index 000000000..4293a3a85 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable.go @@ -0,0 +1,43 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for metric table resource. +*/ +type Lbmetrictable struct { + /** + * Name for the metric table. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my metrictable" or 'my metrictable'). + */ + Metrictable string `json:"metrictable,omitempty"` + /** + * Name of the metric for which to change the SNMP OID. + */ + Metric string `json:"metric,omitempty"` + /** + * New SNMP OID of the metric. + */ + Snmpoid string `json:"Snmpoid,omitempty"` + + //------- Read only Parameter ---------; + + Metrictype string `json:"metrictype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_binding.go new file mode 100644 index 000000000..23f0bdd71 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbmetrictable_binding. +*/ +type Lbmetrictablebinding struct { + /** + * Name of the metric table.
Minimum value = + */ + Metrictable string `json:"metrictable,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_metric_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_metric_binding.go new file mode 100644 index 000000000..dd4d4369d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmetrictable_metric_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the metric that can be bound to lbmetrictable. +*/ +type Lbmetrictablemetricbinding struct { + /** + * Name of the metric for which to change the SNMP OID. + */ + Metric string `json:"metric,omitempty"` + /** + * New SNMP OID of the metric. + */ + Snmpoid string `json:"Snmpoid,omitempty"` + /** + * Indication if it is a configured or internal + */ + Metrictype string `json:"metrictype,omitempty"` + /** + * Name of the metric table. + */ + Metrictable string `json:"metrictable,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings.go new file mode 100644 index 000000000..0065e79dd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for monitro bindings resource. +*/ +type Lbmonbindings struct { + /** + * The name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + //------- Read only Parameter ---------; + + Type string `json:"type,omitempty"` + State string `json:"state,omitempty"` + Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_binding.go new file mode 100644 index 000000000..17e331c13 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbmonbindings_binding. +*/ +type Lbmonbindingsbinding struct { + /** + * The name of the monitor.
Minimum value = + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go new file mode 100644 index 000000000..b9966ad92 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the service that can be bound to lbmonbindings. +*/ +type Lbmonbindingsservicebinding struct { + /** + * The name of the service. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The IPAddress of the service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The port of the service. + */ + Port int32 `json:"port,omitempty"` + /** + * The type of service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The state of the service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * The configured state (enable/disable) of Monitor on this service. + */ + Monsvcstate string `json:"monsvcstate,omitempty"` + /** + * The name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_servicegroup_binding.go new file mode 100644 index 000000000..32bde78fa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_servicegroup_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the servicegroup that can be bound to lbmonbindings. +*/ +type Lbmonbindingsservicegroupbinding struct { + /** + * The name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The type of service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The state of the servicegroup. + */ + Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` + /** + * The configured state (enable/disable) of Monitor on this service. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go new file mode 100644 index 000000000..555db7fc4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go @@ -0,0 +1,466 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for monitor resource. +*/ +type Lbmonitor struct { + /** + * Name for the monitor. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my monitor" or 'my monitor'). + */ + Monitorname string `json:"monitorname,omitempty"` + /** + * Type of monitor that you want to create. + */ + Type string `json:"type,omitempty"` + /** + * Action to perform when the response to an inline monitor (a monitor of type HTTP-INLINE) indicates that the service is down. A service monitored by an inline monitor is considered DOWN if the response code is not one of the codes that have been specified for the Response Code parameter. + Available settings function as follows: + * NONE - Do not take any action. However, the show service command and the show lb monitor command indicate the total number of responses that were checked and the number of consecutive error responses received after the last successful probe. + * LOG - Log the event in NSLOG or SYSLOG. + * DOWN - Mark the service as being down, and then do not direct any traffic to the service until the configured down time has expired. Persistent connections to the service are terminated as soon as the service is marked as DOWN. Also, log the event in NSLOG or SYSLOG. + */ + Action string `json:"action,omitempty"` + /** + * Response codes for which to mark the service as UP. For any other response code, the action performed depends on the monitor type. HTTP monitors and RADIUS monitors mark the service as DOWN, while HTTP-INLINE monitors perform the action indicated by the Action parameter. + */ + Respcode []string `json:"respcode,omitempty"` + /** + * HTTP request to send to the server (for example, "HEAD /file.html"). + */ + Httprequest string `json:"httprequest,omitempty"` + /** + * RTSP request to send to the server (for example, "OPTIONS *"). + */ + Rtsprequest string `json:"rtsprequest,omitempty"` + /** + * Custom header string to include in the monitoring probes. + */ + Customheaders string `json:"customheaders,omitempty"` + /** + * Maximum number of hops that the SIP request used for monitoring can traverse to reach the server. Applicable only to monitors of type SIP-UDP. + */ + Maxforwards uint32 `json:"maxforwards,omitempty"` + /** + * SIP method to use for the query. Applicable only to monitors of type SIP-UDP. + */ + Sipmethod string `json:"sipmethod,omitempty"` + /** + * SIP URI string to send to the service (for example, sip:sip.test). Applicable only to monitors of type SIP-UDP. + */ + Sipuri string `json:"sipuri,omitempty"` + /** + * SIP user to be registered. Applicable only if the monitor is of type SIP-UDP and the SIP Method parameter is set to REGISTER. + */ + Sipreguri string `json:"sipreguri,omitempty"` + /** + * String to send to the service. Applicable to TCP-ECV, HTTP-ECV, and UDP-ECV monitors. + */ + Send string `json:"send,omitempty"` + /** + * String expected from the server for the service to be marked as UP. Applicable to TCP-ECV, HTTP-ECV, and UDP-ECV monitors. + */ + Recv string `json:"recv,omitempty"` + /** + * Domain name to resolve as part of monitoring the DNS service (for example, example.com). + */ + Query string `json:"query,omitempty"` + /** + * Type of DNS record for which to send monitoring queries. Set to Address for querying A records, AAAA for querying AAAA records, and Zone for querying the SOA record. + */ + Querytype string `json:"querytype,omitempty"` + /** + * Path and name of the script to execute. The script must be available on the Citrix ADC, in the /nsconfig/monitors/ directory. + */ + Scriptname string `json:"scriptname,omitempty"` + /** + * String of arguments for the script. The string is copied verbatim into the request. + */ + Scriptargs string `json:"scriptargs,omitempty"` + /** + * IP address of the dispatcher to which to send the probe. + */ + Dispatcherip string `json:"dispatcherip,omitempty"` + /** + * Port number on which the dispatcher listens for the monitoring probe. + */ + Dispatcherport int32 `json:"dispatcherport,omitempty"` + /** + * User name with which to probe the RADIUS, NNTP, FTP, FTP-EXTENDED, MYSQL, MSSQL, POP3, CITRIX-AG, CITRIX-XD-DDC, CITRIX-WI-EXTENDED, CITRIX-XNC or CITRIX-XDM server. + */ + Username string `json:"username,omitempty"` + /** + * Password that is required for logging on to the RADIUS, NNTP, FTP, FTP-EXTENDED, MYSQL, MSSQL, POP3, CITRIX-AG, CITRIX-XD-DDC, CITRIX-WI-EXTENDED, CITRIX-XNC-ECV or CITRIX-XDM server. Used in conjunction with the user name specified for the User Name parameter. + */ + Password string `json:"password,omitempty"` + /** + * Secondary password that users might have to provide to log on to the Access Gateway server. Applicable to CITRIX-AG monitors. + */ + Secondarypassword string `json:"secondarypassword,omitempty"` + /** + * Name of the logon point that is configured for the Citrix Access Gateway Advanced Access Control software. Required if you want to monitor the associated login page or Logon Agent. Applicable to CITRIX-AAC-LAS and CITRIX-AAC-LOGINPAGE monitors. + */ + Logonpointname string `json:"logonpointname,omitempty"` + /** + * Version number of the Citrix Advanced Access Control Logon Agent. Required by the CITRIX-AAC-LAS monitor. + */ + Lasversion string `json:"lasversion,omitempty"` + /** + * Authentication key (shared secret text string) for RADIUS clients and servers to exchange. Applicable to monitors of type RADIUS and RADIUS_ACCOUNTING. + */ + Radkey string `json:"radkey,omitempty"` + /** + * NAS-Identifier to send in the Access-Request packet. Applicable to monitors of type RADIUS. + */ + Radnasid string `json:"radnasid,omitempty"` + /** + * Network Access Server (NAS) IP address to use as the source IP address when monitoring a RADIUS server. Applicable to monitors of type RADIUS and RADIUS_ACCOUNTING. + */ + Radnasip string `json:"radnasip,omitempty"` + /** + * Account Type to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. + */ + Radaccounttype uint32 `json:"radaccounttype,omitempty"` + /** + * Source ip with which the packet will go out . Applicable to monitors of type RADIUS_ACCOUNTING. + */ + Radframedip string `json:"radframedip,omitempty"` + /** + * Called Station Id to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. + */ + Radapn string `json:"radapn,omitempty"` + /** + * Calling Stations Id to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. + */ + Radmsisdn string `json:"radmsisdn,omitempty"` + /** + * Account Session ID to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. + */ + Radaccountsession string `json:"radaccountsession,omitempty"` + /** + * Calculate the least response times for bound services. If this parameter is not enabled, the appliance does not learn the response times of the bound services. Also used for LRTM load balancing. + */ + Lrtm string `json:"lrtm,omitempty"` + /** + * Time value added to the learned average response time in dynamic response time monitoring (DRTM). When a deviation is specified, the appliance learns the average response time of bound services and adds the deviation to the average. The final value is then continually adjusted to accommodate response time variations over time. Specified in milliseconds, seconds, or minutes. + */ + Deviation uint32 `json:"deviation,omitempty"` + /** + * Unit of measurement for the Deviation parameter. Cannot be changed after the monitor is created. + */ + Units1 string `json:"units1,omitempty"` + /** + * Time interval between two successive probes. Must be greater than the value of Response Time-out. + */ + Interval int32 `json:"interval,omitempty"` + /** + * monitor interval units + */ + Units3 string `json:"units3,omitempty"` + /** + * Amount of time for which the appliance must wait before it marks a probe as FAILED. Must be less than the value specified for the Interval parameter. + Note: For UDP-ECV monitors for which a receive string is not configured, response timeout does not apply. For UDP-ECV monitors with no receive string, probe failure is indicated by an ICMP port unreachable error received from the service. + */ + Resptimeout int32 `json:"resptimeout,omitempty"` + /** + * monitor response timeout units + */ + Units4 string `json:"units4,omitempty"` + /** + * Response time threshold, specified as a percentage of the Response Time-out parameter. If the response to a monitor probe has not arrived when the threshold is reached, the appliance generates an SNMP trap called monRespTimeoutAboveThresh. After the response time returns to a value below the threshold, the appliance generates a monRespTimeoutBelowThresh SNMP trap. For the traps to be generated, the "MONITOR-RTO-THRESHOLD" alarm must also be enabled. + */ + Resptimeoutthresh uint32 `json:"resptimeoutthresh,omitempty"` + /** + * Maximum number of probes to send to establish the state of a service for which a monitoring probe failed. + */ + Retries int32 `json:"retries,omitempty"` + /** + * Number of retries that must fail, out of the number specified for the Retries parameter, for a service to be marked as DOWN. For example, if the Retries parameter is set to 10 and the Failure Retries parameter is set to 6, out of the ten probes sent, at least six probes must fail if the service is to be marked as DOWN. The default value of 0 means that all the retries must fail if the service is to be marked as DOWN. + */ + Failureretries int32 `json:"failureretries,omitempty"` + /** + * Number of consecutive probe failures after which the appliance generates an SNMP trap called monProbeFailed. + */ + Alertretries int32 `json:"alertretries,omitempty"` + /** + * Number of consecutive successful probes required to transition a service's state from DOWN to UP. + */ + Successretries int32 `json:"successretries,omitempty"` + /** + * Time duration for which to wait before probing a service that has been marked as DOWN. Expressed in milliseconds, seconds, or minutes. + */ + Downtime int32 `json:"downtime,omitempty"` + /** + * Unit of measurement for the Down Time parameter. Cannot be changed after the monitor is created. + */ + Units2 string `json:"units2,omitempty"` + /** + * IP address of the service to which to send probes. If the parameter is set to 0, the IP address of the server to which the monitor is bound is considered the destination IP address. + */ + Destip string `json:"destip,omitempty"` + /** + * TCP or UDP port to which to send the probe. If the parameter is set to 0, the port number of the service to which the monitor is bound is considered the destination port. For a monitor of type USER, however, the destination port is the port number that is included in the HTTP request sent to the dispatcher. Does not apply to monitors of type PING. + */ + Destport int32 `json:"destport,omitempty"` + /** + * State of the monitor. The DISABLED setting disables not only the monitor being configured, but all monitors of the same type, until the parameter is set to ENABLED. If the monitor is bound to a service, the state of the monitor is not taken into account when the state of the service is determined. + */ + State string `json:"state,omitempty"` + /** + * Mark a service as DOWN, instead of UP, when probe criteria are satisfied, and as UP instead of DOWN when probe criteria are not satisfied. + */ + Reverse string `json:"reverse,omitempty"` + /** + * The monitor is bound to a transparent device such as a firewall or router. The state of a transparent device depends on the responsiveness of the services behind it. If a transparent device is being monitored, a destination IP address must be specified. The probe is sent to the specified IP address by using the MAC address of the transparent device. + */ + Transparent string `json:"transparent,omitempty"` + /** + * Send the monitoring probe to the service through an IP tunnel. A destination IP address must be specified. + */ + Iptunnel string `json:"iptunnel,omitempty"` + /** + * Probe the service by encoding the destination IP address in the IP TOS (6) bits. + */ + Tos string `json:"tos,omitempty"` + /** + * The TOS ID of the specified destination IP. Applicable only when the TOS parameter is set. + */ + Tosid uint32 `json:"tosid,omitempty"` + /** + * Use a secure SSL connection when monitoring a service. Applicable only to TCP based monitors. The secure option cannot be used with a CITRIX-AG monitor, because a CITRIX-AG monitor uses a secure connection by default. + */ + Secure string `json:"secure,omitempty"` + /** + * Validate the credentials of the Xen Desktop DDC server user. Applicable to monitors of type CITRIX-XD-DDC. + */ + Validatecred string `json:"validatecred,omitempty"` + /** + * Domain in which the XenDesktop Desktop Delivery Controller (DDC) servers or Web Interface servers are present. Required by CITRIX-XD-DDC and CITRIX-WI-EXTENDED monitors for logging on to the DDC servers and Web Interface servers, respectively. + */ + Domain string `json:"domain,omitempty"` + /** + * Set of IP addresses expected in the monitoring response from the DNS server, if the record type is A or AAAA. Applicable to DNS monitors. + */ + Ipaddress []string `json:"ipaddress,omitempty"` + /** + * Name of a newsgroup available on the NNTP service that is to be monitored. The appliance periodically generates an NNTP query for the name of the newsgroup and evaluates the response. If the newsgroup is found on the server, the service is marked as UP. If the newsgroup does not exist or if the search fails, the service is marked as DOWN. Applicable to NNTP monitors. + */ + Group string `json:"group,omitempty"` + /** + * Name of a file on the FTP server. The appliance monitors the FTP service by periodically checking the existence of the file on the server. Applicable to FTP-EXTENDED monitors. + */ + Filename string `json:"filename,omitempty"` + /** + * The base distinguished name of the LDAP service, from where the LDAP server can begin the search for the attributes in the monitoring query. Required for LDAP service monitoring. + */ + Basedn string `json:"basedn,omitempty"` + /** + * The distinguished name with which an LDAP monitor can perform the Bind operation on the LDAP server. Optional. Applicable to LDAP monitors. + */ + Binddn string `json:"binddn,omitempty"` + /** + * Filter criteria for the LDAP query. Optional. + */ + Filter string `json:"filter,omitempty"` + /** + * Attribute to evaluate when the LDAP server responds to the query. Success or failure of the monitoring probe depends on whether the attribute exists in the response. Optional. + */ + Attribute string `json:"attribute,omitempty"` + /** + * Name of the database to connect to during authentication. + */ + Database string `json:"database,omitempty"` + /** + * Name of the service identifier that is used to connect to the Oracle database during authentication. + */ + Oraclesid string `json:"oraclesid,omitempty"` + /** + * SQL query for a MYSQL-ECV or MSSQL-ECV monitor. Sent to the database server after the server authenticates the connection. + */ + Sqlquery string `json:"sqlquery,omitempty"` + /** + * Expression that evaluates the database server's response to a MYSQL-ECV or MSSQL-ECV monitoring query. Must produce a Boolean result. The result determines the state of the server. If the expression returns TRUE, the probe succeeds. + For example, if you want the appliance to evaluate the error message to determine the state of the server, use the rule MYSQL.RES.ROW(10) .TEXT_ELEM(2).EQ("MySQL"). + */ + Evalrule string `json:"evalrule,omitempty"` + /** + * Version of MSSQL server that is to be monitored. + */ + Mssqlprotocolversion string `json:"mssqlprotocolversion,omitempty"` + /** + * SNMP OID for SNMP monitors. + */ + Snmpoid string `json:"Snmpoid,omitempty"` + /** + * Community name for SNMP monitors. + */ + Snmpcommunity string `json:"snmpcommunity,omitempty"` + /** + * Threshold for SNMP monitors. + */ + Snmpthreshold string `json:"snmpthreshold,omitempty"` + /** + * SNMP version to be used for SNMP monitors. + */ + Snmpversion string `json:"snmpversion,omitempty"` + /** + * Metric table to which to bind metrics. + */ + Metrictable string `json:"metrictable,omitempty"` + /** + * Name of the application used to determine the state of the service. Applicable to monitors of type CITRIX-XML-SERVICE. + */ + Application string `json:"application,omitempty"` + /** + * URL of the logon page. For monitors of type CITRIX-WEB-INTERFACE, to monitor a dynamic page under the site path, terminate the site path with a slash (/). Applicable to CITRIX-WEB-INTERFACE, CITRIX-WI-EXTENDED and CITRIX-XDM monitors. + */ + Sitepath string `json:"sitepath,omitempty"` + /** + * Store Name. For monitors of type STOREFRONT, STORENAME is an optional argument defining storefront service store name. Applicable to STOREFRONT monitors. + */ + Storename string `json:"storename,omitempty"` + /** + * Enable/Disable probing for Account Service. Applicable only to Store Front monitors. For multi-tenancy configuration users my skip account service + */ + Storefrontacctservice string `json:"storefrontacctservice,omitempty"` + /** + * Hostname in the FQDN format (Example: porche.cars.org). Applicable to STOREFRONT monitors. + */ + Hostname string `json:"hostname,omitempty"` + /** + * Name of the network profile. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * Origin-Host value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Originhost string `json:"originhost,omitempty"` + /** + * Origin-Realm value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Originrealm string `json:"originrealm,omitempty"` + /** + * Host-IP-Address value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. If Host-IP-Address is not specified, the appliance inserts the mapped IP (MIP) address or subnet IP (SNIP) address from which the CER request (the monitoring probe) is sent. + */ + Hostipaddress string `json:"hostipaddress,omitempty"` + /** + * Vendor-Id value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Vendorid uint32 `json:"vendorid,omitempty"` + /** + * Product-Name value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Productname string `json:"productname,omitempty"` + /** + * Firmware-Revision value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Firmwarerevision uint32 `json:"firmwarerevision,omitempty"` + /** + * List of Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring CER message. + */ + Authapplicationid []uint32 `json:"authapplicationid,omitempty"` + /** + * List of Acct-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. + */ + Acctapplicationid []uint32 `json:"acctapplicationid,omitempty"` + /** + * Inband-Security-Id for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. + */ + Inbandsecurityid string `json:"inbandsecurityid,omitempty"` + /** + * List of Supported-Vendor-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum eight of these AVPs are supported in a monitoring message. + */ + Supportedvendorids []uint32 `json:"supportedvendorids,omitempty"` + /** + * Vendor-Id to use in the Vendor-Specific-Application-Id grouped attribute-value pair (AVP) in the monitoring CER message. To specify Auth-Application-Id or Acct-Application-Id in Vendor-Specific-Application-Id, use vendorSpecificAuthApplicationIds or vendorSpecificAcctApplicationIds, respectively. Only one Vendor-Id is supported for all the Vendor-Specific-Application-Id AVPs in a CER monitoring message. + */ + Vendorspecificvendorid uint32 `json:"vendorspecificvendorid,omitempty"` + /** + * List of Vendor-Specific-Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. + */ + Vendorspecificauthapplicationids []uint32 `json:"vendorspecificauthapplicationids,omitempty"` + /** + * List of Vendor-Specific-Acct-Application-Id attribute value pairs (AVPs) to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. + */ + Vendorspecificacctapplicationids []uint32 `json:"vendorspecificacctapplicationids,omitempty"` + /** + * KCD Account used by MSSQL monitor + */ + Kcdaccount string `json:"kcdaccount,omitempty"` + /** + * Store the database list populated with the responses to monitor probes. Used in database specific load balancing if MSSQL-ECV/MYSQL-ECV monitor is configured. + */ + Storedb string `json:"storedb,omitempty"` + /** + * This option will enable monitoring of services running on storefront server. Storefront services are monitored by probing to a Windows service that runs on the Storefront server and exposes details of which storefront services are running. + */ + Storefrontcheckbackendservices string `json:"storefrontcheckbackendservices,omitempty"` + /** + * Code expected when the server is under maintenance + */ + Trofscode uint32 `json:"trofscode,omitempty"` + /** + * String expected from the server for the service to be marked as trofs. Applicable to HTTP-ECV/TCP-ECV monitors. + */ + Trofsstring string `json:"trofsstring,omitempty"` + /** + * SSL Profile associated with the monitor + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Client id to be used in Connect command + */ + Mqttclientidentifier string `json:"mqttclientidentifier,omitempty"` + /** + * Version of MQTT protocol used in connect message, default is version 3.1.1 [4] + */ + Mqttversion uint32 `json:"mqttversion,omitempty"` + /** + * Metric name in the metric table, whose setting is changed. A value zero disables the metric and it will not be used for load calculation + */ + Metric string `json:"metric,omitempty"` + /** + * Threshold to be used for that metric. + */ + Metricthreshold uint64 `json:"metricthreshold,omitempty"` + /** + * The weight for the specified service metric with respect to others. + */ + Metricweight uint32 `json:"metricweight,omitempty"` + /** + * The name of the service to which the monitor is bound. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The name of the service group to which the monitor is to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + //------- Read only Parameter ---------; + + Lrtmconf string `json:"lrtmconf,omitempty"` + Lrtmconfstr string `json:"lrtmconfstr,omitempty"` + Dynamicresponsetimeout string `json:"dynamicresponsetimeout,omitempty"` + Dynamicinterval string `json:"dynamicinterval,omitempty"` + Multimetrictable string `json:"multimetrictable,omitempty"` + Dupstate string `json:"dup_state,omitempty"` + Dupweight string `json:"dup_weight,omitempty"` + Weight string `json:"weight,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_binding.go new file mode 100644 index 000000000..eb7013099 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbmonitor_binding. +*/ +type Lbmonitorbinding struct { + /** + * Name of the monitor.
Minimum value = + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_certkey_binding.go new file mode 100644 index 000000000..78d9e8014 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_certkey_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the certkey that can be bound to lbmonitor. +*/ +type Lbmonitorcertkeybinding struct { + /** + * The name of the certificate bound to the monitor. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The rule for use of CRL corresponding to this CA certificate during client authentication. If crlCheck is set to Mandatory, the system will deny all SSL clients if the CRL is missing, expired - NextUpdate date is in the past, or is incomplete with remote CRL refresh enabled. If crlCheck is set to optional, the system will allow SSL clients in the above error cases.However, in any case if the client certificate is revoked in the CRL, the SSL client will be denied access. + */ + Ca bool `json:"ca,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go new file mode 100644 index 000000000..76fb19c80 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the metric that can be bound to lbmonitor. +*/ +type Lbmonitormetricbinding struct { + /** + * Metric name in the metric table, whose setting is changed. A value zero disables the metric and it will not be used for load calculation + */ + Metric string `json:"metric,omitempty"` + /** + * Metric table to which to bind metrics. + */ + Metrictable string `json:"metrictable,omitempty"` + /** + * Giving the unit of the metric + */ + Metricunit string `json:"metric_unit,omitempty"` + /** + * The weight for the specified service metric with respect to others. + */ + Metricweight uint32 `json:"metricweight,omitempty"` + /** + * Threshold to be used for that metric. + */ + Metricthreshold uint64 `json:"metricthreshold,omitempty"` + /** + * Name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go new file mode 100644 index 000000000..6c3ff557d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the service that can be bound to lbmonitor. +*/ +type Lbmonitorservicebinding struct { + /** + * Name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + /** + * Name of the service or service group. + */ + Servicename string `json:"servicename,omitempty"` + /** + * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. + */ + Dupstate string `json:"dup_state,omitempty"` + /** + * Weight to assign to the binding between the monitor and service. + */ + Dupweight uint32 `json:"dup_weight,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. + */ + State string `json:"state,omitempty"` + /** + * Weight to assign to the binding between the monitor and service. + */ + Weight uint32 `json:"weight,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go new file mode 100644 index 000000000..306d29029 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the servicegroup that can be bound to lbmonitor. +*/ +type Lbmonitorservicegroupbinding struct { + /** + * Name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + /** + * Name of the service or service group. + */ + Servicename string `json:"servicename,omitempty"` + /** + * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. + */ + Dupstate string `json:"dup_state,omitempty"` + /** + * Weight to assign to the binding between the monitor and service. + */ + Dupweight uint32 `json:"dup_weight,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * State of the monitor. The state setting for a monitor of a given type affects all monitors of that type. For example, if an HTTP monitor is enabled, all HTTP monitors on the appliance are (or remain) enabled. If an HTTP monitor is disabled, all HTTP monitors on the appliance are disabled. + */ + State string `json:"state,omitempty"` + /** + * Weight to assign to the binding between the monitor and service. + */ + Weight uint32 `json:"weight,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go new file mode 100644 index 000000000..a1cb7bd04 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go @@ -0,0 +1,134 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for LB parameter resource. +*/ +type Lbparameter struct { + /** + * Include the HttpOnly attribute in persistence cookies. The HttpOnly attribute limits the scope of a cookie to HTTP requests and helps mitigate the risk of cross-site scripting attacks. + */ + Httponlycookieflag string `json:"httponlycookieflag,omitempty"` + /** + * Encode persistence cookie values using SHA2 hash. + */ + Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` + /** + * Encode persistence cookie values using SHA2 hash. + */ + Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` + /** + * Use this parameter to specify the passphrase used to generate secured persistence cookie value. It specifies the passphrase with a maximum of 31 characters. + */ + Cookiepassphrase string `json:"cookiepassphrase,omitempty"` + /** + * To find the service with the fewest connections, the virtual server uses the consolidated connection statistics from all the packet engines. The NO setting allows consideration of only the number of connections on the packet engine that received the new connection. + */ + Consolidatedlconn string `json:"consolidatedlconn,omitempty"` + /** + * Include the port number of the service when creating a hash for hash based load balancing methods. With the NO setting, only the IP address of the service is considered when creating a hash. + */ + Useportforhashlb string `json:"useportforhashlb,omitempty"` + /** + * Perform route lookup for traffic received by the Citrix ADC, and forward the traffic according to configured routes. Do not set this parameter if you want a wildcard virtual server to direct packets received by the appliance to an intermediary device, such as a firewall, even if their destination is directly connected to the appliance. Route lookup is performed after the packets have been processed and returned by the intermediary device. + */ + Preferdirectroute string `json:"preferdirectroute,omitempty"` + /** + * Number of requests, per service, for which to apply the round robin load balancing method before switching to the configured load balancing method, thus allowing services to ramp up gradually to full load. Until the specified number of requests is distributed, the Citrix ADC is said to be implementing the slow start mode (or startup round robin). Implemented for a virtual server when one of the following is true: + * The virtual server is newly created. + * One or more services are newly bound to the virtual server. + * One or more services bound to the virtual server are enabled. + * The load balancing method is changed. + This parameter applies to all the load balancing virtual servers configured on the Citrix ADC, except for those virtual servers for which the virtual server-level slow start parameters (New Service Startup Request Rate and Increment Interval) are configured. If the global slow start parameter and the slow start parameters for a given virtual server are not set, the appliance implements a default slow start for the virtual server, as follows: + * For a newly configured virtual server, the appliance implements slow start for the first 100 requests received by the virtual server. + * For an existing virtual server, if one or more services are newly bound or newly enabled, or if the load balancing method is changed, the appliance dynamically computes the number of requests for which to implement startup round robin. It obtains this number by multiplying the request rate by the number of bound services (it includes services that are marked as DOWN). For example, if the current request rate is 20 requests/s and ten services are bound to the virtual server, the appliance performs startup round robin for 200 requests. + Not applicable to a virtual server for which a hash based load balancing method is configured. + */ + Startuprrfactor uint32 `json:"startuprrfactor,omitempty"` + /** + * When a monitor initiates a connection to a service, do not check to determine whether the number of connections to the service has reached the limit specified by the service's Max Clients setting. Enables monitoring to continue even if the service has reached its connection limit. + */ + Monitorskipmaxclient string `json:"monitorskipmaxclient,omitempty"` + /** + * Close monitoring connections by sending the service a connection termination message with the specified bit set. + */ + Monitorconnectionclose string `json:"monitorconnectionclose,omitempty"` + /** + * Allow a MAC-mode virtual server to accept traffic returned by an intermediary device, such as a firewall, to which the traffic was previously forwarded by another MAC-mode virtual server. The second virtual server can then distribute that traffic across the destination server farm. Also useful when load balancing Branch Repeater appliances. + Note: The second virtual server can also send the traffic to another set of intermediary devices, such as another set of firewalls. If necessary, you can configure multiple MAC-mode virtual servers to pass traffic successively through multiple sets of intermediary devices. + */ + Vserverspecificmac string `json:"vserverspecificmac,omitempty"` + /** + * This is used, to enable/disable the option of svc/svcgroup removal, if it is bound to one or more vserver. If it is enabled, the svc/svcgroup can be removed, even if it bound to vservers. If disabled, an error will be thrown, when the user tries to remove a svc/svcgroup without unbinding from its vservers. + */ + Allowboundsvcremoval string `json:"allowboundsvcremoval,omitempty"` + /** + * This option is used to retain the original state of service or servicegroup member when an enable server command is issued. + */ + Retainservicestate string `json:"retainservicestate,omitempty"` + /** + * Specify the TTL for DNS record for domain based service. The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl uint64 `json:"dbsttl,omitempty"` + /** + * Maximum number of concurrent requests to allow on a single client connection, which is identified by the - tuple. This parameter is applicable to ANY service type and all UDP service types (except DNS) and only when "svrTimeout" is set to zero. A value of 0 (zero) applies no limit to the number of concurrent requests allowed on a single client connection + */ + Maxpipelinenat uint32 `json:"maxpipelinenat,omitempty"` + /** + * String configured as LiteralADCCookieAttribute will be appended as attribute for Citrix ADC cookie (for example: LB cookie persistence , GSLB site persistence, CS cookie persistence, LB group cookie persistence). + Sample usage - + set lb parameter -LiteralADCCookieAttribute ";SameSite=None" + */ + Literaladccookieattribute string `json:"literaladccookieattribute,omitempty"` + /** + * ComputedADCCookieAttribute accepts ns variable as input in form of string starting with $ (to understand how to configure ns variable, please check man add ns variable). policies can be configured to modify this variable for every transaction and the final value of the variable after policy evaluation will be appended as attribute to Citrix ADC cookie (for example: LB cookie persistence , GSLB sitepersistence, CS cookie persistence, LB group cookie persistence). Only one of ComputedADCCookieAttribute, LiteralADCCookieAttribute can be set. + Sample usage - + add ns variable lbvar -type TEXT(100) -scope Transaction + add ns assignment lbassign -variable $lbvar -set "\\";SameSite=Strict\\"" + add rewrite policy lbpol lbassign + bind rewrite global lbpol 100 next -type RES_OVERRIDE + set lb param -ComputedADCCookieAttribute "$lbvar" + For incoming client request, if above policy evaluates TRUE, then SameSite=Strict will be appended to ADC generated cookie + */ + Computedadccookieattribute string `json:"computedadccookieattribute,omitempty"` + /** + * This option allows to store the MQTT clientid and username in transactional logs + */ + Storemqttclientidandusername string `json:"storemqttclientidandusername,omitempty"` + /** + * When this option is enabled, MQTT messages of length greater than 64k will be dropped and the client/server connections will be reset. + */ + Dropmqttjumbomessage string `json:"dropmqttjumbomessage,omitempty"` + /** + * This option dictates the hashing algorithm used for hash based LB methods (URLHASH, DOMAINHASH, SOURCEIPHASH, DESTINATIONIPHASH, SRCIPDESTIPHASH, SRCIPSRCPORTHASH, TOKEN, USER_TOKEN, CALLIDHASH). + */ + Lbhashalgorithm string `json:"lbhashalgorithm,omitempty"` + /** + * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory + */ + Lbhashfingers uint32 `json:"lbhashfingers,omitempty"` + + //------- Read only Parameter ---------; + + Sessionsthreshold string `json:"sessionsthreshold,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Adccookieattributewarningmsg string `json:"adccookieattributewarningmsg,omitempty"` + Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go new file mode 100644 index 000000000..c62edbe3b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for persistence session resource. +*/ +type Lbpersistentsessions struct { + /** + * The name of the virtual server. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + /** + * The persistence parameter whose persistence sessions are to be flushed. + */ + Persistenceparameter string `json:"persistenceparameter,omitempty"` + + //------- Read only Parameter ---------; + + Type string `json:"type,omitempty"` + Typestring string `json:"typestring,omitempty"` + Srcip string `json:"srcip,omitempty"` + Srcipv6 string `json:"srcipv6,omitempty"` + Destip string `json:"destip,omitempty"` + Destipv6 string `json:"destipv6,omitempty"` + Flags string `json:"flags,omitempty"` + Destport string `json:"destport,omitempty"` + Vservername string `json:"vservername,omitempty"` + Timeout string `json:"timeout,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Persistenceparam string `json:"persistenceparam,omitempty"` + Cnamepersparam string `json:"cnamepersparam,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go new file mode 100644 index 000000000..860ad62ac --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for LB profile resource. +*/ +type Lbprofile struct { + /** + * Name of the LB profile. + */ + Lbprofilename string `json:"lbprofilename,omitempty"` + /** + * Enable database specific load balancing for MySQL and MSSQL service types. + */ + Dbslb string `json:"dbslb,omitempty"` + /** + * By turning on this option packets destined to a vserver in a cluster will not under go any steering. Turn this option for single pa + cket request response mode or when the upstream device is performing a proper RSS for connection based distribution. + */ + Processlocal string `json:"processlocal,omitempty"` + /** + * Include the HttpOnly attribute in persistence cookies. The HttpOnly attribute limits the scope of a cookie to HTTP requests and helps mitigate the risk of cross-site scripting attacks. + */ + Httponlycookieflag string `json:"httponlycookieflag,omitempty"` + /** + * Use this parameter to specify the passphrase used to generate secured persistence cookie value. It specifies the passphrase with a maximum of 31 characters. + */ + Cookiepassphrase string `json:"cookiepassphrase,omitempty"` + /** + * Encode persistence cookie values using SHA2 hash. + */ + Usesecuredpersistencecookie string `json:"usesecuredpersistencecookie,omitempty"` + /** + * Encode persistence cookie values using SHA2 hash. + */ + Useencryptedpersistencecookie string `json:"useencryptedpersistencecookie,omitempty"` + /** + * String configured as LiteralADCCookieAttribute will be appended as attribute for Citrix ADC cookie (for example: LB cookie persistence , GSLB site persistence, CS cookie persistence, LB group cookie persistence). + Sample usage - + add lb profile lbprof -LiteralADCCookieAttribute ";SameSite=None" + */ + Literaladccookieattribute string `json:"literaladccookieattribute,omitempty"` + /** + * ComputedADCCookieAttribute accepts ns variable as input in form of string starting with $ (to understand how to configure ns variable, please check man add ns variable). policies can be configured to modify this variable for every transaction and the final value of the variable after policy evaluation will be appended as attribute to Citrix ADC cookie (for example: LB cookie persistence , GSLB sitepersistence, CS cookie persistence, LB group cookie persistence). Only one of ComputedADCCookieAttribute, LiteralADCCookieAttribute can be set. + Sample usage - + add ns variable lbvar -type TEXT(100) -scope Transaction + add ns assignment lbassign -variable $lbvar -set "\\";SameSite=Strict\\"" + add rewrite policy lbpol lbassign + bind rewrite global lbpol 100 next -type RES_OVERRIDE + add lb profile lbprof -ComputedADCCookieAttribute "$lbvar" + For incoming client request, if above policy evaluates TRUE, then SameSite=Strict will be appended to ADC generated cookie + */ + Computedadccookieattribute string `json:"computedadccookieattribute,omitempty"` + /** + * This option allows to store the MQTT clientid and username in transactional logs + */ + Storemqttclientidandusername string `json:"storemqttclientidandusername,omitempty"` + /** + * This option dictates the hashing algorithm used for hash based LB methods (URLHASH, DOMAINHASH, SOURCEIPHASH, DESTINATIONIPHASH, SRCIPDESTIPHASH, SRCIPSRCPORTHASH, TOKEN, USER_TOKEN, CALLIDHASH). + */ + Lbhashalgorithm string `json:"lbhashalgorithm,omitempty"` + /** + * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory. + */ + Lbhashfingers uint32 `json:"lbhashfingers,omitempty"` + + //------- Read only Parameter ---------; + + Vsvrcount string `json:"vsvrcount,omitempty"` + Adccookieattributewarningmsg string `json:"adccookieattributewarningmsg,omitempty"` + Lbhashalgowinsize string `json:"lbhashalgowinsize,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go new file mode 100644 index 000000000..292560120 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for LB route resource. +*/ +type Lbroute struct { + /** + * The IP address of the network to which the route belongs. + */ + Network string `json:"network,omitempty"` + /** + * The netmask to which the route belongs. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The name of the route. + */ + Gatewayname string `json:"gatewayname,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go new file mode 100644 index 000000000..3c2b10d08 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for LB route6 resource. +*/ +type Lbroute6 struct { + /** + * The destination network. + */ + Network string `json:"network,omitempty"` + /** + * The name of the route. + */ + Gatewayname string `json:"gatewayname,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go new file mode 100644 index 000000000..dd2a116d6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for SIP parameters resource. +*/ +type Lbsipparameters struct { + /** + * Port number with which to match the source port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. + */ + Rnatsrcport int32 `json:"rnatsrcport,omitempty"` + /** + * Port number with which to match the destination port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. + */ + Rnatdstport int32 `json:"rnatdstport,omitempty"` + /** + * Time, in seconds, for which a client must wait before initiating a connection after receiving a 503 Service Unavailable response from the SIP server. The time value is sent in the "Retry-After" header in the 503 response. + */ + Retrydur int32 `json:"retrydur,omitempty"` + /** + * Add the rport parameter to the VIA headers of SIP requests that virtual servers receive from clients or servers. + */ + Addrportvip string `json:"addrportvip,omitempty"` + /** + * Maximum number of 503 Service Unavailable responses to generate, once every 10 milliseconds, when a SIP virtual server becomes unavailable. + */ + Sip503ratethreshold uint32 `json:"sip503ratethreshold,omitempty"` + /** + * Port number with which to match the source port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. + */ + Rnatsecuresrcport int32 `json:"rnatsecuresrcport,omitempty"` + /** + * Port number with which to match the destination port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. + */ + Rnatsecuredstport int32 `json:"rnatsecuredstport,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go new file mode 100644 index 000000000..5fbb4f920 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go @@ -0,0 +1,549 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for Load Balancing Virtual Server resource. +*/ +type Lbvserver struct { + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Protocol used by the service (also called the service type). + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * IPv4 or IPv6 address to assign to the virtual server. + */ + Ipv46 string `json:"ipv46,omitempty"` + /** + * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. + For example, if the IP pattern assigned to the virtual server is 198.51.100.0 and the IP mask is 255.255.240.0 (a forward mask), the first 20 bits in the destination IP addresses are matched with the first 20 bits in the pattern. The virtual server accepts requests with IP addresses that range from 198.51.96.1 to 198.51.111.254. You can also use a pattern such as 0.0.2.2 and a mask such as 0.0.255.255 (a reverse mask). + If a destination IP address matches more than one IP pattern, the pattern with the longest match is selected, and the associated virtual server processes the request. For example, if virtual servers vs1 and vs2 have the same IP pattern, 0.0.100.128, but different IP masks of 0.0.255.255 and 0.0.224.255, a destination IP address of 198.51.100.128 has the longest match with the IP pattern of vs1. If a destination IP address matches two or more virtual servers to the same extent, the request is processed by the virtual server whose port number matches the port number in the request. + */ + Ippattern string `json:"ippattern,omitempty"` + /** + * IP mask, in dotted decimal notation, for the IP Pattern parameter. Can have leading or trailing non-zero octets (for example, 255.255.240.0 or 0.0.255.255). Accordingly, the mask specifies whether the first n bits or the last n bits of the destination IP address in a client request are to be matched with the corresponding bits in the IP pattern. The former is called a forward mask. The latter is called a reverse mask. + */ + Ipmask string `json:"ipmask,omitempty"` + /** + * Port number for the virtual server. + */ + Port int32 `json:"port,omitempty"` + /** + * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current lb vserver + */ + Ipset string `json:"ipset,omitempty"` + /** + * Number of IP addresses that the appliance must generate and assign to the virtual server. The virtual server then functions as a network virtual server, accepting traffic on any of the generated IP addresses. The IP addresses are generated automatically, as follows: + * For a range of n, the last octet of the address specified by the IP Address parameter increments n-1 times. + * If the last octet exceeds 255, it rolls over to 0 and the third octet increments by 1. + Note: The Range parameter assigns multiple IP addresses to one virtual server. To generate an array of virtual servers, each of which owns only one IP address, use brackets in the IP Address and Name parameters to specify the range. For example: + add lb vserver my_vserver[1-3] HTTP 192.0.2.[1-3] 80 + */ + Range uint32 `json:"range,omitempty"` + /** + * Type of persistence for the virtual server. Available settings function as follows: + * SOURCEIP - Connections from the same client IP address belong to the same persistence session. + * COOKIEINSERT - Connections that have the same HTTP Cookie, inserted by a Set-Cookie directive from a server, belong to the same persistence session. + * SSLSESSION - Connections that have the same SSL Session ID belong to the same persistence session. + * CUSTOMSERVERID - Connections with the same server ID form part of the same session. For this persistence type, set the Server ID (CustomServerID) parameter for each service and configure the Rule parameter to identify the server ID in a request. + * RULE - All connections that match a user defined rule belong to the same persistence session. + * URLPASSIVE - Requests that have the same server ID in the URL query belong to the same persistence session. The server ID is the hexadecimal representation of the IP address and port of the service to which the request must be forwarded. This persistence type requires a rule to identify the server ID in the request. + * DESTIP - Connections to the same destination IP address belong to the same persistence session. + * SRCIPDESTIP - Connections that have the same source IP address and destination IP address belong to the same persistence session. + * CALLID - Connections that have the same CALL-ID SIP header belong to the same persistence session. + * RTSPSID - Connections that have the same RTSP Session ID belong to the same persistence session. + * FIXSESSION - Connections that have the same SenderCompID and TargetCompID values belong to the same persistence session. + * USERSESSION - Persistence session is created based on the persistence parameter value provided from an extension. + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * Time period for which a persistence session is in effect. + */ + Timeout uint32 `json:"timeout,omitempty"` + /** + * Backup persistence type for the virtual server. Becomes operational if the primary persistence mechanism fails. + */ + Persistencebackup string `json:"persistencebackup,omitempty"` + /** + * Time period for which backup persistence is in effect. + */ + Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + /** + * Load balancing method. The available settings function as follows: + * ROUNDROBIN - Distribute requests in rotation, regardless of the load. Weights can be assigned to services to enforce weighted round robin distribution. + * LEASTCONNECTION (default) - Select the service with the fewest connections. + * LEASTRESPONSETIME - Select the service with the lowest average response time. + * LEASTBANDWIDTH - Select the service currently handling the least traffic. + * LEASTPACKETS - Select the service currently serving the lowest number of packets per second. + * CUSTOMLOAD - Base service selection on the SNMP metrics obtained by custom load monitors. + * LRTM - Select the service with the lowest response time. Response times are learned through monitoring probes. This method also takes the number of active connections into account. + Also available are a number of hashing methods, in which the appliance extracts a predetermined portion of the request, creates a hash of the portion, and then checks whether any previous requests had the same hash value. If it finds a match, it forwards the request to the service that served those previous requests. Following are the hashing methods: + * URLHASH - Create a hash of the request URL (or part of the URL). + * DOMAINHASH - Create a hash of the domain name in the request (or part of the domain name). The domain name is taken from either the URL or the Host header. If the domain name appears in both locations, the URL is preferred. If the request does not contain a domain name, the load balancing method defaults to LEASTCONNECTION. + * DESTINATIONIPHASH - Create a hash of the destination IP address in the IP header. + * SOURCEIPHASH - Create a hash of the source IP address in the IP header. + * TOKEN - Extract a token from the request, create a hash of the token, and then select the service to which any previous requests with the same token hash value were sent. + * SRCIPDESTIPHASH - Create a hash of the string obtained by concatenating the source IP address and destination IP address in the IP header. + * SRCIPSRCPORTHASH - Create a hash of the source IP address and source port in the IP header. + * CALLIDHASH - Create a hash of the SIP Call-ID header. + * USER_TOKEN - Same as TOKEN LB method but token needs to be provided from an extension. + */ + Lbmethod string `json:"lbmethod,omitempty"` + /** + * Number of bytes to consider for the hash value used in the URLHASH and DOMAINHASH load balancing methods. + */ + Hashlength uint32 `json:"hashlength,omitempty"` + /** + * IPv4 subnet mask to apply to the destination IP address or source IP address when the load balancing method is DESTINATIONIPHASH or SOURCEIPHASH. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Number of bits to consider in an IPv6 destination or source IP address, for creating the hash that is required by the DESTINATIONIPHASH and SOURCEIPHASH load balancing methods. + */ + V6netmasklen uint32 `json:"v6netmasklen,omitempty"` + /** + * Backup load balancing method. Becomes operational if the primary load balancing me + thod fails or cannot be used. + Valid only if the primary method is based on static proximity. + */ + Backuplbmethod string `json:"backuplbmethod,omitempty"` + /** + * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. + */ + Cookiename string `json:"cookiename,omitempty"` + /** + * Expression, or name of a named expression, against which traffic is evaluated. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * Expression identifying traffic accepted by the virtual server. Can be either an expression (for example, CLIENT.IP.DST.IN_SUBNET(192.0.2.0/24) or the name of a named expression. In the above example, the virtual server accepts all requests whose destination IP address is in the 192.0.2.0/24 subnet. + */ + Listenpolicy string `json:"listenpolicy,omitempty"` + /** + * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. + */ + Listenpriority uint32 `json:"listenpriority,omitempty"` + /** + * Expression specifying which part of a server's response to use for creating rule based persistence sessions (persistence type RULE). Can be either an expression or the name of a named expression. + Example: + HTTP.RES.HEADER("setcookie").VALUE(0).TYPECAST_NVLIST_T('=',';').VALUE("server1"). + */ + Resrule string `json:"resrule,omitempty"` + /** + * Persistence mask for IP based persistence types, for IPv4 virtual servers. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Persistence mask for IP based persistence types, for IPv6 virtual servers. + */ + V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + /** + * Use priority queuing on the virtual server. based persistence types, for IPv6 virtual servers. + */ + Pq string `json:"pq,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Use network address translation (NAT) for RTSP data connections. + */ + Rtspnat string `json:"rtspnat,omitempty"` + /** + * Redirection mode for load balancing. Available settings function as follows: + * IP - Before forwarding a request to a server, change the destination IP address to the server's IP address. + * MAC - Before forwarding a request to a server, change the destination MAC address to the server's MAC address. The destination IP address is not changed. MAC-based redirection mode is used mostly in firewall load balancing deployments. + * IPTUNNEL - Perform IP-in-IP encapsulation for client IP packets. In the outer IP headers, set the destination IP address to the IP address of the server and the source IP address to the subnet IP (SNIP). The client IP packets are not modified. Applicable to both IPv4 and IPv6 packets. + * TOS - Encode the virtual server's TOS ID in the TOS field of the IP header. + You can use either the IPTUNNEL or the TOS option to implement Direct Server Return (DSR). + */ + M string `json:"m,omitempty"` + /** + * TOS ID of the virtual server. Applicable only when the load balancing redirection mode is set to TOS. + */ + Tosid uint32 `json:"tosid,omitempty"` + /** + * Length of the token to be extracted from the data segment of an incoming packet, for use in the token method of load balancing. The length of the token, specified in bytes, must not be greater than 24 KB. Applicable to virtual servers of type TCP. + */ + Datalength uint32 `json:"datalength,omitempty"` + /** + * Offset to be considered when extracting a token from the TCP payload. Applicable to virtual servers, of type TCP, using the token method of load balancing. Must be within the first 24 KB of the TCP payload. + */ + Dataoffset uint32 `json:"dataoffset,omitempty"` + /** + * Perform load balancing on a per-packet basis, without establishing sessions. Recommended for load balancing of intrusion detection system (IDS) servers and scenarios involving direct server return (DSR), where session information is unnecessary. + */ + Sessionless string `json:"sessionless,omitempty"` + /** + * When value is ENABLED, Trofs persistence is honored. When value is DISABLED, Trofs persistence is not honored. + */ + Trofspersistence string `json:"trofspersistence,omitempty"` + /** + * State of the load balancing virtual server. + */ + State string `json:"state,omitempty"` + /** + * Mode in which the connection failover feature must operate for the virtual server. After a failover, established TCP connections and UDP packet flows are kept active and resumed on the secondary appliance. Clients remain connected to the same servers. Available settings function as follows: + * STATEFUL - The primary appliance shares state information with the secondary appliance, in real time, resulting in some runtime processing overhead. + * STATELESS - State information is not shared, and the new primary appliance tries to re-create the packet flow on the basis of the information contained in the packets it receives. + * DISABLED - Connection failover does not occur. + */ + Connfailover string `json:"connfailover,omitempty"` + /** + * URL to which to redirect traffic if the virtual server becomes unavailable. + WARNING! Make sure that the domain in the URL does not match the domain specified for a content switching policy. If it does, requests are continuously redirected to the unavailable virtual server. + */ + Redirurl string `json:"redirurl,omitempty"` + /** + * Route cacheable requests to a cache redirection virtual server. The load balancing virtual server can forward requests only to a transparent cache redirection virtual server that has an IP address and port combination of *:80, so such a cache redirection virtual server must be configured on the appliance. + */ + Cacheable string `json:"cacheable,omitempty"` + /** + * Idle time, in seconds, after which a client connection is terminated. + */ + Clttimeout uint64 `json:"clttimeout,omitempty"` + /** + * Type of threshold that, when exceeded, triggers spillover. Available settings function as follows: + * CONNECTION - Spillover occurs when the number of client connections exceeds the threshold. + * DYNAMICCONNECTION - Spillover occurs when the number of client connections at the virtual server exceeds the sum of the maximum client (Max Clients) settings for bound services. Do not specify a spillover threshold for this setting, because the threshold is implied by the Max Clients settings of bound services. + * BANDWIDTH - Spillover occurs when the bandwidth consumed by the virtual server's incoming and outgoing traffic exceeds the threshold. + * HEALTH - Spillover occurs when the percentage of weights of the services that are UP drops below the threshold. For example, if services svc1, svc2, and svc3 are bound to a virtual server, with weights 1, 2, and 3, and the spillover threshold is 50%, spillover occurs if svc1 and svc3 or svc2 and svc3 transition to DOWN. + * NONE - Spillover does not occur. + */ + Somethod string `json:"somethod,omitempty"` + /** + * If spillover occurs, maintain source IP address based persistence for both primary and backup virtual servers. + */ + Sopersistence string `json:"sopersistence,omitempty"` + /** + * Timeout for spillover persistence, in minutes. + */ + Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + /** + * Threshold in percent of active services below which vserver state is made down. If this threshold is 0, vserver state will be up even if one bound service is up. + */ + Healththreshold uint32 `json:"healththreshold,omitempty"` + /** + * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). + */ + Sothreshold uint32 `json:"sothreshold,omitempty"` + /** + * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists + */ + Sobackupaction string `json:"sobackupaction,omitempty"` + /** + * Rewrite the port and change the protocol to ensure successful HTTP redirects from services. + */ + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + /** + * Flush all active transactions associated with a virtual server whose state transitions from UP to DOWN. Do not enable this option for applications that must complete their transactions. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Name of the backup virtual server to which to forward requests if the primary virtual server goes DOWN or reaches its spillover threshold. + */ + Backupvserver string `json:"backupvserver,omitempty"` + /** + * If the primary virtual server goes down, do not allow it to return to primary status until manually enabled. + */ + Disableprimaryondown string `json:"disableprimaryondown,omitempty"` + /** + * Insert an HTTP header, whose value is the IP address and port number of the virtual server, before forwarding a request to the server. The format of the header is : _, where vipHeader is the name that you specify for the header. If the virtual server has an IPv6 address, the address in the header is enclosed in brackets ([ and ]) to separate it from the port number. If you have mapped an IPv4 address to a virtual server's IPv6 address, the value of this parameter determines which IP address is inserted in the header, as follows: + * VIPADDR - Insert the IP address of the virtual server in the HTTP header regardless of whether the virtual server has an IPv4 address or an IPv6 address. A mapped IPv4 address, if configured, is ignored. + * V6TOV4MAPPING - Insert the IPv4 address that is mapped to the virtual server's IPv6 address. If a mapped IPv4 address is not configured, insert the IPv6 address. + * OFF - Disable header insertion. + */ + Insertvserveripport string `json:"insertvserveripport,omitempty"` + /** + * Name for the inserted header. The default name is vip-header. + */ + Vipheader string `json:"vipheader,omitempty"` + /** + * Fully qualified domain name (FQDN) of the authentication virtual server to which the user must be redirected for authentication. Make sure that the Authentication parameter is set to ENABLED. + */ + Authenticationhost string `json:"authenticationhost,omitempty"` + /** + * Enable or disable user authentication. + */ + Authentication string `json:"authentication,omitempty"` + /** + * Enable or disable user authentication with HTTP 401 responses. + */ + Authn401 string `json:"authn401,omitempty"` + /** + * Name of an authentication virtual server with which to authenticate users. + */ + Authnvsname string `json:"authnvsname,omitempty"` + /** + * Process traffic with the push virtual server that is bound to this load balancing virtual server. + */ + Push string `json:"push,omitempty"` + /** + * Name of the load balancing virtual server, of type PUSH or SSL_PUSH, to which the server pushes updates received on the load balancing virtual server that you are configuring. + */ + Pushvserver string `json:"pushvserver,omitempty"` + /** + * Expression for extracting a label from the server's response. Can be either an expression or the name of a named expression. + */ + Pushlabel string `json:"pushlabel,omitempty"` + /** + * Allow multiple Web 2.0 connections from the same client to connect to the virtual server and expect updates. + */ + Pushmulticlients string `json:"pushmulticlients,omitempty"` + /** + * Name of the TCP profile whose settings are to be applied to the virtual server. + */ + Tcpprofilename string `json:"tcpprofilename,omitempty"` + /** + * Name of the HTTP profile whose settings are to be applied to the virtual server. + */ + Httpprofilename string `json:"httpprofilename,omitempty"` + /** + * Name of the DB profile whose settings are to be applied to the virtual server. + */ + Dbprofilename string `json:"dbprofilename,omitempty"` + /** + * Any comments that you might want to associate with the virtual server. + */ + Comment string `json:"comment,omitempty"` + /** + * Use Layer 2 parameters (channel number, MAC address, and VLAN ID) in addition to the 4-tuple (::::) that is used to identify a connection. Allows multiple TCP and non-TCP connections with the same 4-tuple to co-exist on the Citrix ADC. + */ + L2conn string `json:"l2conn,omitempty"` + /** + * Oracle server version + */ + Oracleserverversion string `json:"oracleserverversion,omitempty"` + /** + * For a load balancing virtual server of type MSSQL, the Microsoft SQL Server version. Set this parameter if you expect some clients to run a version different from the version of the database. This setting provides compatibility between the client-side and server-side connections by ensuring that all communication conforms to the server's version. + */ + Mssqlserverversion string `json:"mssqlserverversion,omitempty"` + /** + * MySQL protocol version that the virtual server advertises to clients. + */ + Mysqlprotocolversion uint32 `json:"mysqlprotocolversion,omitempty"` + /** + * MySQL server version string that the virtual server advertises to clients. + */ + Mysqlserverversion string `json:"mysqlserverversion,omitempty"` + /** + * Character set that the virtual server advertises to clients. + */ + Mysqlcharacterset uint32 `json:"mysqlcharacterset,omitempty"` + /** + * Server capabilities that the virtual server advertises to clients. + */ + Mysqlservercapabilities uint32 `json:"mysqlservercapabilities,omitempty"` + /** + * Apply AppFlow logging to the virtual server. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Name of the network profile to associate with the virtual server. If you set this parameter, the virtual server uses only the IP addresses in the network profile as source IP addresses when initiating connections with servers. + */ + Netprofile string `json:"netprofile,omitempty"` + /** + * How the Citrix ADC responds to ping requests received for an IP address that is common to one or more virtual servers. Available settings function as follows: + * If set to PASSIVE on all the virtual servers that share the IP address, the appliance always responds to the ping requests. + * If set to ACTIVE on all the virtual servers that share the IP address, the appliance responds to the ping requests if at least one of the virtual servers is UP. Otherwise, the appliance does not respond. + * If set to ACTIVE on some virtual servers and PASSIVE on the others, the appliance responds if at least one virtual server with the ACTIVE setting is UP. Otherwise, the appliance does not respond. + Note: This parameter is available at the virtual server level. A similar parameter, ICMP Response, is available at the IP address level, for IPv4 addresses of type VIP. To set that parameter, use the add ip command in the CLI or the Create IP dialog box in the GUI. + */ + Icmpvsrresponse string `json:"icmpvsrresponse,omitempty"` + /** + * Route Health Injection (RHI) functionality of the NetSaler appliance for advertising the route of the VIP address associated with the virtual server. When Vserver RHI Level (RHI) parameter is set to VSVR_CNTRLD, the following are different RHI behaviors for the VIP address on the basis of RHIstate (RHI STATE) settings on the virtual servers associated with the VIP address: + * If you set RHI STATE to PASSIVE on all virtual servers, the Citrix ADC always advertises the route for the VIP address. + * If you set RHI STATE to ACTIVE on all virtual servers, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers is in UP state. + * If you set RHI STATE to ACTIVE on some and PASSIVE on others, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers, whose RHI STATE set to ACTIVE, is in UP state. + */ + Rhistate string `json:"rhistate,omitempty"` + /** + * Number of requests, or percentage of the load on existing services, by which to increase the load on a new service at each interval in slow-start mode. A non-zero value indicates that slow-start is applicable. A zero value indicates that the global RR startup parameter is applied. Changing the value to zero will cause services currently in slow start to take the full traffic as determined by the LB method. Subsequently, any new services added will use the global RR factor. + */ + Newservicerequest uint32 `json:"newservicerequest,omitempty"` + /** + * Units in which to increment load at each interval in slow-start mode. + */ + Newservicerequestunit string `json:"newservicerequestunit,omitempty"` + /** + * Interval, in seconds, between successive increments in the load on a new service or a service whose state has just changed from DOWN to UP. A value of 0 (zero) specifies manual slow start. + */ + Newservicerequestincrementinterval uint32 `json:"newservicerequestincrementinterval,omitempty"` + /** + * Minimum number of members expected to be present when vserver is used in Autoscale. + */ + Minautoscalemembers uint32 `json:"minautoscalemembers,omitempty"` + /** + * Maximum number of members expected to be present when vserver is used in Autoscale. + */ + Maxautoscalemembers uint32 `json:"maxautoscalemembers,omitempty"` + /** + * Persist AVP number for Diameter Persistency. + In case this AVP is not defined in Base RFC 3588 and it is nested inside a Grouped AVP, + define a sequence of AVP numbers (max 3) in order of parent to child. So say persist AVP number X + is nested inside AVP Y which is nested in Z, then define the list as Z Y X + */ + Persistavpno []uint32 `json:"persistavpno,omitempty"` + /** + * This argument decides the behavior incase the service which is selected from an existing persistence session has reached threshold. + */ + Skippersistency string `json:"skippersistency,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Name of the authentication profile to be used when authentication is turned on. + */ + Authnprofile string `json:"authnprofile,omitempty"` + /** + * This option is used to retain vlan information of incoming packet when macmode is enabled + */ + Macmoderetainvlan string `json:"macmoderetainvlan,omitempty"` + /** + * Enable database specific load balancing for MySQL and MSSQL service types. + */ + Dbslb string `json:"dbslb,omitempty"` + /** + * This argument is for enabling/disabling the dns64 on lbvserver + */ + Dns64 string `json:"dns64,omitempty"` + /** + * If this option is enabled while resolving DNS64 query AAAA queries are not sent to back end dns server + */ + Bypassaaaa string `json:"bypassaaaa,omitempty"` + /** + * When set to YES, this option causes the DNS replies from this vserver to have the RA bit turned on. Typically one would set this option to YES, when the vserver is load balancing a set of DNS servers thatsupport recursive queries. + */ + Recursionavailable string `json:"recursionavailable,omitempty"` + /** + * By turning on this option packets destined to a vserver in a cluster will not under go any steering. Turn this option for single packet request response mode or when the upstream device is performing a proper RSS for connection based distribution. + */ + Processlocal string `json:"processlocal,omitempty"` + /** + * Name of the DNS profile to be associated with the VServer. DNS profile properties will be applied to the transactions processed by a VServer. This parameter is valid only for DNS and DNS-TCP VServers. + */ + Dnsprofilename string `json:"dnsprofilename,omitempty"` + /** + * Name of the LB profile which is associated to the vserver + */ + Lbprofilename string `json:"lbprofilename,omitempty"` + /** + * Port number for the virtual server, from which we absorb the traffic for http redirect + */ + Redirectfromport int32 `json:"redirectfromport,omitempty"` + /** + * URL to which all HTTP traffic received on the port specified in the -redirectFromPort parameter is redirected. + */ + Httpsredirecturl string `json:"httpsredirecturl,omitempty"` + /** + * This option enables you to retain existing connections on a node joining a Cluster system or when a node is being configured for passive timeout. By default, this option is disabled. + */ + Retainconnectionsoncluster string `json:"retainconnectionsoncluster,omitempty"` + /** + * Name of the adfsProxy profile to be used to support ADFSPIP protocol for ADFS servers. + */ + Adfsproxyprofile string `json:"adfsproxyprofile,omitempty"` + /** + * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. + */ + Tcpprobeport int32 `json:"tcpprobeport,omitempty"` + /** + * Name of QUIC profile which will be attached to the VServer. + */ + Quicprofilename string `json:"quicprofilename,omitempty"` + /** + * Name of the QUIC Bridge profile whose settings are to be applied to the virtual server. + */ + Quicbridgeprofilename string `json:"quicbridgeprofilename,omitempty"` + /** + * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck + */ + Probeprotocol string `json:"probeprotocol,omitempty"` + /** + * HTTP code to return in SUCCESS case. + */ + Probesuccessresponsecode string `json:"probesuccessresponsecode,omitempty"` + /** + * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring + */ + Probeport int32 `json:"probeport,omitempty"` + /** + * Weight to assign to the specified service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Service to bind to the virtual server. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The redirect URL to be unset. + */ + Redirurlflags bool `json:"redirurlflags,omitempty"` + /** + * New name for the virtual server. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Value string `json:"value,omitempty"` + Ipmapping string `json:"ipmapping,omitempty"` + Ngname string `json:"ngname,omitempty"` + Type string `json:"type,omitempty"` + Curstate string `json:"curstate,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Status string `json:"status,omitempty"` + Lbrrreason string `json:"lbrrreason,omitempty"` + Redirect string `json:"redirect,omitempty"` + Precedence string `json:"precedence,omitempty"` + Homepage string `json:"homepage,omitempty"` + Dnsvservername string `json:"dnsvservername,omitempty"` + Domain string `json:"domain,omitempty"` + Cachevserver string `json:"cachevserver,omitempty"` + Health string `json:"health,omitempty"` + Ruletype string `json:"ruletype,omitempty"` + Groupname string `json:"groupname,omitempty"` + Cookiedomain string `json:"cookiedomain,omitempty"` + Map string `json:"map,omitempty"` + Gt2gb string `json:"gt2gb,omitempty"` + Consolidatedlconn string `json:"consolidatedlconn,omitempty"` + Consolidatedlconngbl string `json:"consolidatedlconngbl,omitempty"` + Thresholdvalue string `json:"thresholdvalue,omitempty"` + Bindpoint string `json:"bindpoint,omitempty"` + Version string `json:"version,omitempty"` + Totalservices string `json:"totalservices,omitempty"` + Activeservices string `json:"activeservices,omitempty"` + Statechangetimesec string `json:"statechangetimesec,omitempty"` + Statechangetimeseconds string `json:"statechangetimeseconds,omitempty"` + Statechangetimemsec string `json:"statechangetimemsec,omitempty"` + Tickssincelaststatechange string `json:"tickssincelaststatechange,omitempty"` + Isgslb string `json:"isgslb,omitempty"` + Vsvrdynconnsothreshold string `json:"vsvrdynconnsothreshold,omitempty"` + Backupvserverstatus string `json:"backupvserverstatus,omitempty"` + Nodefaultbindings string `json:"nodefaultbindings,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_binding.go new file mode 100644 index 000000000..d1dd05761 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbvserver_binding. +*/ +type Lbvserverbinding struct { + /** + * Name of the virtual server. If no name is provided, statistical data of all configured virtual servers is displayed.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_detectionpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_detectionpolicy_binding.go new file mode 100644 index 000000000..116b463e2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_detectionpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the detectionpolicy that can be bound to lbvserver. +*/ +type Lbvserverdetectionpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_nslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_nslogpolicy_binding.go new file mode 100644 index 000000000..4b2b6dcb1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_nslogpolicy_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the nslogpolicy that can be bound to lbvserver. +*/ +type Lbvservernslogpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pacingpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pacingpolicy_binding.go new file mode 100644 index 000000000..0141088d5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pacingpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the pacingpolicy that can be bound to lbvserver. +*/ +type Lbvserverpacingpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy64_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy64_binding.go new file mode 100644 index 000000000..6e3347a9e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy64_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the policy64 that can be bound to lbvserver. +*/ +type Lbvserverpolicy64binding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy_binding.go new file mode 100644 index 000000000..bc43c2d8f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_policy_binding.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the policy that can be bound to lbvserver. +*/ +type Lbvserverpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_profile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_profile_binding.go new file mode 100644 index 000000000..5faf7462d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_profile_binding.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the profile that can be bound to lbvserver. +*/ +type Lbvserverprofilebinding struct { + /** + * Name of the analytics profile bound to the LB vserver. + */ + Analyticsprofile string `json:"analyticsprofile,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go new file mode 100644 index 000000000..2a378f831 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the service that can be bound to lbvserver. +*/ +type Lbvserverservicebinding struct { + /** + * Service to bind to the virtual server. + */ + Servicename string `json:"servicename,omitempty"` + /** + * IPv4 or IPv6 address to assign to the virtual server. + */ + Ipv46 string `json:"ipv46,omitempty"` + /** + * Port number for the virtual server. + */ + Port int32 `json:"port,omitempty"` + /** + * Protocol used by the service (also called the service type). + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Current LB vserver state. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight to assign to the specified service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Dynamic weight + */ + Dynamicweight uint32 `json:"dynamicweight,omitempty"` + /** + * Encryped Ip address and port of the service that is inserted into the set-cookie http header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Vserver Id + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * used for showing the ip of bound entities + */ + Vsvrbindsvcip string `json:"vsvrbindsvcip,omitempty"` + /** + * used for showing ports of bound entities + */ + Vsvrbindsvcport int32 `json:"vsvrbindsvcport,omitempty"` + /** + * Used for displaying the location of bound services. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go new file mode 100644 index 000000000..ed8d9c27f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the servicegroup that can be bound to lbvserver. +*/ +type Lbvserverservicegroupbinding struct { + /** + * The service group name bound to the selected load balancing virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Service to bind to the virtual server. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Integer specifying the weight of the service. A larger number specifies a greater weight. Defines the capacity of the service relative to the other services in the load balancing configuration. Determines the priority given to the service in load balancing decisions. + */ + Weight uint32 `json:"weight,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go new file mode 100644 index 000000000..0a0fc0ea2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the servicegroupmember that can be bound to lbvserver. +*/ +type Lbvserverservicegroupmemberbinding struct { + /** + * The service group name bound to the selected load balancing virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * IPv4 or IPv6 address to assign to the virtual server. + */ + Ipv46 string `json:"ipv46,omitempty"` + /** + * Port number for the virtual server. + */ + Port int32 `json:"port,omitempty"` + /** + * Protocol used by the service (also called the service type). + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Current LB vserver state. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight to assign to the specified service. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Dynamic weight + */ + Dynamicweight uint32 `json:"dynamicweight,omitempty"` + /** + * Encryped Ip address and port of the service that is inserted into the set-cookie http header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. + */ + Cookiename string `json:"cookiename,omitempty"` + /** + * Vserver Id + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * Used for displaying the location of bound services. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_syslogpolicy_binding.go new file mode 100644 index 000000000..c8c572375 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_syslogpolicy_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the syslogpolicy that can be bound to lbvserver. +*/ +type Lbvserversyslogpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_trafficpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_trafficpolicy_binding.go new file mode 100644 index 000000000..571f85c0f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_trafficpolicy_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the trafficpolicy that can be bound to lbvserver. +*/ +type Lbvservertrafficpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_vserver_binding.go new file mode 100644 index 000000000..a4e9957a1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_vserver_binding.go @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the vserver that can be bound to lbvserver. +*/ +type Lbvservervserverbinding struct { + /** + * Cache virtual server. + */ + Cachevserver string `json:"cachevserver,omitempty"` + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Cache type. + */ + Cachetype string `json:"cachetype,omitempty"` + /** + * Priority. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Number of hits. + */ + Hits uint32 `json:"hits,omitempty"` + /** + * Number of hits. + */ + Pipolicyhits uint32 `json:"pipolicyhits,omitempty"` + Policysubtype uint32 `json:"policysubtype,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go new file mode 100644 index 000000000..19d12b76e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Configuration for web log manager resource. +*/ +type Lbwlm struct { + /** + * The name of the Work Load Manager. + */ + Wlmname string `json:"wlmname,omitempty"` + /** + * The IP address of the WLM. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The port of the WLM. + */ + Port int32 `json:"port,omitempty"` + /** + * The LBUID for the Load Balancer to communicate to the Work Load Manager. + */ + Lbuid string `json:"lbuid,omitempty"` + /** + * The idle time period after which Citrix ADC would probe the WLM. The value ranges from 1 to 1440 minutes. + */ + Katimeout uint32 `json:"katimeout,omitempty"` + + //------- Read only Parameter ---------; + + Secure string `json:"secure,omitempty"` + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_binding.go new file mode 100644 index 000000000..0e656eb3b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding object which returns the resources bound to lbwlm_binding. +*/ +type Lbwlmbinding struct { + /** + * The name of the work load manager.
Minimum value = + */ + Wlmname string `json:"wlmname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_vserver_binding.go new file mode 100644 index 000000000..c0a515efc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_vserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the vserver that can be bound to lbwlm. +*/ +type Lbwlmvserverbinding struct { + /** + * Name of the virtual server which is to be bound to the WLM. + */ + Vservername string `json:"vservername,omitempty"` + /** + * The name of the Work Load Manager. + */ + Wlmname string `json:"wlmname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go new file mode 100644 index 000000000..363e68769 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go @@ -0,0 +1,235 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for interface resource. +*/ +type Interface struct { + /** + * Interface number, in C/U format, where C can take one of the following values: + * 0 - Indicates a management interface. + * 1 - Indicates a 1 Gbps port. + * 10 - Indicates a 10 Gbps port. + * LA - Indicates a link aggregation port. + * LO - Indicates a loop back port. + U is a unique integer for representing an interface in a particular port group. + */ + Id string `json:"id,omitempty"` + /** + * Ethernet speed of the interface, in Mbps. + Notes: + * If you set the speed as AUTO, the Citrix ADC attempts to auto-negotiate or auto-sense the link speed of the interface when it is UP. You must enable auto negotiation on the interface. + * If you set a speed other than AUTO, you must specify the same speed for the peer network device. Mismatched speed and duplex settings between the peer devices of a link lead to link errors, packet loss, and other errors. + Some interfaces do not support certain speeds. If you specify an unsupported speed, an error message appears. + */ + Speed string `json:"speed,omitempty"` + /** + * The duplex mode for the interface. Notes:* If you set the duplex mode to AUTO, the Citrix ADC attempts to auto-negotiate the duplex mode of the interface when it is UP. You must enable auto negotiation on the interface. If you set a duplex mode other than AUTO, you must specify the same duplex mode for the peer network device. Mismatched speed and duplex settings between the peer devices of a link lead to link errors, packet loss, and other errors. + */ + Duplex string `json:"duplex,omitempty"` + /** + * 802.3x flow control setting for the interface. The 802.3x specification does not define flow control for 10 Mbps and 100 Mbps speeds, but if a Gigabit Ethernet interface operates at those speeds, the flow control settings can be applied. The flow control setting that is finally applied to an interface depends on auto-negotiation. With the ON option, the peer negotiates the flow control, but the appliance then forces two-way flow control for the interface. + */ + Flowctl string `json:"flowctl,omitempty"` + /** + * Auto-negotiation state of the interface. With the ENABLED setting, the Citrix ADC auto-negotiates the speed and duplex settings with the peer network device on the link. The Citrix ADC appliance auto-negotiates the settings of only those parameters (speed or duplex mode) for which the value is set as AUTO. + */ + Autoneg string `json:"autoneg,omitempty"` + /** + * In a High Availability (HA) configuration, monitor the interface for failure events. In an HA configuration, an interface that has HA MON enabled and is not bound to any Failover Interface Set (FIS), is a critical interface. Failure or disabling of any critical interface triggers HA failover. + */ + Hamonitor string `json:"hamonitor,omitempty"` + /** + * In a High Availability (HA) or Cluster configuration, configure the interface for sending heartbeats. In an HA or Cluster configuration, an interface that has HA Heartbeat disabled should not send the heartbeats. + */ + Haheartbeat string `json:"haheartbeat,omitempty"` + /** + * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). + */ + Mtu uint32 `json:"mtu,omitempty"` + /** + * The receive ringsize of the interface. A higher number provides more number of buffers in handling incoming traffic. + */ + Ringsize uint32 `json:"ringsize,omitempty"` + /** + * The receive ringtype of the interface (Fixed or Elastic). A fixed ring type pre-allocates configured number of buffers irrespective of traffic rate. In contrast, an elastic ring, expands and shrinks based on incoming traffic rate. + */ + Ringtype string `json:"ringtype,omitempty"` + /** + * Add a four-byte 802.1q tag to every packet sent on this interface. The ON setting applies the tag for this interface's native VLAN. OFF applies the tag for all VLANs other than the native VLAN. + */ + Tagall string `json:"tagall,omitempty"` + /** + * This argument is deprecated by tagall. + */ + Trunk string `json:"trunk,omitempty"` + /** + * Accept and send 802.1q VLAN tagged packets, based on Allowed Vlan List of this interface. + */ + Trunkmode string `json:"trunkmode,omitempty"` + /** + * VLAN ID or range of VLAN IDs will be allowed on this trunk interface. In the command line interface, separate the range with a hyphen. For example: 40-90. + */ + Trunkallowedvlan []string `json:"trunkallowedvlan,omitempty"` + /** + * Bind the interface to a LA channel created by the Link Aggregation control protocol (LACP). + Available settings function as follows: + * Active - The LA channel port of the Citrix ADC generates LACPDU messages on a regular basis, regardless of any need expressed by its peer device to receive them. + * Passive - The LA channel port of the Citrix ADC does not transmit LACPDU messages unless the peer device port is in the active mode. That is, the port does not speak unless spoken to. + * Disabled - Unbinds the interface from the LA channel. If this is the only interface in the LA channel, the LA channel is removed. + */ + Lacpmode string `json:"lacpmode,omitempty"` + /** + * Integer identifying the LACP LA channel to which the interface is to be bound. + For an LA channel of the Citrix ADC, this digit specifies the variable x of an LA channel in LA/x notation, where x can range from 1 to 8. For example, if you specify 3 as the LACP key for an LA channel, the interface is bound to the LA channel LA/3. + For an LA channel of a cluster configuration, this digit specifies the variable y of a cluster LA channel in CLA/(y-4) notation, where y can range from 5 to 8. For example, if you specify 6 as the LACP key for a cluster LA channel, the interface is bound to the cluster LA channel CLA/2. + */ + Lacpkey uint32 `json:"lacpkey,omitempty"` + /** + * Type of entity (Citrix ADC or cluster configuration) for which to create the channel. + */ + Lagtype string `json:"lagtype,omitempty"` + /** + * LACP port priority, expressed as an integer. The lower the number, the higher the priority. The Citrix ADC limits the number of interfaces in an LA channel to sixteen. + */ + Lacppriority uint32 `json:"lacppriority,omitempty"` + /** + * Interval at which the Citrix ADC sends LACPDU messages to the peer device on the LA channel. + Available settings function as follows: + LONG - 30 seconds. + SHORT - 1 second. + */ + Lacptimeout string `json:"lacptimeout,omitempty"` + /** + * Alias name for the interface. Used only to enhance readability. To perform any operations, you have to specify the interface ID. + */ + Ifalias string `json:"ifalias,omitempty"` + /** + * Low threshold value for the throughput of the interface, in Mbps. In an HA configuration, failover is triggered if the interface has HA MON enabled and the throughput is below the specified the threshold. + */ + Throughput uint32 `json:"throughput,omitempty"` + /** + * Link Redundancy for Cluster LAG. + */ + Linkredundancy string `json:"linkredundancy,omitempty"` + /** + * High threshold value for the bandwidth usage of the interface, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the interface is greater than or equal to the specified high threshold value. + */ + Bandwidthhigh uint32 `json:"bandwidthhigh,omitempty"` + /** + * Normal threshold value for the bandwidth usage of the interface, in Mbps. When the bandwidth usage of the interface becomes less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. + */ + Bandwidthnormal uint32 `json:"bandwidthnormal,omitempty"` + /** + * Link Layer Discovery Protocol (LLDP) mode for an interface. The resultant LLDP mode of an interface depends on the LLDP mode configured at the global and the interface levels. + */ + Lldpmode string `json:"lldpmode,omitempty"` + /** + * LRSET port priority, expressed as an integer ranging from 1 to 1024. The highest priority is 1. The Citrix ADC limits the number of interfaces in an LRSET to 8. Within a LRSET the highest LR Priority Interface is considered as the first candidate for the Active interface, if the interface is UP. + */ + Lrsetpriority uint32 `json:"lrsetpriority,omitempty"` + + //------- Read only Parameter ---------; + + Devicename string `json:"devicename,omitempty"` + Unit string `json:"unit,omitempty"` + Description string `json:"description,omitempty"` + Flags string `json:"flags,omitempty"` + Actualmtu string `json:"actualmtu,omitempty"` + Vlan string `json:"vlan,omitempty"` + Mac string `json:"mac,omitempty"` + Uptime string `json:"uptime,omitempty"` + Downtime string `json:"downtime,omitempty"` + Actualringsize string `json:"actualringsize,omitempty"` + Reqmedia string `json:"reqmedia,omitempty"` + Reqspeed string `json:"reqspeed,omitempty"` + Reqduplex string `json:"reqduplex,omitempty"` + Reqflowcontrol string `json:"reqflowcontrol,omitempty"` + Actmedia string `json:"actmedia,omitempty"` + Actspeed string `json:"actspeed,omitempty"` + Actduplex string `json:"actduplex,omitempty"` + Actflowctl string `json:"actflowctl,omitempty"` + Mode string `json:"mode,omitempty"` + State string `json:"state,omitempty"` + Autonegresult string `json:"autonegresult,omitempty"` + Tagged string `json:"tagged,omitempty"` + Taggedany string `json:"taggedany,omitempty"` + Taggedautolearn string `json:"taggedautolearn,omitempty"` + Hangdetect string `json:"hangdetect,omitempty"` + Hangreset string `json:"hangreset,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Intfstate string `json:"intfstate,omitempty"` + Rxpackets string `json:"rxpackets,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Rxerrors string `json:"rxerrors,omitempty"` + Rxdrops string `json:"rxdrops,omitempty"` + Txpackets string `json:"txpackets,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Txerrors string `json:"txerrors,omitempty"` + Txdrops string `json:"txdrops,omitempty"` + Indisc string `json:"indisc,omitempty"` + Outdisc string `json:"outdisc,omitempty"` + Fctls string `json:"fctls,omitempty"` + Hangs string `json:"hangs,omitempty"` + Stsstalls string `json:"stsstalls,omitempty"` + Txstalls string `json:"txstalls,omitempty"` + Rxstalls string `json:"rxstalls,omitempty"` + Bdgmacmoved string `json:"bdgmacmoved,omitempty"` + Bdgmuted string `json:"bdgmuted,omitempty"` + Vmac string `json:"vmac,omitempty"` + Vmac6 string `json:"vmac6,omitempty"` + Reqthroughput string `json:"reqthroughput,omitempty"` + Actthroughput string `json:"actthroughput,omitempty"` + Backplane string `json:"backplane,omitempty"` + Ifnum string `json:"ifnum,omitempty"` + Cleartime string `json:"cleartime,omitempty"` + Slavestate string `json:"slavestate,omitempty"` + Slavemedia string `json:"slavemedia,omitempty"` + Slavespeed string `json:"slavespeed,omitempty"` + Slaveduplex string `json:"slaveduplex,omitempty"` + Slaveflowctl string `json:"slaveflowctl,omitempty"` + Slavetime string `json:"slavetime,omitempty"` + Intftype string `json:"intftype,omitempty"` + Svmcmd string `json:"svmcmd,omitempty"` + Lacpactormode string `json:"lacpactormode,omitempty"` + Lacpactortimeout string `json:"lacpactortimeout,omitempty"` + Lacpactorpriority string `json:"lacpactorpriority,omitempty"` + Lacpactorportno string `json:"lacpactorportno,omitempty"` + Lacppartnerstate string `json:"lacppartnerstate,omitempty"` + Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` + Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` + Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` + Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` + Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` + Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` + Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` + Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` + Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` + Lacppartnersystempriority string `json:"lacppartnersystempriority,omitempty"` + Lacppartnerportno string `json:"lacppartnerportno,omitempty"` + Lacppartnerkey string `json:"lacppartnerkey,omitempty"` + Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` + Lacpactorinsync string `json:"lacpactorinsync,omitempty"` + Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` + Lacpactordistributing string `json:"lacpactordistributing,omitempty"` + Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` + Lacpportrxstat string `json:"lacpportrxstat,omitempty"` + Lacpportselectstate string `json:"lacpportselectstate,omitempty"` + Lractiveintf string `json:"lractiveintf,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go new file mode 100644 index 000000000..d0af267b9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for AppAlg Param resource. +*/ +type Appalgparam struct { + /** + * Interval in sec, after which data sessions of PPTP GRE is cleared. + */ + Pptpgreidletimeout uint32 `json:"pptpgreidletimeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go new file mode 100644 index 000000000..0b14292af --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for arp resource. +*/ +type Arp struct { + /** + * IP address of the network device that you want to add to the ARP table. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * MAC address of the network device. + */ + Mac string `json:"mac,omitempty"` + /** + * Interface through which the network device is accessible. Specify the interface in (slot/port) notation. For example, 1/3. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * ID of the VXLAN on which the IP address of this ARP entry is reachable. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * IP address of the VXLAN tunnel endpoint (VTEP) through which the IP address of this ARP entry is reachable. + */ + Vtep string `json:"vtep,omitempty"` + /** + * The VLAN ID through which packets are to be sent after matching the ARP entry. This is a numeric value. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * The owner node for the Arp entry. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * Remove all ARP entries from the ARP table of the Citrix ADC. + */ + All bool `json:"all,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Timeout string `json:"timeout,omitempty"` + State string `json:"state,omitempty"` + Flags string `json:"flags,omitempty"` + Type string `json:"type,omitempty"` + Channel string `json:"channel,omitempty"` + Controlplane string `json:"controlplane,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go new file mode 100644 index 000000000..6423a34df --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Global arp parameters resource. +*/ +type Arpparam struct { + /** + * Time-out value (aging time) for the dynamically learned ARP entries, in seconds. The new value applies only to ARP entries that are dynamically learned after the new value is set. Previously existing ARP entries expire after the previously configured aging time. + */ + Timeout uint32 `json:"timeout,omitempty"` + /** + * enable/disable arp spoofing validation + */ + Spoofvalidation string `json:"spoofvalidation,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go new file mode 100644 index 000000000..7fff77b39 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for bridge group resource. +*/ +type Bridgegroup struct { + /** + * An integer that uniquely identifies the bridge group. + */ + Id uint32 `json:"id,omitempty"` + /** + * Enable dynamic routing for this bridgegroup. + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Enable all IPv6 dynamic routing protocols on all VLANs bound to this bridgegroup. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line. + */ + Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + Portbitmap string `json:"portbitmap,omitempty"` + Tagbitmap string `json:"tagbitmap,omitempty"` + Ifaces string `json:"ifaces,omitempty"` + Tagifaces string `json:"tagifaces,omitempty"` + Rnat string `json:"rnat,omitempty"` + Partitionname string `json:"partitionname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go new file mode 100644 index 000000000..5b00ca727 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to bridgegroup_binding. +*/ +type Bridgegroupbinding struct { + /** + * The name of the bridge group.
Minimum value = 1
Maximum value = 1000 + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip6_binding.go new file mode 100644 index 000000000..6bd572035 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip6_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to bridgegroup. +*/ +type Bridgegroupip6binding struct { + /** + * The IP address assigned to the bridge group. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Temporary flag used for internal purpose. + */ + Rnat bool `json:"rnat,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * The integer that uniquely identifies the bridge group. + */ + Id uint32 `json:"id,omitempty"` + /** + * A subnet mask associated with the network address. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip_binding.go new file mode 100644 index 000000000..c4fff48f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_ip_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to bridgegroup. +*/ +type Bridgegroupipbinding struct { + /** + * The IP address assigned to the bridge group. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The network mask for the subnet defined for the bridge group. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Temporary flag used for internal purpose. + */ + Rnat bool `json:"rnat,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * The integer that uniquely identifies the bridge group. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go new file mode 100644 index 000000000..bd25cf086 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the vlan that can be bound to bridgegroup. +*/ +type Bridgegroupvlanbinding struct { + /** + * Names of all member VLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Temporary flag used for internal purpose. + */ + Rnat bool `json:"rnat,omitempty"` + /** + * The integer that uniquely identifies the bridge group. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go new file mode 100644 index 000000000..fbc54c14b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for bridge table entry resource. +*/ +type Bridgetable struct { + /** + * The MAC address of the target. + */ + Mac string `json:"mac,omitempty"` + /** + * The VXLAN to which this address is associated. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * The IP address of the destination VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides. + */ + Vtep string `json:"vtep,omitempty"` + /** + * The VXLAN VNI Network Identifier (or VXLAN Segment ID) to use to connect to the remote VXLAN tunnel endpoint. If omitted the value specified as vxlan will be used. + */ + Vni uint32 `json:"vni,omitempty"` + /** + * The vlan on which to send multicast packets when the VXLAN tunnel endpoint is a muticast group address. + */ + Devicevlan uint32 `json:"devicevlan,omitempty"` + /** + * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. + */ + Bridgeage uint32 `json:"bridgeage,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + /** + * VLAN whose entries are to be removed. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * INTERFACE whose entries are to be removed. + */ + Ifnum string `json:"ifnum,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + Type string `json:"type,omitempty"` + Channel string `json:"channel,omitempty"` + Controlplane string `json:"controlplane,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go new file mode 100644 index 000000000..76a44430a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go @@ -0,0 +1,191 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for channel resource. +*/ +type Channel struct { + /** + * ID for the LA channel or cluster LA channel or LR channel to be created. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation, where x can range from 1 to 4. Cannot be changed after the LA channel is created. + */ + Id string `json:"id,omitempty"` + /** + * Interfaces to be bound to the LA channel of a Citrix ADC or to the LA channel of a cluster configuration. + For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). + For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2/1/3). + where C can take one of the following values: + * 0 - Indicates a management interface. + * 1 - Indicates a 1 Gbps port. + * 10 - Indicates a 10 Gbps port. + U is a unique integer for representing an interface in a particular port group. + N is the ID of the node to which an interface belongs in a cluster configuration. + Use spaces to separate multiple entries. + */ + Ifnum []string `json:"ifnum,omitempty"` + /** + * Enable or disable the LA channel. + */ + State string `json:"state,omitempty"` + /** + * The initital mode for the LA channel. + */ + Mode string `json:"mode,omitempty"` + /** + * The 'connection' distribution mode for the LA channel. + */ + Conndistr string `json:"conndistr,omitempty"` + /** + * The 'MAC' distribution mode for the LA channel. + */ + Macdistr string `json:"macdistr,omitempty"` + /** + * Specifies a MAC address for the LA channels configured in Citrix ADC virtual appliances (VPX). This MAC address is persistent after each reboot. + If you don't specify this parameter, a MAC address is generated randomly for each LA channel. These MAC addresses change after each reboot. + */ + Lamac string `json:"lamac,omitempty"` + /** + * Ethernet speed of the channel, in Mbps. If the speed of any bound interface is greater than or equal to the value set for this parameter, the state of the interface is UP. Otherwise, the state is INACTIVE. Bound Interfaces whose state is INACTIVE do not process any traffic. + */ + Speed string `json:"speed,omitempty"` + /** + * Specifies the flow control type for this LA channel to manage the flow of frames. Flow control is a function as mentioned in clause 31 of the IEEE 802.3 standard. Flow control allows congested ports to pause traffic from the peer device. Flow control is achieved by sending PAUSE frames. + */ + Flowctl string `json:"flowctl,omitempty"` + /** + * In a High Availability (HA) configuration, monitor the LA channel for failure events. Failure of any LA channel that has HA MON enabled triggers HA failover. + */ + Hamonitor string `json:"hamonitor,omitempty"` + /** + * In a High Availability (HA) configuration, configure the LA channel for sending heartbeats. LA channel that has HA Heartbeat disabled should not send the heartbeats. + */ + Haheartbeat string `json:"haheartbeat,omitempty"` + /** + * Adds a four-byte 802.1q tag to every packet sent on this channel. The ON setting applies tags for all VLANs that are bound to this channel. OFF applies the tag for all VLANs other than the native VLAN. + */ + Tagall string `json:"tagall,omitempty"` + /** + * This is deprecated by tagall + */ + Trunk string `json:"trunk,omitempty"` + /** + * Alias name for the LA channel. Used only to enhance readability. To perform any operations, you have to specify the LA channel ID. + */ + Ifalias string `json:"ifalias,omitempty"` + /** + * Low threshold value for the throughput of the LA channel, in Mbps. In an high availability (HA) configuration, failover is triggered when the LA channel has HA MON enabled and the throughput is below the specified threshold. + */ + Throughput uint32 `json:"throughput,omitempty"` + /** + * High threshold value for the bandwidth usage of the LA channel, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the LA channel is greater than or equal to the specified high threshold value. + */ + Bandwidthhigh uint32 `json:"bandwidthhigh,omitempty"` + /** + * Normal threshold value for the bandwidth usage of the LA channel, in Mbps. When the bandwidth usage of the LA channel returns to less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. + */ + Bandwidthnormal uint32 `json:"bandwidthnormal,omitempty"` + /** + * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). + */ + Mtu uint32 `json:"mtu,omitempty"` + /** + * Specifies the minimum throughput threshold (in Mbps) to be met by the active subchannel. Setting this parameter automatically divides an LACP channel into logical subchannels, with one subchannel active and the others in standby mode. When the maximum supported throughput of the active channel falls below the lrMinThroughput value, link failover occurs and a standby subchannel becomes active. + */ + Lrminthroughput uint32 `json:"lrminthroughput,omitempty"` + /** + * Link Redundancy for Cluster LAG. + */ + Linkredundancy string `json:"linkredundancy,omitempty"` + + //------- Read only Parameter ---------; + + Devicename string `json:"devicename,omitempty"` + Unit string `json:"unit,omitempty"` + Description string `json:"description,omitempty"` + Flags string `json:"flags,omitempty"` + Actualmtu string `json:"actualmtu,omitempty"` + Vlan string `json:"vlan,omitempty"` + Mac string `json:"mac,omitempty"` + Uptime string `json:"uptime,omitempty"` + Downtime string `json:"downtime,omitempty"` + Reqmedia string `json:"reqmedia,omitempty"` + Reqspeed string `json:"reqspeed,omitempty"` + Reqduplex string `json:"reqduplex,omitempty"` + Reqflowcontrol string `json:"reqflowcontrol,omitempty"` + Media string `json:"media,omitempty"` + Actspeed string `json:"actspeed,omitempty"` + Duplex string `json:"duplex,omitempty"` + Actflowctl string `json:"actflowctl,omitempty"` + Lamode string `json:"lamode,omitempty"` + Autoneg string `json:"autoneg,omitempty"` + Autonegresult string `json:"autonegresult,omitempty"` + Tagged string `json:"tagged,omitempty"` + Taggedany string `json:"taggedany,omitempty"` + Taggedautolearn string `json:"taggedautolearn,omitempty"` + Hangdetect string `json:"hangdetect,omitempty"` + Hangreset string `json:"hangreset,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Intfstate string `json:"intfstate,omitempty"` + Rxpackets string `json:"rxpackets,omitempty"` + Rxbytes string `json:"rxbytes,omitempty"` + Rxerrors string `json:"rxerrors,omitempty"` + Rxdrops string `json:"rxdrops,omitempty"` + Txpackets string `json:"txpackets,omitempty"` + Txbytes string `json:"txbytes,omitempty"` + Txerrors string `json:"txerrors,omitempty"` + Txdrops string `json:"txdrops,omitempty"` + Indisc string `json:"indisc,omitempty"` + Outdisc string `json:"outdisc,omitempty"` + Fctls string `json:"fctls,omitempty"` + Hangs string `json:"hangs,omitempty"` + Stsstalls string `json:"stsstalls,omitempty"` + Txstalls string `json:"txstalls,omitempty"` + Rxstalls string `json:"rxstalls,omitempty"` + Bdgmuted string `json:"bdgmuted,omitempty"` + Vmac string `json:"vmac,omitempty"` + Vmac6 string `json:"vmac6,omitempty"` + Reqthroughput string `json:"reqthroughput,omitempty"` + Actthroughput string `json:"actthroughput,omitempty"` + Backplane string `json:"backplane,omitempty"` + Cleartime string `json:"cleartime,omitempty"` + Lacpmode string `json:"lacpmode,omitempty"` + Lacptimeout string `json:"lacptimeout,omitempty"` + Lacpactorpriority string `json:"lacpactorpriority,omitempty"` + Lacpactorportno string `json:"lacpactorportno,omitempty"` + Lacppartnerstate string `json:"lacppartnerstate,omitempty"` + Lacppartnertimeout string `json:"lacppartnertimeout,omitempty"` + Lacppartneraggregation string `json:"lacppartneraggregation,omitempty"` + Lacppartnerinsync string `json:"lacppartnerinsync,omitempty"` + Lacppartnercollecting string `json:"lacppartnercollecting,omitempty"` + Lacppartnerdistributing string `json:"lacppartnerdistributing,omitempty"` + Lacppartnerdefaulted string `json:"lacppartnerdefaulted,omitempty"` + Lacppartnerexpired string `json:"lacppartnerexpired,omitempty"` + Lacppartnerpriority string `json:"lacppartnerpriority,omitempty"` + Lacppartnersystemmac string `json:"lacppartnersystemmac,omitempty"` + Lacppartnersystempriority string `json:"lacppartnersystempriority,omitempty"` + Lacppartnerportno string `json:"lacppartnerportno,omitempty"` + Lacppartnerkey string `json:"lacppartnerkey,omitempty"` + Lacpactoraggregation string `json:"lacpactoraggregation,omitempty"` + Lacpactorinsync string `json:"lacpactorinsync,omitempty"` + Lacpactorcollecting string `json:"lacpactorcollecting,omitempty"` + Lacpactordistributing string `json:"lacpactordistributing,omitempty"` + Lacpportmuxstate string `json:"lacpportmuxstate,omitempty"` + Lacpportrxstat string `json:"lacpportrxstat,omitempty"` + Lacpportselectstate string `json:"lacpportselectstate,omitempty"` + Lldpmode string `json:"lldpmode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_binding.go new file mode 100644 index 000000000..2c57e65de --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_binding.go @@ -0,0 +1,30 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to channel_binding. +*/ +type Channelbinding struct { + /** + * ID of an LA channel or LA channel in cluster configuration whose details you want the Citrix ADC to display. + Specify an LA channel in LA/x notation, where x can range from 1 to 8 or a cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation , where x can range from 1 to 4.
Minimum value = 1 + */ + Id string `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go new file mode 100644 index 000000000..5c0ca735c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to channel. +*/ +type Channelinterfacebinding struct { + /** + * Interfaces to be bound to the LA channel of a Citrix ADC or to the LA channel of a cluster configuration. + For an LA channel of a Citrix ADC, specify an interface in C/U notation (for example, 1/3). + For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2/1/3). + where C can take one of the following values: + * 0 - Indicates a management interface. + * 1 - Indicates a 1 Gbps port. + * 10 - Indicates a 10 Gbps port. + U is a unique integer for representing an interface in a particular port group. + N is the ID of the node to which an interface belongs in a cluster configuration. + Use spaces to separate multiple entries. + */ + Ifnum []string `json:"ifnum,omitempty"` + /** + * The mode(AUTO/MANNUAL) for the LA channel. + */ + Lamode string `json:"lamode,omitempty"` + /** + * State of the member interfaces. + */ + Slavestate uint32 `json:"slavestate,omitempty"` + /** + * Media type of the member interfaces. + */ + Slavemedia uint32 `json:"slavemedia,omitempty"` + /** + * Speed of the member interfaces. + */ + Slavespeed uint32 `json:"slavespeed,omitempty"` + /** + * Duplex of the member interfaces. + */ + Slaveduplex uint32 `json:"slaveduplex,omitempty"` + /** + * Flowcontrol of the member interfaces. + */ + Slaveflowctl uint32 `json:"slaveflowctl,omitempty"` + /** + * UP time of the member interfaces. + */ + Slavetime uint32 `json:"slavetime,omitempty"` + /** + * LR set member interface state(active/inactive). + */ + Lractiveintf bool `json:"lractiveintf,omitempty"` + /** + * New attribute added to identify the source of cmd, when SVM fires the nitro cmd, it will set the value of SVMCMD to be 1. + */ + Svmcmd uint32 `json:"svmcmd,omitempty"` + /** + * ID of the LA channel or the cluster LA channel to which you want to bind interfaces. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or a cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation , where x can range from 1 to 4. + */ + Id string `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ci.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ci.go new file mode 100644 index 000000000..2260aff5c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ci.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for "CI" resource. +*/ +type Ci struct { + + //------- Read only Parameter ---------; + + Ifaces string `json:"ifaces,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go new file mode 100644 index 000000000..602a6b71a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for "FIS" resource. +*/ +type Fis struct { + /** + * Name for the FIS to be created. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). Note: In a cluster setup, the FIS name on each node must be unique. + */ + Name string `json:"name,omitempty"` + /** + * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + + //------- Read only Parameter ---------; + + Ifaces string `json:"ifaces,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_binding.go new file mode 100644 index 000000000..098153915 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to fis_binding. +*/ +type Fisbinding struct { + /** + * The name of the FIS configured on the appliance. .
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go new file mode 100644 index 000000000..09e011562 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the channel that can be bound to fis. +*/ +type Fischannelbinding struct { + /** + * Interface to be bound to the FIS, specified in slot/port notation (for example, 1/3) + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * The name of the FIS to which you want to bind interfaces. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go new file mode 100644 index 000000000..b8f3d92f5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to fis. +*/ +type Fisinterfacebinding struct { + /** + * Interface to be bound to the FIS, specified in slot/port notation (for example, 1/3) + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * The name of the FIS to which you want to bind interfaces. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go new file mode 100644 index 000000000..1b5232448 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for session forward resource. +*/ +type Forwardingsession struct { + /** + * Name for the forwarding session rule. Can begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rule" or 'my rule'). + */ + Name string `json:"name,omitempty"` + /** + * An IPv4 network address or IPv6 prefix of a network from which the forwarded traffic originates or to which it is destined. + */ + Network string `json:"network,omitempty"` + /** + * Subnet mask associated with the network. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Name of any configured ACL6 whose action is ALLOW. The rule of the ACL6 is used as a forwarding session rule. + */ + Acl6name string `json:"acl6name,omitempty"` + /** + * Name of any configured ACL whose action is ALLOW. The rule of the ACL is used as a forwarding session rule. + */ + Aclname string `json:"aclname,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the forwarding session. + */ + Connfailover string `json:"connfailover,omitempty"` + /** + * Cache the source ip address and mac address of the DA servers. + */ + Sourceroutecache string `json:"sourceroutecache,omitempty"` + /** + * Enabling this option on forwarding session will not steer the packet to flow processor. Instead, packet will be routed. + */ + Processlocal string `json:"processlocal,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go new file mode 100644 index 000000000..7d16b8b98 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for inbound nat resource. +*/ +type Inat struct { + /** + * Name for the Inbound NAT (INAT) entry. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). + */ + Name string `json:"name,omitempty"` + /** + * Public IP address of packets received on the Citrix ADC. Can be aNetScaler-owned VIP or VIP6 address. + */ + Publicip string `json:"publicip,omitempty"` + /** + * IP address of the server to which the packet is sent by the Citrix ADC. Can be an IPv4 or IPv6 address. + */ + Privateip string `json:"privateip,omitempty"` + /** + * Stateless translation. + */ + Mode string `json:"mode,omitempty"` + /** + * Enable TCP proxy, which enables the Citrix ADC to optimize the RNAT TCP traffic by using Layer 4 features. + */ + Tcpproxy string `json:"tcpproxy,omitempty"` + /** + * Enable the FTP protocol on the server for transferring files between the client and the server. + */ + Ftp string `json:"ftp,omitempty"` + /** + * To enable/disable TFTP (Default DISABLED). + */ + Tftp string `json:"tftp,omitempty"` + /** + * Enable the Citrix ADC to retain the source IP address of packets before sending the packets to the server. + */ + Usip string `json:"usip,omitempty"` + /** + * Enable the Citrix ADC to use a SNIP address as the source IP address of packets before sending the packets to the server. + */ + Usnip string `json:"usnip,omitempty"` + /** + * Unique IP address used as the source IP address in packets sent to the server. Must be a MIP or SNIP address. + */ + Proxyip string `json:"proxyip,omitempty"` + /** + * Enable the Citrix ADC to proxy the source port of packets before sending the packets to the server. + */ + Useproxyport string `json:"useproxyport,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the INAT session + */ + Connfailover string `json:"connfailover,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go new file mode 100644 index 000000000..194245d7d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for INAT parameter resource. +*/ +type Inatparam struct { + /** + * The prefix used for translating packets received from private IPv6 servers into IPv4 packets. This prefix has a length of 96 bits (128-32 = 96). The IPv6 servers embed the destination IP address of the IPv4 servers or hosts in the last 32 bits of the destination IP address field of the IPv6 packets. The first 96 bits of the destination IP address field are set as the IPv6 NAT prefix. IPv6 packets addressed to this prefix have to be routed to the Citrix ADC to ensure that the IPv6-IPv4 translation is done by the appliance. + */ + Nat46v6prefix string `json:"nat46v6prefix,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Ignore TOS. + */ + Nat46ignoretos string `json:"nat46ignoretos,omitempty"` + /** + * Calculate checksum for UDP packets with zero checksum + */ + Nat46zerochecksum string `json:"nat46zerochecksum,omitempty"` + /** + * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. + */ + Nat46v6mtu uint32 `json:"nat46v6mtu,omitempty"` + /** + * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets + */ + Nat46fragheader string `json:"nat46fragheader,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go new file mode 100644 index 000000000..c069f491f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for "Interface Pair" resource. +*/ +type Interfacepair struct { + /** + * The Interface pair id + */ + Id uint32 `json:"id,omitempty"` + /** + * The constituent interfaces in the interface pair + */ + Ifnum []string `json:"ifnum,omitempty"` + + //------- Read only Parameter ---------; + + Ifaces string `json:"ifaces,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnel.go new file mode 100644 index 000000000..097971773 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnel.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for ip6 Tunnel resource. +*/ +type Ip6tunnel struct { + /** + * Name for the IPv6 Tunnel. Cannot be changed after the service group is created. Must begin with a number or letter, and can consist of letters, numbers, and the @ _ - . (period) : (colon) # and space ( ) characters. + */ + Name string `json:"name,omitempty"` + /** + * An IPv6 address of the remote Citrix ADC used to set up the tunnel. + */ + Remote string `json:"remote,omitempty"` + /** + * An IPv6 address of the local Citrix ADC used to set up the tunnel. + */ + Local string `json:"local,omitempty"` + /** + * The owner node group in a Cluster for the tunnel. + */ + Ownergroup string `json:"ownergroup,omitempty"` + + //------- Read only Parameter ---------; + + Remoteip string `json:"remoteip,omitempty"` + Type string `json:"type,omitempty"` + Encapip string `json:"encapip,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go new file mode 100644 index 000000000..be570903d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for ip6 tunnel parameter resource. +*/ +type Ip6tunnelparam struct { + /** + * Common source IPv6 address for all IPv6 tunnels. Must be a SNIP6 or VIP6 address. + */ + Srcip string `json:"srcip,omitempty"` + /** + * Drop any packet that requires fragmentation. + */ + Dropfrag string `json:"dropfrag,omitempty"` + /** + * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation. Applies only if dropFragparameter is set to NO. + */ + Dropfragcputhreshold uint32 `json:"dropfragcputhreshold,omitempty"` + /** + * Use a different source IPv6 address for each new session through a particular IPv6 tunnel, as determined by round robin selection of one of the SNIP6 addresses. This setting is ignored if a common global source IPv6 address has been specified for all the IPv6 tunnels. This setting does not apply to a tunnel for which a source IPv6 address has been specified. + */ + Srciproundrobin string `json:"srciproundrobin,omitempty"` + /** + * Use client source IPv6 address as source IPv6 address for outer tunnel IPv6 header + */ + Useclientsourceipv6 string `json:"useclientsourceipv6,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go new file mode 100644 index 000000000..8d07b4a48 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for network ipset resource. +*/ +type Ipset struct { + /** + * Name for the IP set. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the IP set is created. Choose a name that helps identify the IP set. + */ + Name string `json:"name,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_binding.go new file mode 100644 index 000000000..4c856b464 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to ipset_binding. +*/ +type Ipsetbinding struct { + /** + * Name of the IP set whose details you want to display.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip6_binding.go new file mode 100644 index 000000000..4df432836 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip6_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to ipset. +*/ +type Ipsetip6binding struct { + /** + * One or more IP addresses bound to the IP set. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the IP set to which to bind IP addresses. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip_binding.go new file mode 100644 index 000000000..3d6dac0d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_ip_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to ipset. +*/ +type Ipsetipbinding struct { + /** + * One or more IP addresses bound to the IP set. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the IP set to which to bind IP addresses. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go new file mode 100644 index 000000000..dd144af97 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for ip Tunnel resource. +*/ +type Iptunnel struct { + /** + * Name for the IP tunnel. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). + */ + Name string `json:"name,omitempty"` + /** + * Public IPv4 address, of the remote device, used to set up the tunnel. For this parameter, you can alternatively specify a network address. + */ + Remote string `json:"remote,omitempty"` + /** + * Subnet mask of the remote IP address of the tunnel. + */ + Remotesubnetmask string `json:"remotesubnetmask,omitempty"` + /** + * Type of Citrix ADC owned public IPv4 address, configured on the local Citrix ADC and used to set up the tunnel. + */ + Local string `json:"local,omitempty"` + /** + * Name of the protocol to be used on this tunnel. + */ + Protocol string `json:"protocol,omitempty"` + /** + * The payload GRE will carry + */ + Grepayload string `json:"grepayload,omitempty"` + /** + * Name of IPSec profile to be associated. + */ + Ipsecprofilename string `json:"ipsecprofilename,omitempty"` + /** + * The vlan for mulicast packets + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * The owner node group in a Cluster for the iptunnel. + */ + Ownergroup string `json:"ownergroup,omitempty"` + + //------- Read only Parameter ---------; + + Sysname string `json:"sysname,omitempty"` + Type string `json:"type,omitempty"` + Encapip string `json:"encapip,omitempty"` + Channel string `json:"channel,omitempty"` + Tunneltype string `json:"tunneltype,omitempty"` + Ipsectunnelstatus string `json:"ipsectunnelstatus,omitempty"` + Refcnt string `json:"refcnt,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go new file mode 100644 index 000000000..b697988d4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for ip tunnel parameter resource. +*/ +type Iptunnelparam struct { + /** + * Common source-IP address for all tunnels. For a specific tunnel, this global setting is overridden if you have specified another source IP address. Must be a MIP or SNIP address. + */ + Srcip string `json:"srcip,omitempty"` + /** + * Drop any IP packet that requires fragmentation before it is sent through the tunnel. + */ + Dropfrag string `json:"dropfrag,omitempty"` + /** + * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation to use the IP tunnel. Applies only if dropFragparameter is set to NO. The default value, 0, specifies that this parameter is not set. + */ + Dropfragcputhreshold uint32 `json:"dropfragcputhreshold,omitempty"` + /** + * Use a different source IP address for each new session through a particular IP tunnel, as determined by round robin selection of one of the SNIP addresses. This setting is ignored if a common global source IP address has been specified for all the IP tunnels. This setting does not apply to a tunnel for which a source IP address has been specified. + */ + Srciproundrobin string `json:"srciproundrobin,omitempty"` + /** + * Strict PBR check for IPSec packets received through tunnel + */ + Enablestrictrx string `json:"enablestrictrx,omitempty"` + /** + * Strict PBR check for packets to be sent IPSec protected + */ + Enablestricttx string `json:"enablestricttx,omitempty"` + /** + * The shared MAC used for shared IP between cluster nodes/HA peers + */ + Mac string `json:"mac,omitempty"` + /** + * Use client source IP as source IP for outer tunnel IP header + */ + Useclientsourceip string `json:"useclientsourceip,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go new file mode 100644 index 000000000..fabe61726 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for ip v6 resource. +*/ +type Ipv6 struct { + /** + * Enable the Citrix ADC to learn about various routes from Router Advertisement (RA) and Router Solicitation (RS) messages sent by the routers. + */ + Ralearning string `json:"ralearning,omitempty"` + /** + * Enable the Citrix ADC to do Router Redirection. + */ + Routerredirection string `json:"routerredirection,omitempty"` + /** + * Base reachable time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, that the Citrix ADC assumes an adjacent device is reachable after receiving a reachability confirmation. + */ + Ndbasereachtime uint32 `json:"ndbasereachtime,omitempty"` + /** + * Retransmission time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, between retransmitted Neighbor Solicitation (NS) messages, to an adjacent device. + */ + Ndretransmissiontime uint32 `json:"ndretransmissiontime,omitempty"` + /** + * Prefix used for translating packets from private IPv6 servers to IPv4 packets. This prefix has a length of 96 bits (128-32 = 96). The IPv6 servers embed the destination IP address of the IPv4 servers or hosts in the last 32 bits of the destination IP address field of the IPv6 packets. The first 96 bits of the destination IP address field are set as the IPv6 NAT prefix. IPv6 packets addressed to this prefix have to be routed to the Citrix ADC to ensure that the IPv6-IPv4 translation is done by the appliance. + */ + Natprefix string `json:"natprefix,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Enable the Citrix ADC to do Duplicate Address + Detection (DAD) for all the Citrix ADC owned IPv6 addresses regardless of whether they are obtained through stateless auto configuration, DHCPv6, or manual configuration. + */ + Dodad string `json:"dodad,omitempty"` + /** + * IPV6 NATPREFIX used in NAT46 scenario when USIP is turned on + */ + Usipnatprefix string `json:"usipnatprefix,omitempty"` + + //------- Read only Parameter ---------; + + Basereachtime string `json:"basereachtime,omitempty"` + Reachtime string `json:"reachtime,omitempty"` + Ndreachtime string `json:"ndreachtime,omitempty"` + Retransmissiontime string `json:"retransmissiontime,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go new file mode 100644 index 000000000..a4f7d8e29 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Layer 2 related parameter resource. +*/ +type L2param struct { + /** + * When mbf_instant_learning is enabled, learn any changes in peer's MAC after this time interval, which is in 10ms ticks. + */ + Mbfpeermacupdate uint32 `json:"mbfpeermacupdate,omitempty"` + /** + * Maximum bridge collision for loop detection + */ + Maxbridgecollision uint32 `json:"maxbridgecollision,omitempty"` + /** + * Set/reset proxy ARP in bridge group deployment + */ + Bdggrpproxyarp string `json:"bdggrpproxyarp,omitempty"` + /** + * Bridging settings for C2C behavior. If enabled, each PE will learn MAC entries independently. Otherwise, when L2 mode is ON, learned MAC entries on a PE will be broadcasted to all other PEs. + */ + Bdgsetting string `json:"bdgsetting,omitempty"` + /** + * Send GARP messagess on VRID-configured interfaces upon failover + */ + Garponvridintf string `json:"garponvridintf,omitempty"` + /** + * Allows MAC mode vserver to pick and forward the packets even if it is destined to Citrix ADC owned VIP. + */ + Macmodefwdmypkt string `json:"macmodefwdmypkt,omitempty"` + /** + * Use Citrix ADC MAC for all outgoing packets. + */ + Usemymac string `json:"usemymac,omitempty"` + /** + * Proxies the ARP as Citrix ADC MAC for FreeBSD. + */ + Proxyarp string `json:"proxyarp,omitempty"` + /** + * Set/reset REPLY form of GARP + */ + Garpreply string `json:"garpreply,omitempty"` + /** + * Enable instant learning of MAC changes in MBF mode. + */ + Mbfinstlearning string `json:"mbfinstlearning,omitempty"` + /** + * Enable the reset interface upon HA failover. + */ + Rstintfonhafo string `json:"rstintfonhafo,omitempty"` + /** + * Control source parameters (IP and Port) for FreeBSD initiated traffic. If Enabled, source parameters are retained. Else proxy the source parameters based on next hop. + */ + Skipproxyingbsdtraffic string `json:"skipproxyingbsdtraffic,omitempty"` + /** + * Return to ethernet sender. + */ + Returntoethernetsender string `json:"returntoethernetsender,omitempty"` + /** + * Stop Update of server mac change to NAT sessions. + */ + Stopmacmoveupdate string `json:"stopmacmoveupdate,omitempty"` + /** + * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. + */ + Bridgeagetimeout uint32 `json:"bridgeagetimeout,omitempty"` + /** + * Control source parameters (IP and Port) for FreeBSD initiated traffic. If enabled proxy the source parameters based on netprofile source ip. If netprofile does not have ip configured, then it will continue to use NSIP as earlier. + */ + Usenetprofilebsdtraffic string `json:"usenetprofilebsdtraffic,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go new file mode 100644 index 000000000..7bda714d4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go @@ -0,0 +1,85 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Layer 3 related parameter resource. +*/ +type L3param struct { + /** + * Perform NAT if only the source is in the private network + */ + Srcnat string `json:"srcnat,omitempty"` + /** + * NS generated ICMP pkts per 10ms rate threshold + */ + Icmpgenratethreshold uint32 `json:"icmpgenratethreshold,omitempty"` + /** + * USNIP/USIP settings override RNAT settings for configured + service/virtual server traffic.. + */ + Overridernat string `json:"overridernat,omitempty"` + /** + * Enable dropping the IP DF flag. + */ + Dropdfflag string `json:"dropdfflag,omitempty"` + /** + * Enable round robin usage of mapped IPs. + */ + Miproundrobin string `json:"miproundrobin,omitempty"` + /** + * Enable external loopback. + */ + Externalloopback string `json:"externalloopback,omitempty"` + /** + * Enable/Disable learning PMTU of IP tunnel when ICMP error does not contain connection information. + */ + Tnlpmtuwoconn string `json:"tnlpmtuwoconn,omitempty"` + /** + * Enable detection of stray server side pkts in USIP mode. + */ + Usipserverstraypkt string `json:"usipserverstraypkt,omitempty"` + /** + * Enable forwarding of ICMP fragments. + */ + Forwardicmpfragments string `json:"forwardicmpfragments,omitempty"` + /** + * Enable dropping of IP fragments. + */ + Dropipfragments string `json:"dropipfragments,omitempty"` + /** + * Parameter to tune acl logging time + */ + Acllogtime uint32 `json:"acllogtime,omitempty"` + /** + * Do not apply ACLs for internal ports + */ + Implicitaclallow string `json:"implicitaclallow,omitempty"` + /** + * Enable/Disable Dynamic routing on partition. This configuration is not applicable to default partition + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Enable/Disable IPv6 Dynamic routing + */ + Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` + /** + * Enable/Disable IPv4 Class E address clients + */ + Allowclasseipv4 string `json:"allowclasseipv4,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l4param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l4param.go new file mode 100644 index 000000000..d197afecf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l4param.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Layer 4 related parameter resource. +*/ +type L4param struct { + /** + * Layer 2 connection method based on the combination of channel number, MAC address and VLAN. It is tuned with l2conn param of lb vserver. If l2conn of lb vserver is ON then method specified here will be used to identify a connection in addition to the 4-tuple (::::). + */ + L2connmethod string `json:"l2connmethod,omitempty"` + /** + * In L4 switch topology, always clients and servers are on the same side. Enable l4switch to allow such connections. + */ + L4switch string `json:"l4switch,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go new file mode 100644 index 000000000..0081e3f42 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Link aggregation control protocol resource. +*/ +type Lacp struct { + /** + * Priority number that determines which peer device of an LACP LA channel can have control over the LA channel. This parameter is globally applied to all LACP channels on the Citrix ADC. The lower the number, the higher the priority. + */ + Syspriority uint32 `json:"syspriority,omitempty"` + /** + * The owner node in a cluster for which we want to set the lacp priority. Owner node can vary from 0 to 31. Ownernode value of 254 is used for Cluster. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + + //------- Read only Parameter ---------; + + Devicename string `json:"devicename,omitempty"` + Mac string `json:"mac,omitempty"` + Flags string `json:"flags,omitempty"` + Lacpkey string `json:"lacpkey,omitempty"` + Clustersyspriority string `json:"clustersyspriority,omitempty"` + Clustermac string `json:"clustermac,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset.go new file mode 100644 index 000000000..28f7caf1a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for link set resource. +*/ +type Linkset struct { + /** + * Unique identifier for the linkset. Must be of the form LS/x, where x can be an integer from 1 to 32. + */ + Id string `json:"id,omitempty"` + + //------- Read only Parameter ---------; + + Ifnum string `json:"ifnum,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_binding.go new file mode 100644 index 000000000..364de80ce --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to linkset_binding. +*/ +type Linksetbinding struct { + /** + * ID of the linkset for which to display information. If an ID is not provided, the display includes information about all linksets that are available in the cluster. + */ + Id string `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_channel_binding.go new file mode 100644 index 000000000..28bacba72 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_channel_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the channel that can be bound to linkset. +*/ +type Linksetchannelbinding struct { + /** + * The interfaces to be bound to the linkset. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * ID of the linkset to which to bind the interfaces. + */ + Id string `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_interface_binding.go new file mode 100644 index 000000000..6bf2b1307 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/linkset_interface_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to linkset. +*/ +type Linksetinterfacebinding struct { + /** + * The interfaces to be bound to the linkset. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * ID of the linkset to which to bind the interfaces. + */ + Id string `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go new file mode 100644 index 000000000..bbb01442d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for MAP-T Basic Mapping rule resource. +*/ +type Mapbmr struct { + /** + * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). + The Basic Mapping Rule information allows a MAP BR to determine source IPv4 address from the IPv6 packet sent from MAP CE device. + Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE + */ + Name string `json:"name,omitempty"` + /** + * IPv6 prefix of Customer Edge(CE) device.MAP-T CE will send ipv6 packets with this ipv6 prefix as source ipv6 address prefix + */ + Ruleipv6prefix string `json:"ruleipv6prefix,omitempty"` + /** + * Start bit position of Port Set Identifier(PSID) value in Embedded Address (EA) bits. + */ + Psidoffset uint32 `json:"psidoffset,omitempty"` + /** + * The Embedded Address (EA) bit field encodes the CE-specific IPv4 address and port information. The EA bit field, which is unique for a + given Rule IPv6 prefix. + */ + Eabitlength uint32 `json:"eabitlength,omitempty"` + /** + * Length of Port Set IdentifierPort Set Identifier(PSID) in Embedded Address (EA) bits + */ + Psidlength uint32 `json:"psidlength,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_binding.go new file mode 100644 index 000000000..95f0c64e9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_binding.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to mapbmr_binding. +*/ +type Mapbmrbinding struct { + /** + * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). + The Basic Mapping Rule information allows a MAP BR to determine source IPv4 address from the IPv6 packet sent from MAP CE device. + Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_bmrv4network_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_bmrv4network_binding.go new file mode 100644 index 000000000..4f1b1154d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr_bmrv4network_binding.go @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the bmrv4network that can be bound to mapbmr. +*/ +type Mapbmrbmrv4networkbinding struct { + /** + * IPv4 NAT address range of Customer Edge (CE). + */ + Network string `json:"network,omitempty"` + /** + * Subnet mask for the IPv4 address specified in the Network parameter. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Name for the Basic Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Basic Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapBmr bmr1 -natprefix 2005::/64 -EAbitLength 16 -psidoffset 6 -portsharingratio 8" ). + The Basic Mapping Rule information allows a MAP BR to determine source IPv4 address from the IPv6 packet sent from MAP CE device. + Also it allows to determine destination IPv6 address of MAP CE before sending packets to MAP CE + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdmr.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdmr.go new file mode 100644 index 000000000..e5af22cf6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdmr.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for MAP-T Default Mapping rule resource. +*/ +type Mapdmr struct { + /** + * Name for the Default Mapping Rule. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Default Mapping Rule is created. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDmr map1 -BRIpv6Prefix 2003::/96"). + Default Mapping Rule (DMR) is defined in terms of the IPv6 prefix advertised by one or more BRs, which provide external connectivity. A typical MAP-T CE will install an IPv4 default route using this rule. A BR will use this rule when translating all outside IPv4 source addresses to the IPv6 MAP domain. + */ + Name string `json:"name,omitempty"` + /** + * IPv6 prefix of Border Relay (Citrix ADC) device.MAP-T CE will send ipv6 packets to this ipv6 prefix.The DMR IPv6 prefix length SHOULD be 64 bits long by default and in any case MUST NOT exceed 96 bits + */ + Bripv6prefix string `json:"bripv6prefix,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain.go new file mode 100644 index 000000000..073f72671 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for MAP-T Map Domain resource. +*/ +type Mapdomain struct { + /** + * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1"). + */ + Name string `json:"name,omitempty"` + /** + * Default Mapping rule name. + */ + Mapdmrname string `json:"mapdmrname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_binding.go new file mode 100644 index 000000000..789b804ad --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to mapdomain_binding. +*/ +type Mapdomainbinding struct { + /** + * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1").
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_mapbmr_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_mapbmr_binding.go new file mode 100644 index 000000000..923bc86c0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapdomain_mapbmr_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the mapbmr that can be bound to mapdomain. +*/ +type Mapdomainmapbmrbinding struct { + /** + * Basic Mapping rule name. + */ + Mapbmrname string `json:"mapbmrname,omitempty"` + /** + * Name for the MAP Domain. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the MAP Domain is created . The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "add network MapDomain map1"). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64.go new file mode 100644 index 000000000..a99ed92e2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for nat64 config resource. +*/ +type Nat64 struct { + /** + * Name for the NAT64 rule. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. Choose a name that helps identify the NAT64 rule. + */ + Name string `json:"name,omitempty"` + /** + * Name of any configured ACL6 whose action is ALLOW. IPv6 Packets matching the condition of this ACL6 rule and destination IP address of these packets matching the NAT64 IPv6 prefix are considered for NAT64 translation. + */ + Acl6name string `json:"acl6name,omitempty"` + /** + * Name of the configured netprofile. The Citrix ADC selects one of the IP address in the netprofile as the source IP address of the translated IPv4 packet to be sent to the IPv4 server. + */ + Netprofile string `json:"netprofile,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go new file mode 100644 index 000000000..4607892d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for NAT64 parameter resource. +*/ +type Nat64param struct { + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Ignore TOS. + */ + Nat64ignoretos string `json:"nat64ignoretos,omitempty"` + /** + * Calculate checksum for UDP packets with zero checksum + */ + Nat64zerochecksum string `json:"nat64zerochecksum,omitempty"` + /** + * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. + */ + Nat64v6mtu uint32 `json:"nat64v6mtu,omitempty"` + /** + * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets + */ + Nat64fragheader string `json:"nat64fragheader,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go new file mode 100644 index 000000000..51ab021b5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for nd6 resource. +*/ +type Nd6 struct { + /** + * Link-local IPv6 address of the adjacent network device to add to the ND6 table. + */ + Neighbor string `json:"neighbor,omitempty"` + /** + * MAC address of the adjacent network device. + */ + Mac string `json:"mac,omitempty"` + /** + * Interface through which the adjacent network device is available, specified in slot/port notation (for example, 1/3). Use spaces to separate multiple entries. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * Integer value that uniquely identifies the VLAN on which the adjacent network device exists. + */ + Vlan int32 `json:"vlan,omitempty"` + /** + * ID of the VXLAN on which the IPv6 address of this ND6 entry is reachable. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * IP address of the VXLAN tunnel endpoint (VTEP) through which the IPv6 address of this ND6 entry is reachable. + */ + Vtep string `json:"vtep,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + Timeout string `json:"timeout,omitempty"` + Flags string `json:"flags,omitempty"` + Controlplane string `json:"controlplane,omitempty"` + Channel string `json:"channel,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go new file mode 100644 index 000000000..013a5b2d9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go @@ -0,0 +1,85 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for nd6 Router Advertisment configuration variables resource. +*/ +type Nd6ravariables struct { + /** + * The VLAN number. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Cease router advertisements on this vlan. + */ + Ceaserouteradv string `json:"ceaserouteradv,omitempty"` + /** + * whether the router sends periodic RAs and responds to Router Solicitations. + */ + Sendrouteradv string `json:"sendrouteradv,omitempty"` + /** + * Include source link layer address option in RA messages. + */ + Srclinklayeraddroption string `json:"srclinklayeraddroption,omitempty"` + /** + * Send only Unicast Router Advertisements in respond to Router Solicitations. + */ + Onlyunicastrtadvresponse string `json:"onlyunicastrtadvresponse,omitempty"` + /** + * Value to be placed in the Managed address configuration flag field. + */ + Managedaddrconfig string `json:"managedaddrconfig,omitempty"` + /** + * Value to be placed in the Other configuration flag field. + */ + Otheraddrconfig string `json:"otheraddrconfig,omitempty"` + /** + * Current Hop limit. + */ + Currhoplimit uint32 `json:"currhoplimit,omitempty"` + /** + * Maximum time allowed between unsolicited multicast RAs, in seconds. + */ + Maxrtadvinterval uint32 `json:"maxrtadvinterval,omitempty"` + /** + * Minimum time interval between RA messages, in seconds. + */ + Minrtadvinterval uint32 `json:"minrtadvinterval,omitempty"` + /** + * The Link MTU. + */ + Linkmtu uint32 `json:"linkmtu,omitempty"` + /** + * Reachable time, in milliseconds. + */ + Reachabletime uint32 `json:"reachabletime,omitempty"` + /** + * Retransmission time, in milliseconds. + */ + Retranstime uint32 `json:"retranstime,omitempty"` + /** + * Default life time, in seconds. + */ + Defaultlifetime int32 `json:"defaultlifetime,omitempty"` + + //------- Read only Parameter ---------; + + Lastrtadvtime string `json:"lastrtadvtime,omitempty"` + Nextrtadvdelay string `json:"nextrtadvdelay,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go new file mode 100644 index 000000000..7e0a59c62 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to nd6ravariables_binding. +*/ +type Nd6ravariablesbinding struct { + /** + * The VLAN number.
Minimum value = 1
Maximum value = 4094 + */ + Vlan uint32 `json:"vlan,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go new file mode 100644 index 000000000..b3060935b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the onlinkipv6prefix that can be bound to nd6ravariables. +*/ +type Nd6ravariablesonlinkipv6prefixbinding struct { + /** + * Onlink prefixes for RA messages. + */ + Ipv6prefix string `json:"ipv6prefix,omitempty"` + /** + * The VLAN number. + */ + Vlan uint32 `json:"vlan,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge.go new file mode 100644 index 000000000..25adc6cb7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for network bridge resource. +*/ +type Netbridge struct { + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + /** + * The vlan to vxlan mapping to be applied to this netbridge. + */ + Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_binding.go new file mode 100644 index 000000000..789d1dc57 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to netbridge_binding. +*/ +type Netbridgebinding struct { + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip6_binding.go new file mode 100644 index 000000000..5eff6df64 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to netbridge. +*/ +type Netbridgeip6binding struct { + /** + * The subnet that is extended by this network bridge. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The network mask for the subnet. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip_binding.go new file mode 100644 index 000000000..2342cc8b6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_ip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to netbridge. +*/ +type Netbridgeipbinding struct { + /** + * The subnet that is extended by this network bridge. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The network mask for the subnet. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_iptunnel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_iptunnel_binding.go new file mode 100644 index 000000000..8fcc8d07a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_iptunnel_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the iptunnel that can be bound to netbridge. +*/ +type Netbridgeiptunnelbinding struct { + /** + * The name of the tunnel that is a part of this bridge. + */ + Tunnel string `json:"tunnel,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go new file mode 100644 index 000000000..d16f23de5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the vlan that can be bound to netbridge. +*/ +type Netbridgevlanbinding struct { + /** + * The VLAN that is extended by this network bridge. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go new file mode 100644 index 000000000..45d9d3468 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Network profile resource. +*/ +type Netprofile struct { + /** + * Name for the net profile. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the profile is created. Choose a name that helps identify the net profile. + */ + Name string `json:"name,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * IP address or the name of an IP set. + */ + Srcip string `json:"srcip,omitempty"` + /** + * When the net profile is associated with a virtual server or its bound services, this option enables the Citrix ADC to use the same address, specified in the net profile, to communicate to servers for all sessions initiated from a particular client to the virtual server. + */ + Srcippersistency string `json:"srcippersistency,omitempty"` + /** + * USNIP/USIP settings override LSN settings for configured + service/virtual server traffic.. + */ + Overridelsn string `json:"overridelsn,omitempty"` + /** + * Response will be sent using learnt info if enabled. When creating a netprofile, if you do not set this parameter, the netprofile inherits the global MBF setting (available in the enable ns mode and disable ns mode CLI commands, or in the System > Settings > Configure modes > Configure Modes dialog box). However, you can override this setting after you create the netprofile + */ + Mbf string `json:"mbf,omitempty"` + /** + * Proxy Protocol Action (Enabled/Disabled) + */ + Proxyprotocol string `json:"proxyprotocol,omitempty"` + /** + * Proxy Protocol Version (V1/V2) + */ + Proxyprotocoltxversion string `json:"proxyprotocoltxversion,omitempty"` + /** + * ADC doesnt look for proxy header before TLS handshake, if enabled. Proxy protocol parsed after TLS handshake + */ + Proxyprotocolaftertlshandshake string `json:"proxyprotocolaftertlshandshake,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_binding.go new file mode 100644 index 000000000..27bfe37f3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to netprofile_binding. +*/ +type Netprofilebinding struct { + /** + * Name of the net profile whose details you want to display.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_natrule_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_natrule_binding.go new file mode 100644 index 000000000..ca765daa0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_natrule_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the natrule that can be bound to netprofile. +*/ +type Netprofilenatrulebinding struct { + /** + * IPv4 network address on whose traffic you want the Citrix ADC to do rewrite ip prefix. + */ + Natrule string `json:"natrule,omitempty"` + Netmask string `json:"netmask,omitempty"` + Rewriteip string `json:"rewriteip,omitempty"` + /** + * Name of the netprofile to which to bind port ranges. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_srcportset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_srcportset_binding.go new file mode 100644 index 000000000..3d6a5d02f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile_srcportset_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the srcportset that can be bound to netprofile. +*/ +type Netprofilesrcportsetbinding struct { + /** + * When the source port range is configured and associated with the netprofile bound to a service group, Citrix ADC will choose a port from the range configured for connection establishment at the backend servers. + */ + Srcportrange string `json:"srcportrange,omitempty"` + /** + * Name of the netprofile to which to bind port ranges. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go new file mode 100644 index 000000000..67447f4b5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for on-link IPv6 global prefixes for Router Advertisment resource. +*/ +type Onlinkipv6prefix struct { + /** + * Onlink prefixes for RA messages. + */ + Ipv6prefix string `json:"ipv6prefix,omitempty"` + /** + * RA Prefix onlink flag. + */ + Onlinkprefix string `json:"onlinkprefix,omitempty"` + /** + * RA Prefix Autonomus flag. + */ + Autonomusprefix string `json:"autonomusprefix,omitempty"` + /** + * Depricate the prefix. + */ + Depricateprefix string `json:"depricateprefix,omitempty"` + /** + * RA Prefix Autonomus flag. + */ + Decrementprefixlifetimes string `json:"decrementprefixlifetimes,omitempty"` + /** + * Valide life time of the prefix, in seconds. + */ + Prefixvalidelifetime uint32 `json:"prefixvalidelifetime,omitempty"` + /** + * Preferred life time of the prefix, in seconds. + */ + Prefixpreferredlifetime uint32 `json:"prefixpreferredlifetime,omitempty"` + + //------- Read only Parameter ---------; + + Prefixcurrvalidelft string `json:"prefixcurrvalidelft,omitempty"` + Prefixcurrpreferredlft string `json:"prefixcurrpreferredlft,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ptp.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ptp.go new file mode 100644 index 000000000..d91d9f953 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ptp.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Precision Time Protocol resource. +*/ +type Ptp struct { + /** + * Enables or disables Precision Time Protocol (PTP) on the appliance. If you disable PTP, make sure you enable Network Time Protocol (NTP) on the cluster. + */ + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go new file mode 100644 index 000000000..2643e8e48 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for RNAT configured route resource. +*/ +type Rnat struct { + /** + * The network address defined for the RNAT entry. + */ + Network string `json:"network,omitempty"` + /** + * The subnet mask for the network address. + */ + Netmask string `json:"netmask,omitempty"` + /** + * An extended ACL defined for the RNAT entry. + */ + Aclname string `json:"aclname,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Name for the RNAT4 rule. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. Choose a name that helps identify the RNAT4 rule. + */ + Name string `json:"name,omitempty"` + /** + * Port number to which the IPv4 packets are redirected. Applicable to TCP and UDP protocols. + */ + Redirectport int32 `json:"redirectport,omitempty"` + /** + * Any NetScaler-owned IPv4 address except the NSIP address. The NetScaler appliance replaces the source IP addresses of server-generated packets with the IP address specified. The IP address must be a public NetScaler-owned IP address. If you specify multiple addresses for this field, NATIP selection uses the round robin algorithm for each session. By specifying a range of IP addresses, you can specify all NetScaler-owned IP addresses, except the NSIP, that fall within the specified range. + */ + Natip string `json:"natip,omitempty"` + /** + * Enables the Citrix ADC to use the same NAT IP address for all RNAT sessions initiated from a particular server. + */ + Srcippersistency string `json:"srcippersistency,omitempty"` + /** + * Enable source port proxying, which enables the Citrix ADC to use the RNAT ips using proxied source port. + */ + Useproxyport string `json:"useproxyport,omitempty"` + /** + * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the RNAT session. In order for this to work, tcpproxy should be DISABLED. To disable tcpproxy use "set rnatparam tcpproxy DISABLED" + */ + Connfailover string `json:"connfailover,omitempty"` + /** + * New name for the RNAT4 rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Newname string `json:"newname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go new file mode 100644 index 000000000..e7aa030be --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for IPv6 RNAT configured route resource. +*/ +type Rnat6 struct { + /** + * Name for the RNAT6 rule. Must begin with a letter, number, or the underscore character (_), and can consist of letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rule is created. Choose a name that helps identify the RNAT6 rule. + */ + Name string `json:"name,omitempty"` + /** + * IPv6 address of the network on whose traffic you want the Citrix ADC to do RNAT processing. + */ + Network string `json:"network,omitempty"` + /** + * Name of any configured ACL6 whose action is ALLOW. The rule of the ACL6 is used as an RNAT6 rule. + */ + Acl6name string `json:"acl6name,omitempty"` + /** + * Port number to which the IPv6 packets are redirected. Applicable to TCP and UDP protocols. + */ + Redirectport int32 `json:"redirectport,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Enable source ip persistency, which enables the Citrix ADC to use the RNAT ips using source ip. + */ + Srcippersistency string `json:"srcippersistency,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_binding.go new file mode 100644 index 000000000..592e819fa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to rnat6_binding. +*/ +type Rnat6binding struct { + /** + * Name of the RNAT6 rule whose details you want to display.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_ip6_binding.go new file mode 100644 index 000000000..9177c3c4a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_ip6_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to rnat6. +*/ +type Rnat6ip6binding struct { + /** + * Nat IP Address. + */ + Natip6 string `json:"natip6,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Name of the RNAT6 rule to which to bind NAT IPs. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_binding.go new file mode 100644 index 000000000..dc1b99787 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to rnat_binding. +*/ +type Rnatbinding struct { + /** + * Name of the RNAT rule whose details you want to display.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_ip_binding.go new file mode 100644 index 000000000..f092e0b1d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_ip_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to rnat. +*/ +type Rnatipbinding struct { + /** + * Any NetScaler-owned IPv4 address except the NSIP address. The NetScaler appliance replaces the source IP addresses of server-generated packets with the IP address specified. The IP address must be a public NetScaler-owned IP address. If you specify multiple addresses for this field, NATIP selection uses the round robin algorithm for each session. By specifying a range of IP addresses, you can specify all NetScaler-owned IP addresses, except the NSIP, that fall within the specified range. + */ + Natip string `json:"natip,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Name of the RNAT rule to which to bind NAT IPs. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_retainsourceportset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_retainsourceportset_binding.go new file mode 100644 index 000000000..de9658333 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_retainsourceportset_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the retainsourceportset that can be bound to rnat. +*/ +type Rnatretainsourceportsetbinding struct { + /** + * When the source port range is configured and associated with the RNAT rule, Citrix ADC will choose a port from the specified source port range configured for connection establishment at the backend servers. + */ + Retainsourceportrange string `json:"retainsourceportrange,omitempty"` + /** + * Name of the RNAT rule to which to bind NAT IPs. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_binding.go new file mode 100644 index 000000000..256fe6c77 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to rnatglobal_binding. +*/ +type Rnatglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_syslogpolicy_binding.go new file mode 100644 index 000000000..7c43e84f3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_syslogpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the syslogpolicy that can be bound to rnatglobal. +*/ +type Rnatglobalsyslogpolicybinding struct { + /** + * The policy Name. + */ + Policy string `json:"policy,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Remove all RNAT global config + */ + All bool `json:"all,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatparam.go new file mode 100644 index 000000000..c9feb6cf7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatparam.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for RNAT parameter resource. +*/ +type Rnatparam struct { + /** + * Enable TCP proxy, which enables the Citrix ADC to optimize the RNAT TCP traffic by using Layer 4 features. + */ + Tcpproxy string `json:"tcpproxy,omitempty"` + /** + * Enable source ip persistency, which enables the Citrix ADC to use the RNAT ips using source ip. + */ + Srcippersistency string `json:"srcippersistency,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatsession.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatsession.go new file mode 100644 index 000000000..8a21397db --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatsession.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for RNAT session resource. +*/ +type Rnatsession struct { + /** + * IPv4 network address on whose traffic you want the Citrix ADC to do RNAT processing. + */ + Network string `json:"network,omitempty"` + /** + * Subnet mask associated with the network address. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The NAT IP address defined for the RNAT entry. + */ + Natip string `json:"natip,omitempty"` + /** + * Name of any configured extended ACL whose action is ALLOW. + */ + Aclname string `json:"aclname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go new file mode 100644 index 000000000..e80c178c4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go @@ -0,0 +1,123 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for route resource. +*/ +type Route struct { + /** + * IPv4 network address for which to add a route entry in the routing table of the Citrix ADC. + */ + Network string `json:"network,omitempty"` + /** + * The subnet mask associated with the network address. + */ + Netmask string `json:"netmask,omitempty"` + /** + * IP address of the gateway for this route. Can be either the IP address of the gateway, or can be null to specify a null interface route. + */ + Gateway string `json:"gateway,omitempty"` + /** + * VLAN as the gateway for this route. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Positive integer used by the routing algorithms to determine preference for using this route. The lower the cost, the higher the preference. + */ + Cost uint32 `json:"cost,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Administrative distance of this route, which determines the preference of this route over other routes, with same destination, from different routing protocols. A lower value is preferred. + */ + Distance uint32 `json:"distance,omitempty"` + /** + * The cost of a route is used to compare routes of the same type. The route having the lowest cost is the most preferred route. Possible values: 0 through 65535. Default: 0. + */ + Cost1 uint32 `json:"cost1,omitempty"` + /** + * Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Advertise this route. + */ + Advertise string `json:"advertise,omitempty"` + /** + * Routing protocol used for advertising this route. + */ + Protocol []string `json:"protocol,omitempty"` + /** + * Monitor this route using a monitor of type ARP or PING. + */ + Msr string `json:"msr,omitempty"` + /** + * Name of the monitor, of type ARP or PING, configured on the Citrix ADC to monitor this route. + */ + Monitor string `json:"monitor,omitempty"` + /** + * The owner node group in a Cluster for this route. If owner node group is not specified then the route is treated as Striped route. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Protocol used by routes that you want to remove from the routing table of the Citrix ADC. + */ + Routetype string `json:"routetype,omitempty"` + /** + * Display a detailed view. + */ + Detail bool `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Gatewayname string `json:"gatewayname,omitempty"` + Type string `json:"type,omitempty"` + Dynamic string `json:"dynamic,omitempty"` + Static string `json:"Static,omitempty"` + Permanent string `json:"permanent,omitempty"` + Direct string `json:"direct,omitempty"` + Nat string `json:"nat,omitempty"` + Lbroute string `json:"lbroute,omitempty"` + Adv string `json:"adv,omitempty"` + Tunnel string `json:"tunnel,omitempty"` + Data string `json:"data,omitempty"` + Data0 string `json:"data0,omitempty"` + Flags string `json:"flags,omitempty"` + Routeowners string `json:"routeowners,omitempty"` + Retain string `json:"retain,omitempty"` + Ospf string `json:"ospf,omitempty"` + Isis string `json:"isis,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Dhcp string `json:"dhcp,omitempty"` + Advospf string `json:"advospf,omitempty"` + Advisis string `json:"advisis,omitempty"` + Advrip string `json:"advrip,omitempty"` + Advbgp string `json:"advbgp,omitempty"` + State string `json:"state,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` + Totalfailedprobes string `json:"totalfailedprobes,omitempty"` + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go new file mode 100644 index 000000000..5a1ef0049 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go @@ -0,0 +1,108 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for route 6 resource. +*/ +type Route6 struct { + /** + * IPv6 network address for which to add a route entry to the routing table of the Citrix ADC. + */ + Network string `json:"network,omitempty"` + /** + * The gateway for this route. The value for this parameter is either an IPv6 address or null. + */ + Gateway string `json:"gateway,omitempty"` + /** + * Integer value that uniquely identifies a VLAN through which the Citrix ADC forwards the packets for this route. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Integer value that uniquely identifies a VXLAN through which the Citrix ADC forwards the packets for this route. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference. + */ + Weight uint32 `json:"weight,omitempty"` + /** + * Administrative distance of this route from the appliance. + */ + Distance uint32 `json:"distance,omitempty"` + /** + * Positive integer used by the routing algorithms to determine preference for this route. The lower the cost, the higher the preference. + */ + Cost uint32 `json:"cost,omitempty"` + /** + * Advertise this route. + */ + Advertise string `json:"advertise,omitempty"` + /** + * Monitor this route with a monitor of type ND6 or PING. + */ + Msr string `json:"msr,omitempty"` + /** + * Name of the monitor, of type ND6 or PING, configured on the Citrix ADC to monitor this route. + */ + Monitor string `json:"monitor,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this route6. If owner node group is not specified then the route is treated as Striped route. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Type of IPv6 routes to remove from the routing table of the Citrix ADC. + */ + Routetype string `json:"routetype,omitempty"` + /** + * To get a detailed view. + */ + Detail bool `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Gatewayname string `json:"gatewayname,omitempty"` + Type string `json:"type,omitempty"` + Dynamic string `json:"dynamic,omitempty"` + Data string `json:"data,omitempty"` + Flags string `json:"flags,omitempty"` + State string `json:"state,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` + Totalfailedprobes string `json:"totalfailedprobes,omitempty"` + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Data1 string `json:"data1,omitempty"` + Routeowners string `json:"routeowners,omitempty"` + Retain string `json:"retain,omitempty"` + Static string `json:"Static,omitempty"` + Permanent string `json:"permanent,omitempty"` + Connected string `json:"connected,omitempty"` + Ospfv3 string `json:"ospfv3,omitempty"` + Isis string `json:"isis,omitempty"` + Active string `json:"active,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rip string `json:"rip,omitempty"` + Raroute string `json:"raroute,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rsskeytype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rsskeytype.go new file mode 100644 index 000000000..128b84256 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rsskeytype.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for RSS key type resource. +*/ +type Rsskeytype struct { + /** + * Type of RSS key, possible values are SYMMETRIC and ASYMMETRIC. + */ + Rsstype string `json:"rsstype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go new file mode 100644 index 000000000..6f4a3fd2f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for "VLAN" resource. +*/ +type Vlan struct { + /** + * A positive integer that uniquely identifies a VLAN. + */ + Id uint32 `json:"id,omitempty"` + /** + * A name for the VLAN. Must begin with a letter, a number, or the underscore symbol, and can consist of from 1 to 31 letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the VLAN. However, you cannot perform any VLAN operation by specifying this name instead of the VLAN ID. + */ + Aliasname string `json:"aliasname,omitempty"` + /** + * Enable dynamic routing on this VLAN. + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Enable all IPv6 dynamic routing protocols on this VLAN. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line. + */ + Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` + /** + * Specifies the maximum transmission unit (MTU), in bytes. The MTU is the largest packet size, excluding 14 bytes of ethernet header and 4 bytes of crc, that can be transmitted and received over this VLAN. + */ + Mtu uint32 `json:"mtu,omitempty"` + /** + * If sharing is enabled, then this vlan can be shared across multiple partitions by binding it to all those partitions. If sharing is disabled, then this vlan can be bound to only one of the partitions. + */ + Sharing string `json:"sharing,omitempty"` + + //------- Read only Parameter ---------; + + Linklocalipv6addr string `json:"linklocalipv6addr,omitempty"` + Rnat string `json:"rnat,omitempty"` + Portbitmap string `json:"portbitmap,omitempty"` + Lsbitmap string `json:"lsbitmap,omitempty"` + Tagbitmap string `json:"tagbitmap,omitempty"` + Lstagbitmap string `json:"lstagbitmap,omitempty"` + Ifaces string `json:"ifaces,omitempty"` + Tagifaces string `json:"tagifaces,omitempty"` + Ifnum string `json:"ifnum,omitempty"` + Tagged string `json:"tagged,omitempty"` + Vlantd string `json:"vlantd,omitempty"` + Sdxvlan string `json:"sdxvlan,omitempty"` + Partitionname string `json:"partitionname,omitempty"` + Vxlan string `json:"vxlan,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go new file mode 100644 index 000000000..f493bf97a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to vlan_binding. +*/ +type Vlanbinding struct { + /** + * Integer that uniquely identifies the VLAN for which the details are to be displayed.
Minimum value = 1
Maximum value = 4094 + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go new file mode 100644 index 000000000..1ae6a793c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the channel that can be bound to vlan. +*/ +type Vlanchannelbinding struct { + /** + * The interface to be bound to the VLAN, specified in slot/port notation (for example, 1/3). + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * Make the interface an 802.1q tagged interface. Packets sent on this interface on this VLAN have an additional 4-byte 802.1q tag, which identifies the VLAN. To use 802.1q tagging, you must also configure the switch connected to the appliance's interfaces. + */ + Tagged bool `json:"tagged,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id uint32 `json:"id,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go new file mode 100644 index 000000000..4bc6b6f90 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to vlan. +*/ +type Vlaninterfacebinding struct { + /** + * The interface to be bound to the VLAN, specified in slot/port notation (for example, 1/3). + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * Make the interface an 802.1q tagged interface. Packets sent on this interface on this VLAN have an additional 4-byte 802.1q tag, which identifies the VLAN. To use 802.1q tagging, you must also configure the switch connected to the appliance's interfaces. + */ + Tagged bool `json:"tagged,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id uint32 `json:"id,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip6_binding.go new file mode 100644 index 000000000..d68ee9392 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip6_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to vlan. +*/ +type Vlanip6binding struct { + /** + * The IP address assigned to the VLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id uint32 `json:"id,omitempty"` + /** + * Subnet mask for the network address defined for this VLAN. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip_binding.go new file mode 100644 index 000000000..8907595ab --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_ip_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to vlan. +*/ +type Vlanipbinding struct { + /** + * The IP address assigned to the VLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Subnet mask for the network address defined for this VLAN. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go new file mode 100644 index 000000000..f80ba5671 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the linkset that can be bound to vlan. +*/ +type Vlanlinksetbinding struct { + /** + * The interface to be bound to the VLAN, specified in slot/port notation (for example, 1/3). + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * Make the interface an 802.1q tagged interface. Packets sent on this interface on this VLAN have an additional 4-byte 802.1q tag, which identifies the VLAN. To use 802.1q tagging, you must also configure the switch connected to the appliance's interfaces. + */ + Tagged bool `json:"tagged,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id uint32 `json:"id,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go new file mode 100644 index 000000000..b15a996b7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Virtual Router ID resource. +*/ +type Vrid struct { + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + /** + * Base priority (BP), in an active-active mode configuration, which ordinarily determines the master VIP address. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * In an active-active mode configuration, make a backup VIP address the master if its priority becomes higher than that of a master VIP address bound to this VMAC address. + If you disable pre-emption while a backup VIP address is the master, the backup VIP address remains master until the original master VIP's priority becomes higher than that of the current master. + */ + Preemption string `json:"preemption,omitempty"` + /** + * In an active-active mode configuration, enable the backup VIP address to process any traffic instead of dropping it. + */ + Sharing string `json:"sharing,omitempty"` + /** + * The effective priority (EP) value, relative to the base priority (BP) value in an active-active mode configuration. When EP is set to a value other than None, it is EP, not BP, which determines the master VIP address. + Available settings function as follows: + * NONE - No tracking. EP = BP + * ALL - If the status of all virtual servers is UP, EP = BP. Otherwise, EP = 0. + * ONE - If the status of at least one virtual server is UP, EP = BP. Otherwise, EP = 0. + * PROGRESSIVE - If the status of all virtual servers is UP, EP = BP. If the status of all virtual servers is DOWN, EP = 0. Otherwise EP = BP (1 - K/N), where N is the total number of virtual servers associated with the VIP address and K is the number of virtual servers for which the status is DOWN. + Default: NONE. + */ + Tracking string `json:"tracking,omitempty"` + /** + * In a cluster setup, assign a cluster node as the owner of this VMAC address for IP based VRRP configuration. If no owner is configured, owner node is displayed as ALL and one node is dynamically elected as the owner. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * Priority by which the Effective priority will be reduced if any of the tracked interfaces goes down in an active-active configuration. + */ + Trackifnumpriority uint32 `json:"trackifnumpriority,omitempty"` + /** + * Preemption delay time, in seconds, in an active-active configuration. If any high priority node will come in network, it will wait for these many seconds before becoming master. + */ + Preemptiondelaytimer uint64 `json:"preemptiondelaytimer,omitempty"` + /** + * Remove all the configured VMAC addresses from the Citrix ADC. + */ + All bool `json:"all,omitempty"` + + //------- Read only Parameter ---------; + + Ifaces string `json:"ifaces,omitempty"` + Type string `json:"type,omitempty"` + Effectivepriority string `json:"effectivepriority,omitempty"` + Flags string `json:"flags,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + State string `json:"state,omitempty"` + Operationalownernode string `json:"operationalownernode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go new file mode 100644 index 000000000..b635c9cac --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for Virtual Router ID for IPv6 resource. +*/ +type Vrid6 struct { + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + /** + * Base priority (BP), in an active-active mode configuration, which ordinarily determines the master VIP address. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * In an active-active mode configuration, make a backup VIP address the master if its priority becomes higher than that of a master VIP address bound to this VMAC address. + If you disable pre-emption while a backup VIP address is the master, the backup VIP address remains master until the original master VIP's priority becomes higher than that of the current master. + */ + Preemption string `json:"preemption,omitempty"` + /** + * In an active-active mode configuration, enable the backup VIP address to process any traffic instead of dropping it. + */ + Sharing string `json:"sharing,omitempty"` + /** + * The effective priority (EP) value, relative to the base priority (BP) value in an active-active mode configuration. When EP is set to a value other than None, it is EP, not BP, which determines the master VIP address. + Available settings function as follows: + * NONE - No tracking. EP = BP + * ALL - If the status of all virtual servers is UP, EP = BP. Otherwise, EP = 0. + * ONE - If the status of at least one virtual server is UP, EP = BP. Otherwise, EP = 0. + * PROGRESSIVE - If the status of all virtual servers is UP, EP = BP. If the status of all virtual servers is DOWN, EP = 0. Otherwise EP = BP (1 - K/N), where N is the total number of virtual servers associated with the VIP address and K is the number of virtual servers for which the status is DOWN. + Default: NONE. + */ + Tracking string `json:"tracking,omitempty"` + /** + * Preemption delay time in seconds, in an active-active configuration. If any high priority node will come in network, it will wait for these many seconds before becoming master. + */ + Preemptiondelaytimer uint64 `json:"preemptiondelaytimer,omitempty"` + /** + * Priority by which the Effective priority will be reduced if any of the tracked interfaces goes down in an active-active configuration. + */ + Trackifnumpriority uint32 `json:"trackifnumpriority,omitempty"` + /** + * In a cluster setup, assign a cluster node as the owner of this VMAC address for IP based VRRP configuration. If no owner is configured, ow ner node is displayed as ALL and one node is dynamically elected as the owner. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * Remove all configured VMAC6 addresses from the Citrix ADC. + */ + All bool `json:"all,omitempty"` + + //------- Read only Parameter ---------; + + Ifaces string `json:"ifaces,omitempty"` + Ifnum string `json:"ifnum,omitempty"` + Type string `json:"type,omitempty"` + State string `json:"state,omitempty"` + Flags string `json:"flags,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + Effectivepriority string `json:"effectivepriority,omitempty"` + Operationalownernode string `json:"operationalownernode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go new file mode 100644 index 000000000..6b59fc484 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to vrid6_binding. +*/ +type Vrid6binding struct { + /** + * Integer value that uniquely identifies a VMAC6 address.
Minimum value = 1
Maximum value = 255 + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go new file mode 100644 index 000000000..45acc145a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the channel that can be bound to vrid6. +*/ +type Vrid6channelbinding struct { + /** + * Interfaces to bind to the VMAC6, specified in (slot/port) notation (for example, 1/2).Use spaces to separate multiple entries. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * The VLAN in which this VRID resides. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go new file mode 100644 index 000000000..140a0d6a0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to vrid6. +*/ +type Vrid6interfacebinding struct { + /** + * Interfaces to bind to the VMAC6, specified in (slot/port) notation (for example, 1/2).Use spaces to separate multiple entries. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * The VLAN in which this VRID resides. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip6_binding.go new file mode 100644 index 000000000..a7e2036d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to vrid6. +*/ +type Vrid6ip6binding struct { + /** + * The IP address bound to the VRID6 + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip_binding.go new file mode 100644 index 000000000..4fe23de6c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_ip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to vrid6. +*/ +type Vrid6ipbinding struct { + /** + * The IP address bound to the VRID6 + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go new file mode 100644 index 000000000..1ec2b601e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the trackinterface that can be bound to vrid6. +*/ +type Vrid6trackinterfacebinding struct { + /** + * Interfaces which need to be tracked for this vrID. + */ + Trackifnum string `json:"trackifnum,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go new file mode 100644 index 000000000..b3c2017a6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to vrid_binding. +*/ +type Vridbinding struct { + /** + * Integer value that uniquely identifies the VMAC address.
Minimum value = 1
Maximum value = 255 + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go new file mode 100644 index 000000000..070346c3e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the channel that can be bound to vrid. +*/ +type Vridchannelbinding struct { + /** + * Interfaces to bind to the VMAC, specified in (slot/port) notation (for example, 1/2).Use spaces to separate multiple entries. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * The VLAN in which this VRID resides. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go new file mode 100644 index 000000000..44c58bb3f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the interface that can be bound to vrid. +*/ +type Vridinterfacebinding struct { + /** + * Interfaces to bind to the VMAC, specified in (slot/port) notation (for example, 1/2).Use spaces to separate multiple entries. + */ + Ifnum string `json:"ifnum,omitempty"` + /** + * The VLAN in which this VRID resides. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip6_binding.go new file mode 100644 index 000000000..4a8c300da --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to vrid. +*/ +type Vridip6binding struct { + /** + * The IP address bound to the VRID. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip_binding.go new file mode 100644 index 000000000..13872a59d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_ip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to vrid. +*/ +type Vridipbinding struct { + /** + * The IP address bound to the VRID. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go new file mode 100644 index 000000000..4204bf557 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the trackinterface that can be bound to vrid. +*/ +type Vridtrackinterfacebinding struct { + /** + * Interfaces which need to be tracked for this vrID. + */ + Trackifnum string `json:"trackifnum,omitempty"` + /** + * Flags. + */ + Flags uint32 `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go new file mode 100644 index 000000000..c60d3c18e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for VR ID parameter resource. +*/ +type Vridparam struct { + /** + * Forward packets to the master node, in an active-active mode configuration, if the virtual server is in the backup state and sharing is disabled. + */ + Sendtomaster string `json:"sendtomaster,omitempty"` + /** + * Interval, in milliseconds, between vrrp advertisement messages sent to the peer node in active-active mode. + */ + Hellointerval uint32 `json:"hellointerval,omitempty"` + /** + * Number of seconds after which a peer node in active-active mode is marked down if vrrp advertisements are not received from the peer node. + */ + Deadinterval uint64 `json:"deadinterval,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go new file mode 100644 index 000000000..2f38182be --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for "VXLAN" resource. +*/ +type Vxlan struct { + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id uint32 `json:"id,omitempty"` + /** + * ID of VLANs whose traffic is allowed over this VXLAN. If you do not specify any VLAN IDs, the Citrix ADC allows traffic of all VLANs that are not part of any other VXLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Specifies UDP destination port for VXLAN packets. + */ + Port int32 `json:"port,omitempty"` + /** + * Enable dynamic routing on this VXLAN. + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Enable all IPv6 dynamic routing protocols on this VXLAN. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line. + */ + Ipv6dynamicrouting string `json:"ipv6dynamicrouting,omitempty"` + /** + * VXLAN encapsulation type. VXLAN, VXLANGPE + */ + Type string `json:"type,omitempty"` + /** + * VXLAN-GPE next protocol. RESERVED, IPv4, IPv6, ETHERNET, NSH + */ + Protocol string `json:"protocol,omitempty"` + /** + * Specifies whether Citrix ADC should generate VXLAN packets with inner VLAN tag. + */ + Innervlantagging string `json:"innervlantagging,omitempty"` + + //------- Read only Parameter ---------; + + Td string `json:"td,omitempty"` + Partitionname string `json:"partitionname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go new file mode 100644 index 000000000..67c6e8d76 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to vxlan_binding. +*/ +type Vxlanbinding struct { + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN.
Minimum value = 1
Maximum value = 16777215 + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip6_binding.go new file mode 100644 index 000000000..3d8da4a74 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip6 that can be bound to vxlan. +*/ +type Vxlanip6binding struct { + /** + * The IP address assigned to the VXLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id uint32 `json:"id,omitempty"` + /** + * Subnet mask for the network address defined for this VXLAN. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip_binding.go new file mode 100644 index 000000000..804de05b7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_ip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the ip that can be bound to vxlan. +*/ +type Vxlanipbinding struct { + /** + * The IP address assigned to the VXLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Subnet mask for the network address defined for this VXLAN. + */ + Netmask string `json:"netmask,omitempty"` + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go new file mode 100644 index 000000000..a0b4323f0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the iptunnel that can be bound to vxlan. +*/ +type Vxlaniptunnelbinding struct { + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id uint32 `json:"id,omitempty"` + /** + * Specifies the name of the configured tunnel to be associated with this VXLAN. + */ + Tunnel string `json:"tunnel,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go new file mode 100644 index 000000000..69d58fcab --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the srcip that can be bound to vxlan. +*/ +type Vxlansrcipbinding struct { + /** + * The source IP address to use in outgoing vxlan packets. + */ + Srcip string `json:"srcip,omitempty"` + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id uint32 `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap.go new file mode 100644 index 000000000..33ec299c7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Configuration for vxlan vlan mapping resource. +*/ +type Vxlanvlanmap struct { + /** + * Name of the mapping table. + */ + Name string `json:"name,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_binding.go new file mode 100644 index 000000000..870d59454 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding object which returns the resources bound to vxlanvlanmap_binding. +*/ +type Vxlanvlanmapbinding struct { + /** + * Name of the mapping table.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go new file mode 100644 index 000000000..e9b86fd06 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the vxlan that can be bound to vxlanvlanmap. +*/ +type Vxlanvlanmapvxlanbinding struct { + /** + * The VXLAN assigned to the vlan inside the cloud. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * The vlan id or the range of vlan ids in the on-premise network. + */ + Vlan []string `json:"vlan,omitempty"` + /** + * Name of the mapping table. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go new file mode 100644 index 000000000..23e4ef0f1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go @@ -0,0 +1,185 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ACL entry resource. +*/ +type Nsacl struct { + /** + * Name for the extended ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Aclname string `json:"aclname,omitempty"` + /** + * Action to perform on incoming IPv4 packets that match the extended ACL rule. + Available settings function as follows: + * ALLOW - The Citrix ADC processes the packet. + * BRIDGE - The Citrix ADC bridges the packet to the destination without processing it. + * DENY - The Citrix ADC drops the packet. + */ + Aclaction string `json:"aclaction,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Srcip bool `json:"srcip,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcipop string `json:"srcipop,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example:10.102.29.30-10.102.29.189. + */ + Srcipval string `json:"srcipval,omitempty"` + /** + * Policy dataset which can have multiple IP ranges bound to it. + */ + Srcipdataset string `json:"srcipdataset,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + */ + Srcport bool `json:"srcport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcportop string `json:"srcportop,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + */ + Srcportval string `json:"srcportval,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Destip bool `json:"destip,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destipop string `json:"destipop,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Destipval string `json:"destipval,omitempty"` + /** + * Policy dataset which can have multiple IP ranges bound to it. + */ + Destipdataset string `json:"destipdataset,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destport bool `json:"destport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destportop string `json:"destportop,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destportval string `json:"destportval,omitempty"` + /** + * Number of seconds, in multiples of four, after which the extended ACL rule expires. If you do not want the extended ACL rule to expire, do not specify a TTL value. + */ + Ttl uint32 `json:"ttl,omitempty"` + /** + * MAC address to match against the source MAC address of an incoming IPv4 packet. + */ + Srcmac string `json:"srcmac,omitempty"` + /** + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ + Srcmacmask string `json:"srcmacmask,omitempty"` + /** + * Protocol to match against the protocol of an incoming IPv4 packet. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Protocol to match against the protocol of an incoming IPv4 packet. + */ + Protocolnumber uint32 `json:"protocolnumber,omitempty"` + /** + * ID of the VLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL rule to the incoming packets on all VLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * ID of the VXLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL rule to the incoming packets on all VXLANs. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * ID of an interface. The Citrix ADC applies the ACL rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL rule to the incoming packets of all interfaces. + */ + Interface string `json:"Interface,omitempty"` + /** + * Allow only incoming TCP packets that have the ACK or RST bit set, if the action set for the ACL rule is ALLOW and these packets match the other conditions in the ACL rule. + */ + Established bool `json:"established,omitempty"` + /** + * ICMP Message type to match against the message type of an incoming ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. + Note: This parameter can be specified only for the ICMP protocol. + */ + Icmptype uint32 `json:"icmptype,omitempty"` + /** + * Code of a particular ICMP message type to match against the ICMP code of an incoming ICMP packet. For example, to block DESTINATION HOST UNREACHABLE messages, specify 3 as the ICMP type and 1 as the ICMP code. + If you set this parameter, you must set the ICMP Type parameter. + */ + Icmpcode uint32 `json:"icmpcode,omitempty"` + /** + * Priority for the extended ACL rule that determines the order in which it is evaluated relative to the other extended ACL rules. If you do not specify priorities while creating extended ACL rules, the ACL rules are evaluated in the order in which they are created. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enable or disable the extended ACL rule. After you apply the extended ACL rules, the Citrix ADC compares incoming packets against the enabled extended ACL rules. + */ + State string `json:"state,omitempty"` + /** + * Enable or disable logging of events related to the extended ACL rule. The log messages are stored in the configured syslog or auditlog server. + */ + Logstate string `json:"logstate,omitempty"` + /** + * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. + */ + Ratelimit uint32 `json:"ratelimit,omitempty"` + /** + * Type of the acl ,default will be CLASSIC. + Available options as follows: + * CLASSIC - specifies the regular extended acls. + * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . + */ + Type string `json:"type,omitempty"` + /** + * Specifies the type hashmethod to be applied, to steer the packet to the FP of the packet. + */ + Dfdhash string `json:"dfdhash,omitempty"` + /** + * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL and not hitting any other features like LB, INAT etc. + */ + Stateful string `json:"stateful,omitempty"` + /** + * New name for the extended ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` + Aclassociate string `json:"aclassociate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go new file mode 100644 index 000000000..4d6b25192 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go @@ -0,0 +1,185 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ACL6 entry resource. +*/ +type Nsacl6 struct { + /** + * Name for the ACL6 rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Acl6name string `json:"acl6name,omitempty"` + /** + * Action to perform on the incoming IPv6 packets that match the ACL6 rule. + Available settings function as follows: + * ALLOW - The Citrix ADC processes the packet. + * BRIDGE - The Citrix ADC bridges the packet to the destination without processing it. + * DENY - The Citrix ADC drops the packet. + */ + Acl6action string `json:"acl6action,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Srcipv6 bool `json:"srcipv6,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcipop string `json:"srcipop,omitempty"` + /** + * Source IPv6 address (range). + */ + Srcipv6val string `json:"srcipv6val,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Srcport bool `json:"srcport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcportop string `json:"srcportop,omitempty"` + /** + * Source port (range). + */ + Srcportval string `json:"srcportval,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Destipv6 bool `json:"destipv6,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destipop string `json:"destipop,omitempty"` + /** + * Destination IPv6 address (range). + */ + Destipv6val string `json:"destipv6val,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destport bool `json:"destport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destportop string `json:"destportop,omitempty"` + /** + * Destination port (range). + */ + Destportval string `json:"destportval,omitempty"` + /** + * Time to expire this ACL6 (in seconds). + */ + Ttl uint32 `json:"ttl,omitempty"` + /** + * MAC address to match against the source MAC address of an incoming IPv6 packet. + */ + Srcmac string `json:"srcmac,omitempty"` + /** + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ + Srcmacmask string `json:"srcmacmask,omitempty"` + /** + * Protocol, identified by protocol name, to match against the protocol of an incoming IPv6 packet. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Protocol, identified by protocol number, to match against the protocol of an incoming IPv6 packet. + */ + Protocolnumber uint32 `json:"protocolnumber,omitempty"` + /** + * ID of the VLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * ID of the VXLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VXLANs. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * ID of an interface. The Citrix ADC applies the ACL6 rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL6 rule to the incoming packets from all interfaces. + */ + Interface string `json:"Interface,omitempty"` + /** + * Allow only incoming TCP packets that have the ACK or RST bit set if the action set for the ACL6 rule is ALLOW and these packets match the other conditions in the ACL6 rule. + */ + Established bool `json:"established,omitempty"` + /** + * ICMP Message type to match against the message type of an incoming IPv6 ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. + Note: This parameter can be specified only for the ICMP protocol. + */ + Icmptype uint32 `json:"icmptype,omitempty"` + /** + * Code of a particular ICMP message type to match against the ICMP code of an incoming IPv6 ICMP packet. For example, to block DESTINATION HOST UNREACHABLE messages, specify 3 as the ICMP type and 1 as the ICMP code. + If you set this parameter, you must set the ICMP Type parameter. + */ + Icmpcode uint32 `json:"icmpcode,omitempty"` + /** + * Priority for the ACL6 rule, which determines the order in which it is evaluated relative to the other ACL6 rules. If you do not specify priorities while creating ACL6 rules, the ACL6 rules are evaluated in the order in which they are created. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * State of the ACL6. + */ + State string `json:"state,omitempty"` + /** + * Type of the acl6 ,default will be CLASSIC. + Available options as follows: + * CLASSIC - specifies the regular extended acls. + * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . + */ + Type string `json:"type,omitempty"` + /** + * Specifies the type of hashmethod to be applied, to steer the packet to the FP of the packet. + */ + Dfdhash string `json:"dfdhash,omitempty"` + /** + * hashprefix to be applied to SIP/DIP to generate rsshash FP.eg 128 => hash calculated on the complete IP + */ + Dfdprefix uint32 `json:"dfdprefix,omitempty"` + /** + * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL6 and not hitting any other features like LB, INAT etc. + */ + Stateful string `json:"stateful,omitempty"` + /** + * Enable or disable logging of events related to the ACL6 rule. The log messages are stored in the configured syslog or auditlog server. + */ + Logstate string `json:"logstate,omitempty"` + /** + * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. + */ + Ratelimit uint32 `json:"ratelimit,omitempty"` + /** + * Action associated with the ACL6. + */ + Aclaction string `json:"aclaction,omitempty"` + /** + * New name for the ACL6 rule. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Kernelstate string `json:"kernelstate,omitempty"` + Hits string `json:"hits,omitempty"` + Aclassociate string `json:"aclassociate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls.go new file mode 100644 index 000000000..71a331297 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ACL entry resource. +*/ +type Nsacls struct { + /** + * Type of the acl ,default will be CLASSIC. + Available options as follows: + * CLASSIC - specifies the regular extended acls. + * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . + */ + Type string `json:"type,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls6.go new file mode 100644 index 000000000..3f1ba16f4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacls6.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ACL6 entry resource. +*/ +type Nsacls6 struct { + /** + * Type of the acl ,default will be CLASSIC. + Available options as follows: + * CLASSIC - specifies the regular extended acls. + * DFD - cluster specific acls,specifies hashmethod for steering of the packet in cluster . + */ + Type string `json:"type,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go new file mode 100644 index 000000000..2b908c98c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for appflowCollector resource. +*/ +type Nsappflowcollector struct { + /** + * Name of the AppFlow collector. + */ + Name string `json:"name,omitempty"` + /** + * The IPv4 address of the AppFlow collector. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The UDP port on which the AppFlow collector is listening. + */ + Port int32 `json:"port,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go new file mode 100644 index 000000000..fc44d6fb5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for appflowParam resource. +*/ +type Nsappflowparam struct { + /** + * IPFIX template refresh interval (in seconds). + */ + Templaterefresh uint64 `json:"templaterefresh,omitempty"` + /** + * MTU to be used for IPFIX UDP packets. + */ + Udppmtu uint32 `json:"udppmtu,omitempty"` + /** + * Enable AppFlow HTTP URL logging. + */ + Httpurl string `json:"httpurl,omitempty"` + /** + * Enable AppFlow HTTP cookie logging. + */ + Httpcookie string `json:"httpcookie,omitempty"` + /** + * Enable AppFlow HTTP referer logging. + */ + Httpreferer string `json:"httpreferer,omitempty"` + /** + * Enable AppFlow HTTP method logging. + */ + Httpmethod string `json:"httpmethod,omitempty"` + /** + * Enable AppFlow HTTP host logging. + */ + Httphost string `json:"httphost,omitempty"` + /** + * Enable AppFlow HTTP user-agent logging. + */ + Httpuseragent string `json:"httpuseragent,omitempty"` + /** + * Control whether AppFlow records should be generated only for client-side traffic. + */ + Clienttrafficonly string `json:"clienttrafficonly,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsaptlicense.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsaptlicense.go new file mode 100644 index 000000000..bc4b0995f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsaptlicense.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for aptlicense resource. +*/ +type Nsaptlicense struct { + /** + * Hardware Serial Number/License Activation Code(LAC) + */ + Serialno string `json:"serialno,omitempty"` + /** + * Specifies whether to use the licenseproxyserver to reach the internet. Make sure to configure licenseproxyserver to use this option. + */ + Useproxy string `json:"useproxy,omitempty"` + /** + * License ID + */ + Id string `json:"id,omitempty"` + /** + * Session ID + */ + Sessionid string `json:"sessionid,omitempty"` + /** + * Bind type + */ + Bindtype string `json:"bindtype,omitempty"` + /** + * The user can allocate one or more licenses. Ensure the value is less than (for partial allocation) or equal to the total number of available licenses + */ + Countavailable string `json:"countavailable,omitempty"` + /** + * License Directory + */ + Licensedir string `json:"licensedir,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + Counttotal string `json:"counttotal,omitempty"` + Name string `json:"name,omitempty"` + Relevance string `json:"relevance,omitempty"` + Datepurchased string `json:"datepurchased,omitempty"` + Datesa string `json:"datesa,omitempty"` + Dateexp string `json:"dateexp,omitempty"` + Features string `json:"features,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsassignment.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsassignment.go new file mode 100644 index 000000000..ba56c0395 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsassignment.go @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for assignment resource. +*/ +type Nsassignment struct { + /** + * Name for the assignment. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the assignment is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my assignment" or my assignment). + */ + Name string `json:"name,omitempty"` + /** + * Left hand side of the assigment, of the form $variable-name (for a singleton variabled) or $variable-name[key-expression], where key-expression is an expression that evaluates to a text string and provides the key to select a map entry + */ + Variable string `json:"variable,omitempty"` + /** + * Right hand side of the assignment. The expression is evaluated and assigned to the left hand variable. + */ + Set string `json:"set,omitempty"` + /** + * Right hand side of the assignment. The expression is evaluated and added to the left hand variable. + */ + Add string `json:"Add,omitempty"` + /** + * Right hand side of the assignment. The expression is evaluated and subtracted from the left hand variable. + */ + Sub string `json:"sub,omitempty"` + /** + * Right hand side of the assignment. The expression is evaluated and appended to the left hand variable. + */ + Append string `json:"append,omitempty"` + /** + * Clear the variable value. Deallocates a text value, and for a map, the text key. + */ + Clear bool `json:"clear,omitempty"` + /** + * Comment. Can be used to preserve information about this rewrite action. + */ + Comment string `json:"comment,omitempty"` + /** + * New name for the assignment. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the rewrite policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my assignment" or my assignment). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go new file mode 100644 index 000000000..669581d75 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for capacity resource. +*/ +type Nscapacity struct { + /** + * System bandwidth limit. + */ + Bandwidth uint32 `json:"bandwidth,omitempty"` + /** + * appliance platform type. + */ + Platform string `json:"platform,omitempty"` + /** + * licensed using vcpu pool. + */ + Vcpu bool `json:"vcpu,omitempty"` + /** + * Product edition. + */ + Edition string `json:"edition,omitempty"` + /** + * Bandwidth unit. + */ + Unit string `json:"unit,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Actualbandwidth string `json:"actualbandwidth,omitempty"` + Vcpucount string `json:"vcpucount,omitempty"` + Maxvcpucount string `json:"maxvcpucount,omitempty"` + Maxbandwidth string `json:"maxbandwidth,omitempty"` + Minbandwidth string `json:"minbandwidth,omitempty"` + Instancecount string `json:"instancecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscentralmanagementserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscentralmanagementserver.go new file mode 100644 index 000000000..73e272a1d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscentralmanagementserver.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for centralmanagementserver resource. +*/ +type Nscentralmanagementserver struct { + /** + * Type of the central management server. Must be either CLOUD or ONPREM depending on whether the server is on the cloud or on premise. + */ + Type string `json:"type,omitempty"` + /** + * Username for access to central management server. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or + single quotation marks (for example, "my ns centralmgmtserver" or "my ns centralmgmtserver"). + */ + Username string `json:"username,omitempty"` + /** + * Password for access to central management server. Required for any user account. + */ + Password string `json:"password,omitempty"` + /** + * Activation code is used to register to ADM service + */ + Activationcode string `json:"activationcode,omitempty"` + /** + * Ip Address of central management server. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Fully qualified domain name of the central management server or service-url to locate ADM service. + */ + Servername string `json:"servername,omitempty"` + /** + * validate the server certificate for secure SSL connections. + */ + Validatecert string `json:"validatecert,omitempty"` + /** + * Device profile is created on ADM and contains the user name and password of the instance(s). + */ + Deviceprofilename string `json:"deviceprofilename,omitempty"` + /** + * ADC username used to create device profile on ADM + */ + Adcusername string `json:"adcusername,omitempty"` + /** + * ADC password used to create device profile on ADM + */ + Adcpassword string `json:"adcpassword,omitempty"` + + //------- Read only Parameter ---------; + + Instanceid string `json:"instanceid,omitempty"` + Customerid string `json:"customerid,omitempty"` + Admserviceenvironment string `json:"admserviceenvironment,omitempty"` + Admserviceconnectionstatus string `json:"admserviceconnectionstatus,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go new file mode 100644 index 000000000..43ef251ce --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go @@ -0,0 +1,186 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for system config resource. +*/ +type Nsconfig struct { + /** + * Configurations will be cleared without prompting for confirmation. + */ + Force bool `json:"force,omitempty"` + /** + * Types of configurations to be cleared. + * basic: Clears all configurations except the following: + - NSIP, default route (gateway), static routes, MIPs, and SNIPs + - Network settings (DG, VLAN, RHI and DNS settings) + - Cluster settings + - HA node definitions + - Feature and mode settings + - nsroot password + * extended: Clears the same configurations as the 'basic' option. In addition, it clears the feature and mode settings. + * full: Clears all configurations except NSIP, default route, and interface settings. + Note: When you clear the configurations through the cluster IP address, by specifying the level as 'full', the cluster is deleted and all cluster nodes become standalone appliances. The 'basic' and 'extended' levels are propagated to the cluster nodes. + */ + Level string `json:"level,omitempty"` + /** + * RBA configurations and TACACS policies bound to system global will not be cleared if RBA is set to NO.This option is applicable only for BASIC level of clear configuration.Default is YES, which will clear rba configurations. + */ + Rbaconfig string `json:"rbaconfig,omitempty"` + /** + * IP address of the Citrix ADC. Commonly referred to as NSIP address. This parameter is mandatory to bring up the appliance. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Netmask corresponding to the IP address. This parameter is mandatory to bring up the appliance. + */ + Netmask string `json:"netmask,omitempty"` + /** + * VLAN (NSVLAN) for the subnet on which the IP address resides. + */ + Nsvlan uint32 `json:"nsvlan,omitempty"` + /** + * Interfaces of the appliances that must be bound to the NSVLAN. + */ + Ifnum []string `json:"ifnum,omitempty"` + /** + * Specifies that the interfaces will be added as 802.1q tagged interfaces. Packets sent on these interface on this VLAN will have an additional 4-byte 802.1q tag which identifies the VLAN. + To use 802.1q tagging, the switch connected to the appliance's interfaces must also be configured for tagging. + */ + Tagged string `json:"tagged,omitempty"` + /** + * The HTTP ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. + */ + Httpport []int32 `json:"httpport,omitempty"` + /** + * The maximum number of connections that will be made from the system to the web server(s) attached to it. The value entered here is applied globally to all attached servers. + */ + Maxconn uint32 `json:"maxconn,omitempty"` + /** + * The maximum number of requests that the system can pass on a particular connection between the system and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * The option to control (enable or disable) the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. + The passed address can then be accessed through a minor modification to the server. + l If cipHeader is specified, it will be used as the client IP header. + l If it is not specified, then the value that has been set by the set ns config CLI command will be used as the client IP header. + */ + Cip string `json:"cip,omitempty"` + /** + * The text that will be used as the client IP header. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * The version of the cookie inserted by system. + */ + Cookieversion string `json:"cookieversion,omitempty"` + /** + * enable/disable secure flag for persistence cookie + */ + Securecookie string `json:"securecookie,omitempty"` + /** + * The minimum Path MTU. + */ + Pmtumin uint32 `json:"pmtumin,omitempty"` + /** + * The timeout value in minutes. + */ + Pmtutimeout uint32 `json:"pmtutimeout,omitempty"` + /** + * Port range configured for FTP services. + */ + Ftpportrange string `json:"ftpportrange,omitempty"` + /** + * Port range for cache redirection services. + */ + Crportrange string `json:"crportrange,omitempty"` + /** + * Name of the timezone + */ + Timezone string `json:"timezone,omitempty"` + /** + * The percentage of shared quota to be granted at a time for maxClient + */ + Grantquotamaxclient uint32 `json:"grantquotamaxclient,omitempty"` + /** + * The percentage of maxClient to be given to PEs + */ + Exclusivequotamaxclient uint32 `json:"exclusivequotamaxclient,omitempty"` + /** + * The percentage of shared quota to be granted at a time for spillover + */ + Grantquotaspillover uint32 `json:"grantquotaspillover,omitempty"` + /** + * The percentage of max limit to be given to PEs + */ + Exclusivequotaspillover uint32 `json:"exclusivequotaspillover,omitempty"` + /** + * Use this option to do saveconfig for all partitions + */ + All bool `json:"all,omitempty"` + /** + * Location of the configurations. + */ + Config1 string `json:"config1,omitempty"` + /** + * Location of the configurations. + */ + Config2 string `json:"config2,omitempty"` + /** + * Format to display the difference in configurations. + */ + Outtype string `json:"outtype,omitempty"` + /** + * File that contains the commands to be compared. + */ + Template bool `json:"template,omitempty"` + /** + * Suppress device specific differences. + */ + Ignoredevicespecific bool `json:"ignoredevicespecific,omitempty"` + /** + * Option to list all weak passwords (not adhering to strong password requirements). Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -weakpassword / query ns config -weakpassword /nsconfig/ns.conf + */ + Weakpassword bool `json:"weakpassword,omitempty"` + /** + * Option to list all passwords changed which would not work when downgraded to older releases. Takes config file as input, if no input specified, running configuration is considered. Command => query ns config -changedpassword / query ns config -changedpassword /nsconfig/ns.conf + */ + Changedpassword bool `json:"changedpassword,omitempty"` + /** + * configuration File to be used to find weak passwords, if not specified, running config is taken as input. + */ + Config string `json:"config,omitempty"` + + //------- Read only Parameter ---------; + + Message string `json:"message,omitempty"` + Mappedip string `json:"mappedip,omitempty"` + Range string `json:"range,omitempty"` + Systemtype string `json:"systemtype,omitempty"` + Primaryip string `json:"primaryip,omitempty"` + Primaryip6 string `json:"primaryip6,omitempty"` + Flags string `json:"flags,omitempty"` + Lastconfigchangedtime string `json:"lastconfigchangedtime,omitempty"` + Lastconfigsavetime string `json:"lastconfigsavetime,omitempty"` + Currentsytemtime string `json:"currentsytemtime,omitempty"` + Systemtime string `json:"systemtime,omitempty"` + Configchanged string `json:"configchanged,omitempty"` + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go new file mode 100644 index 000000000..b354a556f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go @@ -0,0 +1,301 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for TCP/IP connection table resource. +*/ +type Nsconnectiontable struct { + /** + * The maximum length of filter expression is 255 and it can be of following format: + [ ] + = ( && | || ) + =: + CONNECTION...() + = SRCIP + = [ EQ | NE ] + = A valid IPv4 address + example = CONNECTION.SRCIP.EQ(127.0.0.1) + = DSTIP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.DSTIP.EQ(127.0.0.1) + = IP + = [ EQ | NE ] + = A valid IPv4 address. + example = CONNECTION.IP.EQ(127.0.0.1) + = SRCIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.SRCIPv6.EQ(2001:db8:0:0:1::1) + = DSTIPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.DSTIPv6.EQ(2001:db8:0:0:1::1) + = IPv6 + = [ EQ | NE ] + = A valid IPv6 address. + example = CONNECTION.IPv6.EQ(2001:db8:0:0:1::1) + = SRCPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.SRCPORT.EQ(80) + = DSTPORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.DSTPORT.EQ(80) + = PORT + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid port number. + example = CONNECTION.PORT.EQ(80) + = SVCNAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = service name. + example = CONNECTION.SVCNAME.EQ("name") + = LB_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = LB vserver name. + example = CONNECTION.LB_VSERVER.NAME.EQ("name") + = CS_VSERVER.NAME + = [ EQ | NE | CONTAINS | STARTSWITH + | ENDSWITH ] + = CS vserver name. + example = CONNECTION.CS_VSERVER.NAME.EQ("name") + = INTF + = [ EQ | NE ] + = A valid interface id in the form of + x/y (n/x/y in case of cluster interface). + examle = CONNECTION.INTF.EQ("0/1/1") + = VLANID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid VLAN ID. + example = CONNECTION.VLANID.EQ(0) + = CONNID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid PCB dev number. + example = CONNECTION.CONNID.EQ(0) + = PPEID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid core ID. + example = CONNECTION.PPEID.EQ(0) + = IDLETIME + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A positive integer indicating the + idletime. + example = CONNECTION.IDLETIME.LT(100) + = TCPSTATE + = [ EQ | NE ] + = ( CLOSE_WAIT | CLOSED | CLOSING | + ESTABLISHED | FIN_WAIT_1 | FIN_WAIT_2 | LAST_ACK | + LISTEN | SYN_RECEIVED | SYN_SENT | TIME_WAIT | + NOT_APPLICABLE) + example = CONNECTION.TCPSTATE.EQ(LISTEN) + = SERVICE_TYPE + = [ EQ | NE ] + = ( SVC_HTTP | FTP | TCP | UDP | SSL | + SSL_BRIDGE | SSL_TCP | NNTP | RPCSVR | RPCSVRS | + RPCCLNT | SVC_DNS | ADNS | SNMP | RTSP | DHCPRA | NAT | ANY | + MONITOR | MONITOR_UDP | MONITOR_PING | SIP_UDP | + SVC_MYSQL | SVC_MSSQL | SERVICE_UNKNOWN ) + example = CONNECTION.SERVICE_TYPE.EQ(ANY) + = TRAFFIC_DOMAIN_ID + = [ EQ | NE | GT | GE | LT | LE + | BETWEEN ] + = A valid traffic domain ID. + example = CONNECTION.TRAFFIC_DOMAIN_ID.EQ(0) + common usecases: + Filtering out loopback connections and view present + connections through netscaler + show connectiontable "CONNECTION.IP.NE(127.0.0.1) && + CONNECTION.TCPSTATE.EQ(ESTABLISHED)" -detail full + show connections from a particular sourceip and targeted + to port 80 + show connectiontable "CONNECTION.SRCIP.EQ(10.102.1.91) && + CONNECTION.DSTPORT.EQ(80)" + show connection particular to a service and its linked + client connections + show connectiontable CONNECTION.SVCNAME.EQ("S1") + -detail link + show connections for a particular servicetype(e.g.http) + show connectiontable CONNECTION.SERVICE_TYPE.EQ(TCP) + viewing connections that have been idle for a long time + show connectiontable CONNECTION.IDLETIME.GT(100) + show connections particular to a service and idle + for a long time + show connectiontable "CONNECTION.SVCNAME.EQ(\\"S1\\") && + CONNECTION.IDLETIME.GT(100)" + show connections for a particular interface + show connectiontable CONNECTION.INTF.EQ("1/1") + show connections for a particular interface and vlan + show connectiontable "CONNECTION.INTF.EQ(\\"1/1\\") && + CONNECTION.VLANID.EQ(1)" + */ + Filterexpression string `json:"filterexpression,omitempty"` + /** + * Display link information if available + */ + Link bool `json:"link,omitempty"` + /** + * Display name instead of IP for local entities + */ + Filtername bool `json:"filtername,omitempty"` + /** + * Specify display options for the connection table. + * LINK - Displays the linked PCB (Protocol Control Block). + * NAME - Displays along with the service name. + * CONNFAILOVER - Displays PCB with connection failover. + * FULL - Displays all available details. + */ + Detail []string `json:"detail,omitempty"` + /** + * Display listening services only + */ + Listen bool `json:"listen,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Sourceip string `json:"sourceip,omitempty"` + Sourceport string `json:"sourceport,omitempty"` + Destip string `json:"destip,omitempty"` + Destport string `json:"destport,omitempty"` + Svctype string `json:"svctype,omitempty"` + Idletime string `json:"idletime,omitempty"` + State string `json:"state,omitempty"` + Linksourceip string `json:"linksourceip,omitempty"` + Linksourceport string `json:"linksourceport,omitempty"` + Linkdestip string `json:"linkdestip,omitempty"` + Linkdestport string `json:"linkdestport,omitempty"` + Linkservicetype string `json:"linkservicetype,omitempty"` + Linkidletime string `json:"linkidletime,omitempty"` + Linkstate string `json:"linkstate,omitempty"` + Entityname string `json:"entityname,omitempty"` + Linkentityname string `json:"linkentityname,omitempty"` + Connid string `json:"connid,omitempty"` + Linkconnid string `json:"linkconnid,omitempty"` + Connproperties string `json:"connproperties,omitempty"` + Optionflags string `json:"optionflags,omitempty"` + Nswsvalue string `json:"nswsvalue,omitempty"` + Peerwsvalue string `json:"peerwsvalue,omitempty"` + Mss string `json:"mss,omitempty"` + Retxretrycnt string `json:"retxretrycnt,omitempty"` + Rcvwnd string `json:"rcvwnd,omitempty"` + Advwnd string `json:"advwnd,omitempty"` + Sndcwnd string `json:"sndcwnd,omitempty"` + Iss string `json:"iss,omitempty"` + Irs string `json:"irs,omitempty"` + Rcvnxt string `json:"rcvnxt,omitempty"` + Maxack string `json:"maxack,omitempty"` + Sndnxt string `json:"sndnxt,omitempty"` + Sndunack string `json:"sndunack,omitempty"` + Httpendseq string `json:"httpendseq,omitempty"` + Httpstate string `json:"httpstate,omitempty"` + Trcount string `json:"trcount,omitempty"` + Priority string `json:"priority,omitempty"` + Httpreqver string `json:"httpreqver,omitempty"` + Httprequest string `json:"httprequest,omitempty"` + Httprspcode string `json:"httprspcode,omitempty"` + Rttsmoothed string `json:"rttsmoothed,omitempty"` + Rttvariance string `json:"rttvariance,omitempty"` + Outoforderpkts string `json:"outoforderpkts,omitempty"` + Linkoptionflag string `json:"linkoptionflag,omitempty"` + Linknswsvalue string `json:"linknswsvalue,omitempty"` + Linkpeerwsvalue string `json:"linkpeerwsvalue,omitempty"` + Targetnodeidnnm string `json:"targetnodeidnnm,omitempty"` + Sourcenodeidnnm string `json:"sourcenodeidnnm,omitempty"` + Channelidnnm string `json:"channelidnnm,omitempty"` + Msgversionnnm string `json:"msgversionnnm,omitempty"` + Td string `json:"td,omitempty"` + Maxrcvbuf string `json:"maxrcvbuf,omitempty"` + Linkmaxrcvbuf string `json:"linkmaxrcvbuf,omitempty"` + Rxqsize string `json:"rxqsize,omitempty"` + Linkrxqsize string `json:"linkrxqsize,omitempty"` + Maxsndbuf string `json:"maxsndbuf,omitempty"` + Linkmaxsndbuf string `json:"linkmaxsndbuf,omitempty"` + Txqsize string `json:"txqsize,omitempty"` + Linktxqsize string `json:"linktxqsize,omitempty"` + Flavor string `json:"flavor,omitempty"` + Linkflavor string `json:"linkflavor,omitempty"` + Bwestimate string `json:"bwestimate,omitempty"` + Linkbwestimate string `json:"linkbwestimate,omitempty"` + Rttmin string `json:"rttmin,omitempty"` + Linkrttmin string `json:"linkrttmin,omitempty"` + Name string `json:"name,omitempty"` + Linkname string `json:"linkname,omitempty"` + Tcpmode string `json:"tcpmode,omitempty"` + Linktcpmode string `json:"linktcpmode,omitempty"` + Realtimertt string `json:"realtimertt,omitempty"` + Linkrealtimertt string `json:"linkrealtimertt,omitempty"` + Sndbuf string `json:"sndbuf,omitempty"` + Linksndbuf string `json:"linksndbuf,omitempty"` + Nsbtcpwaitq string `json:"nsbtcpwaitq,omitempty"` + Linknsbtcpwaitq string `json:"linknsbtcpwaitq,omitempty"` + Nsbretxq string `json:"nsbretxq,omitempty"` + Linknsbretxq string `json:"linknsbretxq,omitempty"` + Sackblocks string `json:"sackblocks,omitempty"` + Linksackblocks string `json:"linksackblocks,omitempty"` + Congstate string `json:"congstate,omitempty"` + Linkcongstate string `json:"linkcongstate,omitempty"` + Sndrecoverle string `json:"sndrecoverle,omitempty"` + Linksndrecoverle string `json:"linksndrecoverle,omitempty"` + Creditsinbytes string `json:"creditsinbytes,omitempty"` + Linkcredits string `json:"linkcredits,omitempty"` + Rateinbytes string `json:"rateinbytes,omitempty"` + Linkrateinbytes string `json:"linkrateinbytes,omitempty"` + Rateschedulerqueue string `json:"rateschedulerqueue,omitempty"` + Linkrateschedulerqueue string `json:"linkrateschedulerqueue,omitempty"` + Burstratecontrol string `json:"burstratecontrol,omitempty"` + Linkburstratecontrol string `json:"linkburstratecontrol,omitempty"` + Cqabifavg string `json:"cqabifavg,omitempty"` + Cqathruputavg string `json:"cqathruputavg,omitempty"` + Cqarcvwndavg string `json:"cqarcvwndavg,omitempty"` + Cqaiai1mspct string `json:"cqaiai1mspct,omitempty"` + Cqaiai2mspct string `json:"cqaiai2mspct,omitempty"` + Cqasamples string `json:"cqasamples,omitempty"` + Cqaiaisamples string `json:"cqaiaisamples,omitempty"` + Cqanetclass string `json:"cqanetclass,omitempty"` + Cqaccl string `json:"cqaccl,omitempty"` + Cqacsq string `json:"cqacsq,omitempty"` + Cqaiaiavg string `json:"cqaiaiavg,omitempty"` + Cqaisiavg string `json:"cqaisiavg,omitempty"` + Cqarcvwndmin string `json:"cqarcvwndmin,omitempty"` + Cqaretxcorr string `json:"cqaretxcorr,omitempty"` + Cqaretxcong string `json:"cqaretxcong,omitempty"` + Cqaretxpackets string `json:"cqaretxpackets,omitempty"` + Cqaloaddelayavg string `json:"cqaloaddelayavg,omitempty"` + Cqanoisedelayavg string `json:"cqanoisedelayavg,omitempty"` + Cqarttmax string `json:"cqarttmax,omitempty"` + Cqarttmin string `json:"cqarttmin,omitempty"` + Cqarttavg string `json:"cqarttavg,omitempty"` + Adaptivetcpprofname string `json:"adaptivetcpprofname,omitempty"` + Outoforderblocks string `json:"outoforderblocks,omitempty"` + Outoforderflushedcount string `json:"outoforderflushedcount,omitempty"` + Outoforderbytes string `json:"outoforderbytes,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconsoleloginprompt.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconsoleloginprompt.go new file mode 100644 index 000000000..daa681d00 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconsoleloginprompt.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for console prompt resource. +*/ +type Nsconsoleloginprompt struct { + /** + * Console login prompt string + */ + Promptstring string `json:"promptstring,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go new file mode 100644 index 000000000..88e18d8b6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for cqaparam resource. +*/ +type Nscqaparam struct { + /** + * HARQ retransmission delay (in ms). + */ + Harqretxdelay uint32 `json:"harqretxdelay,omitempty"` + /** + * Name of the network label. + */ + Net1label string `json:"net1label,omitempty"` + /** + * MIN RTT (in ms) for the first network. + */ + Minrttnet1 uint32 `json:"minrttnet1,omitempty"` + /** + * coefficients values for Label1. + */ + Lr1coeflist string `json:"lr1coeflist,omitempty"` + /** + * Probability threshold values for LR model to differentiate between NET1 and reset(NET2 and NET3). + */ + Lr1probthresh float64 `json:"lr1probthresh,omitempty"` + /** + * Three congestion level scores limits corresponding to None, Low, Medium. + */ + Net1cclscale string `json:"net1cclscale,omitempty"` + /** + * Three signal quality level scores limits corresponding to Excellent, Good, Fair. + */ + Net1csqscale string `json:"net1csqscale,omitempty"` + /** + * Connection quality ranking Log coefficients of network 1. + */ + Net1logcoef string `json:"net1logcoef,omitempty"` + /** + * Name of the network label 2. + */ + Net2label string `json:"net2label,omitempty"` + /** + * MIN RTT (in ms) for the second network. + */ + Minrttnet2 uint32 `json:"minrttnet2,omitempty"` + /** + * coefficients values for Label 2. + */ + Lr2coeflist string `json:"lr2coeflist,omitempty"` + /** + * Probability threshold values for LR model to differentiate between NET2 and NET3. + */ + Lr2probthresh float64 `json:"lr2probthresh,omitempty"` + /** + * Three congestion level scores limits corresponding to None, Low, Medium. + */ + Net2cclscale string `json:"net2cclscale,omitempty"` + /** + * Three signal quality level scores limits corresponding to Excellent, Good, Fair. + */ + Net2csqscale string `json:"net2csqscale,omitempty"` + /** + * Connnection quality ranking Log coefficients of network 2. + */ + Net2logcoef string `json:"net2logcoef,omitempty"` + /** + * Name of the network label 3. + */ + Net3label string `json:"net3label,omitempty"` + /** + * MIN RTT (in ms) for the third network. + */ + Minrttnet3 uint32 `json:"minrttnet3,omitempty"` + /** + * Three congestion level scores limits corresponding to None, Low, Medium. + */ + Net3cclscale string `json:"net3cclscale,omitempty"` + /** + * Three signal quality level scores limits corresponding to Excellent, Good, Fair. + */ + Net3csqscale string `json:"net3csqscale,omitempty"` + /** + * Connection quality ranking Log coefficients of network 3. + */ + Net3logcoef string `json:"net3logcoef,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpip.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpip.go new file mode 100644 index 000000000..337690cbe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpip.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for dhcp IP resource. +*/ +type Nsdhcpip struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpparams.go new file mode 100644 index 000000000..2e8ad348d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdhcpparams.go @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for DHCP parameters resource. +*/ +type Nsdhcpparams struct { + /** + * Enables DHCP client to acquire IP address from the DHCP server in the next boot. When set to OFF, disables the DHCP client in the next boot. + */ + Dhcpclient string `json:"dhcpclient,omitempty"` + /** + * DHCP acquired routes are saved on the Citrix ADC. + */ + Saveroute string `json:"saveroute,omitempty"` + + //------- Read only Parameter ---------; + + Ipaddress string `json:"ipaddress,omitempty"` + Netmask string `json:"netmask,omitempty"` + Hostrtgw string `json:"hostrtgw,omitempty"` + Running string `json:"running,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go new file mode 100644 index 000000000..bccbaac4c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Diameter Parameters resource. +*/ +type Nsdiameter struct { + /** + * DiameterIdentity to be used by NS. DiameterIdentity is used to identify a Diameter node uniquely. Before setting up diameter configuration, Citrix ADC (as a Diameter node) MUST be assigned a unique DiameterIdentity. + example => + set ns diameter -identity netscaler.com + Now whenever Citrix ADC needs to use identity in diameter messages. It will use 'netscaler.com' as Origin-Host AVP as defined in RFC3588 + */ + Identity string `json:"identity,omitempty"` + /** + * Diameter Realm to be used by NS. + example => + set ns diameter -realm com + Now whenever Citrix ADC system needs to use realm in diameter messages. It will use 'com' as Origin-Realm AVP as defined in RFC3588 + */ + Realm string `json:"realm,omitempty"` + /** + * when a Server connection goes down, whether to close the corresponding client connection if there were requests pending on the server. + */ + Serverclosepropagation string `json:"serverclosepropagation,omitempty"` + /** + * ID of the cluster node for which the diameter id is set, can be configured only through CLIP + */ + Ownernode uint32 `json:"ownernode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionkey.go new file mode 100644 index 000000000..afa2a24ee --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionkey.go @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for encryption key resource. +*/ +type Nsencryptionkey struct { + /** + * Key name. This follows the same syntax rules as other expression entity names: + It must begin with an alpha character (A-Z or a-z) or an underscore (_). + The rest of the characters must be alpha, numeric (0-9) or underscores. + It cannot be re or xp (reserved for regular and XPath expressions). + It cannot be an expression reserved word (e.g. SYS or HTTP). + It cannot be used for an existing expression object (HTTP callout, patset, dataset, stringmap, or named expression). + */ + Name string `json:"name,omitempty"` + /** + * Cipher method to be used to encrypt and decrypt content. + NONE - no encryption or decryption is performed The output of ENCRYPT() and DECRYPT() is the same as the input. + RC4 - the RC4 stream cipher with a 128 bit (16 byte) key; RC4 is now considered insecure and should only be used if required by existing applciations. + DES[-] - the Data Encryption Standard (DES) block cipher with a 64-bit (8 byte) key, with 56 data bits and 8 parity bits. DES is considered less secure than DES3 or AES so it should only be used if required by an existing applicastion. The optional mode is described below; DES without a mode is equivalent to DES-CBC. + DES3[-] - the Triple Data Encryption Standard (DES) block cipher with a 192-bit (24 byte) key. The optional mode is described below; DES3 without a mode is equivalent to DES3-CBC. + AES[-] - the Advanced Encryption Standard block cipher, available with 128 bit (16 byte), 192 bit (24 byte), and 256 bit (32 byte) keys. The optional mode is described below; AES without a mode is equivalent to AES-CBC. + For a block cipher, the specifies how multiple blocks of plaintext are encrypted and how the Initialization Vector (IV) is used. Choices are + CBC (Cipher Block Chaining) - Each block of plaintext is XORed with the previous ciphertext block, or IV for the first block, before being encrypted. Padding is required if the plaintext is not a multiple of the cipher block size. + CFB (Cipher Feedback) - The previous ciphertext block, or the IV for the first block, is encrypted and the output is XORed with the current plaintext block to create the current ciphertext block. The 128-bit version of CFB is provided. Padding is not required. + OFB (Output Feedback) - A keystream is generated by applying the cipher successfully to the IV and XORing the keystream blocks with the plaintext. Padding is not required. + ECB (Electronic Codebook) - Each block of plaintext is independently encrypted. An IV is not used. Padding is required. This mode is considered less secure than the other modes because the same plaintext always produces the same encrypted text and should only be used if required by an existing application. + */ + Method string `json:"method,omitempty"` + /** + * The hex-encoded key value. The length is determined by the cipher method: + RC4 - 16 bytes + DES - 8 bytes (all modes) + DES3 - 24 bytes (all modes) + AES128 - 16 bytes (all modes) + AES192 - 24 bytes (all modes) + AES256 - 32 bytes (all modes) + Note that the keyValue will be encrypted when it it is saved. + There is a special key value AUTO which generates a new random key for the specified method. This kind of key is + intended for use cases where the NetScaler both encrypts and decrypts the same data, such an HTTP header. + */ + Keyvalue string `json:"keyvalue,omitempty"` + /** + * Enables or disables the padding of plaintext to meet the block size requirements of block ciphers: + ON - For encryption, PKCS5/7 padding is used, which appends n bytes of value n on the end of the plaintext to bring it to the cipher block lnegth. If the plaintext length is alraady a multiple of the block length, an additional block with bytes of value block_length will be added. For decryption, ISO 10126 padding is accepted, which expects the last byte of the block to be the number of added pad bytes. Note that this accepts PKCS5/7 padding, as well as ANSI_X923 padding. Padding ON is the default for the ECB and CBD modes. + OFF - No padding. An Undef error will occur with the ECB or CBC modes if the plaintext length is not a multitple of the cipher block size. This can be used with the CFB and OFB modes, and with the ECB and CBC modes if the plaintext will always be an integral number of blocks, or if custom padding is implemented using a policy extension function. Padding OFf is the default for CFB and OFB modes. + */ + Padding string `json:"padding,omitempty"` + /** + * The initalization voector (IV) for a block cipher, one block of data used to initialize the encryption. The best practice is to not specify an IV, in which case a new random IV will be generated for each encryption. The format must be iv_data or keyid_iv_data to include the generated IV in the encrypted data. The IV should only be specified if it cannot be included in the encrypted data. The IV length is the cipher block size: + RC4 - not used (error if IV is specified) + DES - 8 bytes (all modes) + DES3 - 8 bytes (all modes) + AES128 - 16 bytes (all modes) + AES192 - 16 bytes (all modes) + AES256 - 16 bytes (all modes) + */ + Iv string `json:"iv,omitempty"` + /** + * Comments associated with this encryption key. + */ + Comment string `json:"comment,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionparams.go new file mode 100644 index 000000000..73f7e71ce --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsencryptionparams.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for default encryption parameters resource. +*/ +type Nsencryptionparams struct { + /** + * Cipher method (and key length) to be used to encrypt and decrypt content. The default value is AES256. + */ + Method string `json:"method,omitempty"` + /** + * The base64-encoded key generation number, method, and key value. + Note: + * Do not include this argument if you are changing the encryption method. + * To generate a new key value for the current encryption method, specify an empty string \(""\) as the value of this parameter. The parameter is passed implicitly, with its automatically generated value, to the Citrix ADC packet engines even when it is not included in the command. Passing the parameter to the packet engines enables the appliance to save the key value to the configuration file and to propagate the key value to the secondary appliance in a high availability setup. + */ + Keyvalue string `json:"keyvalue,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go new file mode 100644 index 000000000..0e5e1af0b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for events resource. +*/ +type Nsevents struct { + /** + * Event number starting from which events must be shown. + */ + Eventno uint32 `json:"eventno,omitempty"` + + //------- Read only Parameter ---------; + + Time string `json:"time,omitempty"` + Eventcode string `json:"eventcode,omitempty"` + Devid string `json:"devid,omitempty"` + Devname string `json:"devname,omitempty"` + Text string `json:"text,omitempty"` + Data0 string `json:"data0,omitempty"` + Data1 string `json:"data1,omitempty"` + Data2 string `json:"data2,omitempty"` + Data3 string `json:"data3,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension.go new file mode 100644 index 000000000..5abd7135f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension.go @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Extension resource. +*/ +type Nsextension struct { + /** + * Local path to and name of, or URL (protocol, host, path, and file name) for, the file in which to store the imported extension. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Name to assign to the extension object on the Citrix ADC. + */ + Name string `json:"name,omitempty"` + /** + * Any comments to preserve information about the extension object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrites the existing file + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * Enables tracing to the NS log file of extension execution: + off - turns off tracing (equivalent to unset ns extension -trace) + calls - traces extension function calls with arguments and function returns with the first return value + lines - traces the above plus line numbers for executed extension lines + all - traces the above plus local variables changed by executed extension lines + Note that the DEBUG log level must be enabled to see extension tracing. + This can be done by set audit syslogParams -loglevel ALL or -loglevel DEBUG. + */ + Trace string `json:"trace,omitempty"` + /** + * Comma-separated list of extension functions to trace. By default, all extension functions are traced. + */ + Tracefunctions string `json:"tracefunctions,omitempty"` + /** + * Comma-separated list of variables (in traced extension functions) to trace. By default, all variables are traced. + */ + Tracevariables string `json:"tracevariables,omitempty"` + /** + * Show detail for extension function. + */ + Detail string `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Type string `json:"type,omitempty"` + Functionhits string `json:"functionhits,omitempty"` + Functionundefhits string `json:"functionundefhits,omitempty"` + Functionhaltcount string `json:"functionhaltcount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_binding.go new file mode 100644 index 000000000..5be718424 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nsextension_binding. +*/ +type Nsextensionbinding struct { + /** + * Name of the extension object.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go new file mode 100644 index 000000000..953d38415 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the extensionfunction that can be bound to nsextension. +*/ +type Nsextensionextensionfunctionbinding struct { + /** + * Name of extension function given in the extension. + */ + Extensionfunctionname string `json:"extensionfunctionname,omitempty"` + /** + * Line number of the function in file. + */ + Extensionfunctionlinenumber uint32 `json:"extensionfunctionlinenumber,omitempty"` + /** + * Extension function class type. + */ + Extensionfunctionclasstype string `json:"extensionfunctionclasstype,omitempty"` + /** + * Extension function return type. + */ + Extensionfunctionreturntype string `json:"extensionfunctionreturntype,omitempty"` + /** + * Extension function is in use or not. + */ + Activeextensionfunction int32 `json:"activeextensionfunction,omitempty"` + /** + * List of extension function's arguments types + */ + Extensionfunctionargtype []string `json:"extensionfunctionargtype,omitempty"` + /** + * Any description to preserve information about the extension function. + */ + Extensionfuncdescription string `json:"extensionfuncdescription,omitempty"` + /** + * Number of parameters in the extension function + */ + Extensionfunctionargcount uint32 `json:"extensionfunctionargcount,omitempty"` + /** + * List of classes (including inherited) that the function is present in. + */ + Extensionfunctionclasses []string `json:"extensionfunctionclasses,omitempty"` + /** + * Number of classes the function is present in. + */ + Extensionfunctionclassescount uint32 `json:"extensionfunctionclassescount,omitempty"` + /** + * List of parameters (including promotions) that the function can accept. + */ + Extensionfunctionallparams []string `json:"extensionfunctionallparams,omitempty"` + /** + * Number of parameters (including promotions) that the function can accept. + */ + Extensionfunctionallparamscount uint32 `json:"extensionfunctionallparamscount,omitempty"` + /** + * Name of the extension object. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsfeature.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsfeature.go new file mode 100644 index 000000000..bb328510d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsfeature.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for feature resource. +*/ +type Nsfeature struct { + /** + * Feature to be enabled. Multiple features can be specified by providing a blank space between each feature. + */ + Feature []string `json:"feature,omitempty"` + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Cf string `json:"cf,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Push string `json:"push,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Isis string `json:"isis,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Ci string `json:"ci,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshardware.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshardware.go new file mode 100644 index 000000000..15bfc8358 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshardware.go @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for hardware resource. +*/ +type Nshardware struct { + + //------- Read only Parameter ---------; + + Hwdescription string `json:"hwdescription,omitempty"` + Sysid string `json:"sysid,omitempty"` + Manufactureday string `json:"manufactureday,omitempty"` + Manufacturemonth string `json:"manufacturemonth,omitempty"` + Manufactureyear string `json:"manufactureyear,omitempty"` + Cpufrequncy string `json:"cpufrequncy,omitempty"` + Hostid string `json:"hostid,omitempty"` + Host string `json:"host,omitempty"` + Serialno string `json:"serialno,omitempty"` + Encodedserialno string `json:"encodedserialno,omitempty"` + Netscaleruuid string `json:"netscaleruuid,omitempty"` + Bmcrevision string `json:"bmcrevision,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshmackey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshmackey.go new file mode 100644 index 000000000..44dac10f5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshmackey.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for HMAC key resource. +*/ +type Nshmackey struct { + /** + * Key name. This follows the same syntax rules as other expression entity names: + It must begin with an alpha character (A-Z or a-z) or an underscore (_). + The rest of the characters must be alpha, numeric (0-9) or underscores. + It cannot be re or xp (reserved for regular and XPath expressions). + It cannot be an expression reserved word (e.g. SYS or HTTP). + It cannot be used for an existing expression object (HTTP callout, patset, dataset, stringmap, or named expression). + */ + Name string `json:"name,omitempty"` + /** + * Digest (hash) function to be used in the HMAC computation. + */ + Digest string `json:"digest,omitempty"` + /** + * The hex-encoded key to be used in the HMAC computation. The key can be any length (up to a Citrix ADC-imposed maximum of 255 bytes). If the length is less than the digest block size, it will be zero padded up to the block size. If it is greater than the block size, it will be hashed using the digest function to the block size. The block size for each digest is: + MD2 - 16 bytes + MD4 - 16 bytes + MD5 - 16 bytes + SHA1 - 20 bytes + SHA224 - 28 bytes + SHA256 - 32 bytes + SHA384 - 48 bytes + SHA512 - 64 bytes + Note that the key will be encrypted when it it is saved + There is a special key value AUTO which generates a new random key for the specified digest. This kind of key is + intended for use cases where the NetScaler both generates and verifies an HMAC on the same data. + */ + Keyvalue string `json:"keyvalue,omitempty"` + /** + * Comments associated with this encryption key. + */ + Comment string `json:"comment,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go new file mode 100644 index 000000000..ff2d3467e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for host name resource. +*/ +type Nshostname struct { + /** + * Host name for the Citrix ADC. + */ + Hostname string `json:"hostname,omitempty"` + /** + * ID of the cluster node for which you are setting the hostname. Can be configured only through the cluster IP address. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go new file mode 100644 index 000000000..195363944 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for HTTP parameter resource. +*/ +type Nshttpparam struct { + /** + * Drop invalid HTTP requests or responses. + */ + Dropinvalreqs string `json:"dropinvalreqs,omitempty"` + /** + * Mark HTTP/0.9 requests as invalid. + */ + Markhttp09inval string `json:"markhttp09inval,omitempty"` + /** + * Mark CONNECT requests as invalid. + */ + Markconnreqinval string `json:"markconnreqinval,omitempty"` + /** + * Enable or disable Citrix ADC server header insertion for Citrix ADC generated HTTP responses. + */ + Insnssrvrhdr string `json:"insnssrvrhdr,omitempty"` + /** + * The server header value to be inserted. If no explicit header is specified then NSBUILD.RELEASE is used as default server header. + */ + Nssrvrhdr string `json:"nssrvrhdr,omitempty"` + /** + * Server header value to be inserted. + */ + Logerrresp string `json:"logerrresp,omitempty"` + /** + * Reuse server connections for requests from more than one client connections. + */ + Conmultiplex string `json:"conmultiplex,omitempty"` + /** + * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. + */ + Maxreusepool uint32 `json:"maxreusepool,omitempty"` + /** + * Enable/Disable HTTP/2 on server side + */ + Http2serverside string `json:"http2serverside,omitempty"` + /** + * Ignore Coding scheme in CONNECT request. + */ + Ignoreconnectcodingscheme string `json:"ignoreconnectcodingscheme,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go new file mode 100644 index 000000000..012a07b52 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go @@ -0,0 +1,239 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for HTTP profile resource. +*/ +type Nshttpprofile struct { + /** + * Name for an HTTP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a HTTP profile cannot be changed after it is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my http profile" or 'my http profile'\). + */ + Name string `json:"name,omitempty"` + /** + * Drop invalid HTTP requests or responses. + */ + Dropinvalreqs string `json:"dropinvalreqs,omitempty"` + /** + * Mark HTTP/0.9 requests as invalid. + */ + Markhttp09inval string `json:"markhttp09inval,omitempty"` + /** + * Mark CONNECT requests as invalid. + */ + Markconnreqinval string `json:"markconnreqinval,omitempty"` + /** + * Mark TRACE requests as invalid. + */ + Marktracereqinval string `json:"marktracereqinval,omitempty"` + /** + * Mark RFC7230 non-compliant transaction as invalid + */ + Markrfc7230noncompliantinval string `json:"markrfc7230noncompliantinval,omitempty"` + /** + * Mark Http header with extra white space as invalid + */ + Markhttpheaderextrawserror string `json:"markhttpheaderextrawserror,omitempty"` + /** + * Start data compression on receiving a TCP packet with PUSH flag set. + */ + Cmponpush string `json:"cmponpush,omitempty"` + /** + * Reuse server connections for requests from more than one client connections. + */ + Conmultiplex string `json:"conmultiplex,omitempty"` + /** + * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. If non-zero value is given, it has to be greater than or equal to the number of running Packet Engines. + */ + Maxreusepool uint32 `json:"maxreusepool,omitempty"` + /** + * Drop any extra 'CR' and 'LF' characters present after the header. + */ + Dropextracrlf string `json:"dropextracrlf,omitempty"` + /** + * Maximum time to wait, in milliseconds, between incomplete header packets. If the header packets take longer to arrive at Citrix ADC, the connection is silently dropped. + */ + Incomphdrdelay uint32 `json:"incomphdrdelay,omitempty"` + /** + * HTTP connection to be upgraded to a web socket connection. Once upgraded, Citrix ADC does not process Layer 7 traffic on this connection. + */ + Websocket string `json:"websocket,omitempty"` + /** + * Allow RTSP tunnel in HTTP. Once application/x-rtsp-tunnelled is seen in Accept or Content-Type header, Citrix ADC does not process Layer 7 traffic on this connection. + */ + Rtsptunnel string `json:"rtsptunnel,omitempty"` + /** + * Time, in seconds, within which the HTTP request must complete. If the request does not complete within this time, the specified request timeout action is executed. Zero disables the timeout. + */ + Reqtimeout uint32 `json:"reqtimeout,omitempty"` + /** + * Adapts the configured request timeout based on flow conditions. The timeout is increased or decreased internally and applied on the flow. + */ + Adpttimeout string `json:"adpttimeout,omitempty"` + /** + * Action to take when the HTTP request does not complete within the specified request timeout duration. You can configure the following actions: + * RESET - Send RST (reset) to client when timeout occurs. + * DROP - Drop silently when timeout occurs. + * Custom responder action - Name of the responder action to trigger when timeout occurs, used to send custom message. + */ + Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` + /** + * Drop any extra data when server sends more data than the specified content-length. + */ + Dropextradata string `json:"dropextradata,omitempty"` + /** + * Enable or disable web logging. + */ + Weblog string `json:"weblog,omitempty"` + /** + * Name of the header that contains the real client IP address. + */ + Clientiphdrexpr string `json:"clientiphdrexpr,omitempty"` + /** + * Maximum number of requests allowed on a single connection. Zero implies no limit on the number of requests. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * Generate the persistent Citrix ADC specific ETag for the HTTP response with ETag header. + */ + Persistentetag string `json:"persistentetag,omitempty"` + /** + * Enable SPDYv2 or SPDYv3 or both over SSL vserver. SSL will advertise SPDY support either during NPN Handshake or when client will advertises SPDY support during ALPN handshake. Both SPDY versions are enabled when this parameter is set to ENABLED. + */ + Spdy string `json:"spdy,omitempty"` + /** + * Choose whether to enable support for HTTP/2. + */ + Http2 string `json:"http2,omitempty"` + /** + * Choose whether to enable support for Direct HTTP/2. + */ + Http2direct string `json:"http2direct,omitempty"` + /** + * Choose whether to enable strict HTTP/2 cipher selection + */ + Http2strictcipher string `json:"http2strictcipher,omitempty"` + /** + * Choose whether to enable support for sending HTTP/2 ALTSVC frames. When enabled, the ADC sends HTTP/2 ALTSVC frames to HTTP/2 clients, instead of the Alt-Svc response header field. Not applicable to servers. + */ + Http2altsvcframe string `json:"http2altsvcframe,omitempty"` + /** + * Choose whether to enable support for Alternative Services. + */ + Altsvc string `json:"altsvc,omitempty"` + /** + * Configure a custom Alternative Services header value that should be inserted in the response to advertise a HTTP/SSL/HTTP_QUIC vserver. + */ + Altsvcvalue string `json:"altsvcvalue,omitempty"` + /** + * Idle timeout (in seconds) for server connections in re-use pool. Connections in the re-use pool are flushed, if they remain idle for the configured timeout. + */ + Reusepooltimeout uint32 `json:"reusepooltimeout,omitempty"` + /** + * Number of bytes to be queued to look for complete header before returning error. If complete header is not obtained after queuing these many bytes, request will be marked as invalid and no L7 processing will be done for that TCP connection. + */ + Maxheaderlen uint32 `json:"maxheaderlen,omitempty"` + /** + * Minimum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. + */ + Minreusepool uint32 `json:"minreusepool,omitempty"` + /** + * Maximum size of header list that the Citrix ADC is prepared to accept, in bytes. NOTE: The actual plain text header size that the Citrix ADC accepts is limited by maxHeaderLen. Please change maxHeaderLen parameter as well when modifying http2MaxHeaderListSize. + */ + Http2maxheaderlistsize uint32 `json:"http2maxheaderlistsize,omitempty"` + /** + * Maximum size of the frame payload that the Citrix ADC is willing to receive, in bytes. + */ + Http2maxframesize uint32 `json:"http2maxframesize,omitempty"` + /** + * Maximum number of concurrent streams that is allowed per connection. + */ + Http2maxconcurrentstreams uint32 `json:"http2maxconcurrentstreams,omitempty"` + /** + * Initial window size for connection level flow control, in bytes. + */ + Http2initialconnwindowsize uint32 `json:"http2initialconnwindowsize,omitempty"` + /** + * Initial window size for stream level flow control, in bytes. + */ + Http2initialwindowsize uint32 `json:"http2initialwindowsize,omitempty"` + /** + * Maximum size of the header compression table used to decode header blocks, in bytes. + */ + Http2headertablesize uint32 `json:"http2headertablesize,omitempty"` + /** + * Minimum number of HTTP2 connections established to backend server, on receiving HTTP requests from client before multiplexing the streams into the available HTTP/2 connections. + */ + Http2minseverconn uint32 `json:"http2minseverconn,omitempty"` + /** + * Maximum number of ping frames allowed in HTTP2 connection per minute + */ + Http2maxpingframespermin uint32 `json:"http2maxpingframespermin,omitempty"` + /** + * Maximum number of settings frames allowed in HTTP2 connection per minute + */ + Http2maxsettingsframespermin uint32 `json:"http2maxsettingsframespermin,omitempty"` + /** + * Maximum number of reset frames allowed in HTTP/2 connection per minute + */ + Http2maxresetframespermin uint32 `json:"http2maxresetframespermin,omitempty"` + /** + * Maximum number of empty frames allowed in HTTP2 connection per minute + */ + Http2maxemptyframespermin uint32 `json:"http2maxemptyframespermin,omitempty"` + /** + * Maximum size in bytes allowed to buffer gRPC packets till trailer is received + */ + Grpcholdlimit uint32 `json:"grpcholdlimit,omitempty"` + /** + * Maximum time in milliseconds allowed to buffer gRPC packets till trailer is received. The value should be in multiples of 100 + */ + Grpcholdtimeout uint32 `json:"grpcholdtimeout,omitempty"` + /** + * Set to DISABLED for gRPC without a length delimitation. + */ + Grpclengthdelimitation string `json:"grpclengthdelimitation,omitempty"` + /** + * This option sets the satisfactory threshold (T) for client response time in milliseconds to be used for APDEX calculations. This means a transaction responding in less than this threshold is considered satisfactory. Transaction responding between T and 4*T is considered tolerable. Any transaction responding in more than 4*T time is considered frustrating. Citrix ADC maintains stats for such tolerable and frustrating transcations. And client response time related apdex counters are only updated on a vserver which receives clients traffic. + */ + Apdexcltresptimethreshold uint32 `json:"apdexcltresptimethreshold,omitempty"` + /** + * Choose whether to enable support for HTTP/3. + */ + Http3 string `json:"http3,omitempty"` + /** + * Maximum size of the HTTP/3 header field section, in bytes. + */ + Http3maxheaderfieldsectionsize uint32 `json:"http3maxheaderfieldsectionsize,omitempty"` + /** + * Maximum size of the HTTP/3 QPACK dynamic header table, in bytes. + */ + Http3maxheadertablesize uint32 `json:"http3maxheadertablesize,omitempty"` + /** + * Maximum number of HTTP/3 streams that can be blocked while HTTP/3 headers are being decoded. + */ + Http3maxheaderblockedstreams uint32 `json:"http3maxheaderblockedstreams,omitempty"` + + //------- Read only Parameter ---------; + + Refcnt string `json:"refcnt,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Apdexsvrresptimethreshold string `json:"apdexsvrresptimethreshold,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go new file mode 100644 index 000000000..4a72ead94 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ICAP profile resource. +*/ +type Nsicapprofile struct { + /** + * Name for an ICAP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a ICAP profile cannot be changed after it is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my icap profile" or 'my icap profile'\). + */ + Name string `json:"name,omitempty"` + /** + * Enable or Disable preview header with ICAP request. This feature allows an ICAP server to see the beginning of a transaction, then decide if it wants to opt-out of the transaction early instead of receiving the remainder of the request message. + */ + Preview string `json:"preview,omitempty"` + /** + * Value of Preview Header field. Citrix ADC uses the minimum of this set value and the preview size received on OPTIONS response. + */ + Previewlength uint32 `json:"previewlength,omitempty"` + /** + * URI representing icap service. It is a mandatory argument while creating an icapprofile. + */ + Uri string `json:"uri,omitempty"` + /** + * ICAP Host Header + */ + Hostheader string `json:"hostheader,omitempty"` + /** + * ICAP User Agent Header String + */ + Useragent string `json:"useragent,omitempty"` + /** + * ICAP Mode of operation. It is a mandatory argument while creating an icapprofile. + */ + Mode string `json:"mode,omitempty"` + /** + * Query parameters to be included with ICAP request URI. Entered values should be in arg=value format. For more than one parameters, add & separated values. e.g.: arg1=val1&arg2=val2. + */ + Queryparams string `json:"queryparams,omitempty"` + /** + * If enabled, Citrix ADC keeps the ICAP connection alive after a transaction to reuse it to send next ICAP request. + */ + Connectionkeepalive string `json:"connectionkeepalive,omitempty"` + /** + * Enable or Disable sending Allow: 204 header in ICAP request. + */ + Allow204 string `json:"allow204,omitempty"` + /** + * Insert custom ICAP headers in the ICAP request to send to ICAP server. The headers can be static or can be dynamically constructed using PI Policy Expression. For example, to send static user agent and Client's IP address, the expression can be specified as "User-Agent: NS-ICAP-Client/V1.0\r\nX-Client-IP: "+CLIENT.IP.SRC+"\r\n". + The Citrix ADC does not check the validity of the specified header name-value. You must manually validate the specified header syntax. + */ + Inserticapheaders string `json:"inserticapheaders,omitempty"` + /** + * Exact HTTP request, in the form of an expression, which the Citrix ADC encapsulates and sends to the ICAP server. If you set this parameter, the ICAP request is sent using only this header. This can be used when the HTTP header is not available to send or ICAP server only needs part of the incoming HTTP request. The request expression is constrained by the feature for which it is used. + The Citrix ADC does not check the validity of this request. You must manually validate the request. + */ + Inserthttprequest string `json:"inserthttprequest,omitempty"` + /** + * Time, in seconds, within which the remote server should respond to the ICAP-request. If the Netscaler does not receive full response with this time, the specified request timeout action is performed. Zero value disables this timeout functionality. + */ + Reqtimeout uint32 `json:"reqtimeout,omitempty"` + /** + * Name of the action to perform if the Vserver/Server representing the remote service does not respond with any response within the timeout value configured. The Supported actions are + * BYPASS - This Ignores the remote server response and sends the request/response to Client/Server. + * If the ICAP response with Encapsulated headers is not received within the request-timeout value configured, this Ignores the remote ICAP server response and sends the Full request/response to Server/Client. + * RESET - Reset the client connection by closing it. The client program, such as a browser, will handle this and may inform the user. The client may then resend the request if desired. + * DROP - Drop the request without sending a response to the user. + */ + Reqtimeoutaction string `json:"reqtimeoutaction,omitempty"` + /** + * Name of the audit message action which would be evaluated on receiving the ICAP response to emit the logs. + */ + Logaction string `json:"logaction,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go new file mode 100644 index 000000000..74af25fd3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go @@ -0,0 +1,205 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ip resource. +*/ +type Nsip struct { + /** + * IPv4 address to create on the Citrix ADC. Cannot be changed after the IP address is created. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Subnet mask associated with the IP address. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Type of the IP address to create on the Citrix ADC. Cannot be changed after the IP address is created. The following are the different types of Citrix ADC owned IP addresses: + * A Subnet IP (SNIP) address is used by the Citrix ADC to communicate with the servers. The Citrix ADC also uses the subnet IP address when generating its own packets, such as packets related to dynamic routing protocols, or to send monitor probes to check the health of the servers. + * A Virtual IP (VIP) address is the IP address associated with a virtual server. It is the IP address to which clients connect. An appliance managing a wide range of traffic may have many VIPs configured. Some of the attributes of the VIP address are customized to meet the requirements of the virtual server. + * A GSLB site IP (GSLBIP) address is associated with a GSLB site. It is not mandatory to specify a GSLBIP address when you initially configure the Citrix ADC. A GSLBIP address is used only when you create a GSLB site. + * A Cluster IP (CLIP) address is the management address of the cluster. All cluster configurations must be performed by accessing the cluster through this IP address. + */ + Type string `json:"type,omitempty"` + /** + * Respond to ARP requests for this IP address. + */ + Arp string `json:"arp,omitempty"` + /** + * Respond to ICMP requests for this IP address. + */ + Icmp string `json:"icmp,omitempty"` + /** + * Use this option to set (enable or disable) the virtual server attribute for this IP address. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Allow Telnet access to this IP address. + */ + Telnet string `json:"telnet,omitempty"` + /** + * Allow File Transfer Protocol (FTP) access to this IP address. + */ + Ftp string `json:"ftp,omitempty"` + /** + * Allow graphical user interface (GUI) access to this IP address. + */ + Gui string `json:"gui,omitempty"` + /** + * Allow secure shell (SSH) access to this IP address. + */ + Ssh string `json:"ssh,omitempty"` + /** + * Allow Simple Network Management Protocol (SNMP) access to this IP address. + */ + Snmp string `json:"snmp,omitempty"` + /** + * Allow access to management applications on this IP address. + */ + Mgmtaccess string `json:"mgmtaccess,omitempty"` + /** + * Block access to nonmanagement applications on this IP. This option is applicable for MIPs, SNIPs, and NSIP, and is disabled by default. Nonmanagement applications can run on the underlying Citrix ADC Free BSD operating system. + */ + Restrictaccess string `json:"restrictaccess,omitempty"` + /** + * Allow dynamic routing on this IP address. Specific to Subnet IP (SNIP) address. + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Decrement TTL by 1 when ENABLED.This setting is applicable only for UDP traffic. + */ + Decrementttl string `json:"decrementttl,omitempty"` + /** + * Use this option to enable or disable OSPF on this IP address for the entity. + */ + Ospf string `json:"ospf,omitempty"` + /** + * Use this option to enable or disable BGP on this IP address for the entity. + */ + Bgp string `json:"bgp,omitempty"` + /** + * Use this option to enable or disable RIP on this IP address for the entity. + */ + Rip string `json:"rip,omitempty"` + /** + * Option to push the VIP to ZebOS routing table for Kernel route redistribution through dynamic routing protocols + */ + Hostroute string `json:"hostroute,omitempty"` + /** + * Advertise VIPs from Shared VLAN on Default Partition. + */ + Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` + /** + * Option to push the SNIP subnet to ZebOS routing table for Kernel route redistribution through dynamic routing protocol. + */ + Networkroute string `json:"networkroute,omitempty"` + /** + * Tag value for the network/host route associated with this IP. + */ + Tag uint32 `json:"tag,omitempty"` + /** + * IP address of the gateway of the route for this VIP address. + */ + Hostrtgw string `json:"hostrtgw,omitempty"` + /** + * Integer value to add to or subtract from the cost of the route advertised for the VIP address. + */ + Metric int32 `json:"metric,omitempty"` + /** + * Advertise the route for the Virtual IP (VIP) address on the basis of the state of the virtual servers associated with that VIP. + * NONE - Advertise the route for the VIP address, regardless of the state of the virtual servers associated with the address. + * ONE VSERVER - Advertise the route for the VIP address if at least one of the associated virtual servers is in UP state. + * ALL VSERVER - Advertise the route for the VIP address if all of the associated virtual servers are in UP state. + * VSVR_CNTRLD - Advertise the route for the VIP address according to the RHIstate (RHI STATE) parameter setting on all the associated virtual servers of the VIP address along with their states. + When Vserver RHI Level (RHI) parameter is set to VSVR_CNTRLD, the following are different RHI behaviors for the VIP address on the basis of RHIstate (RHI STATE) settings on the virtual servers associated with the VIP address: + * If you set RHI STATE to PASSIVE on all virtual servers, the Citrix ADC always advertises the route for the VIP address. + * If you set RHI STATE to ACTIVE on all virtual servers, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers is in UP state. + *If you set RHI STATE to ACTIVE on some and PASSIVE on others, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers, whose RHI STATE set to ACTIVE, is in UP state. + */ + Vserverrhilevel string `json:"vserverrhilevel,omitempty"` + /** + * Type of LSAs to be used by the OSPF protocol, running on the Citrix ADC, for advertising the route for this VIP address. + */ + Ospflsatype string `json:"ospflsatype,omitempty"` + /** + * ID of the area in which the type1 link-state advertisements (LSAs) are to be advertised for this virtual IP (VIP) address by the OSPF protocol running on the Citrix ADC. When this parameter is not set, the VIP is advertised on all areas. + */ + Ospfarea uint32 `json:"ospfarea,omitempty"` + /** + * Enable or disable the IP address. + */ + State string `json:"state,omitempty"` + /** + * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. + */ + Vrid uint32 `json:"vrid,omitempty"` + /** + * Respond to ICMP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: + * NONE - The Citrix ADC responds to any ICMP request for the VIP address, irrespective of the states of the virtual servers associated with the address. + * ONE VSERVER - The Citrix ADC responds to any ICMP request for the VIP address if at least one of the associated virtual servers is in UP state. + * ALL VSERVER - The Citrix ADC responds to any ICMP request for the VIP address if all of the associated virtual servers are in UP state. + * VSVR_CNTRLD - The behavior depends on the ICMP VSERVER RESPONSE setting on all the associated virtual servers. + The following settings can be made for the ICMP VSERVER RESPONSE parameter on a virtual server: + * If you set ICMP VSERVER RESPONSE to PASSIVE on all virtual servers, Citrix ADC always responds. + * If you set ICMP VSERVER RESPONSE to ACTIVE on all virtual servers, Citrix ADC responds if even one virtual server is UP. + * When you set ICMP VSERVER RESPONSE to ACTIVE on some and PASSIVE on others, Citrix ADC responds if even one virtual server set to ACTIVE is UP. + */ + Icmpresponse string `json:"icmpresponse,omitempty"` + /** + * The owner node in a Cluster for this IP address. Owner node can vary from 0 to 31. If ownernode is not specified then the IP is treated as Striped IP. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * Respond to ARP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: + * NONE - The Citrix ADC responds to any ARP request for the VIP address, irrespective of the states of the virtual servers associated with the address. + * ONE VSERVER - The Citrix ADC responds to any ARP request for the VIP address if at least one of the associated virtual servers is in UP state. + * ALL VSERVER - The Citrix ADC responds to any ARP request for the VIP address if all of the associated virtual servers are in UP state. + */ + Arpresponse string `json:"arpresponse,omitempty"` + /** + * in cluster system, if the owner node is down, whether should it respond to icmp/arp + */ + Ownerdownresponse string `json:"ownerdownresponse,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. TD id 4095 is used reserved for LSN use + */ + Td uint32 `json:"td,omitempty"` + /** + * The arp owner in a Cluster for this IP address. It can vary from 0 to 31. + */ + Arpowner uint32 `json:"arpowner,omitempty"` + /** + * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. + */ + Mptcpadvertise string `json:"mptcpadvertise,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + Hostrtgwact string `json:"hostrtgwact,omitempty"` + Ospfareaval string `json:"ospfareaval,omitempty"` + Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` + Vipvsercount string `json:"vipvsercount,omitempty"` + Vipvserdowncount string `json:"vipvserdowncount,omitempty"` + Vipvsrvrrhiactivecount string `json:"vipvsrvrrhiactivecount,omitempty"` + Vipvsrvrrhiactiveupcount string `json:"vipvsrvrrhiactiveupcount,omitempty"` + Freeports string `json:"freeports,omitempty"` + Iptype string `json:"iptype,omitempty"` + Operationalarpowner string `json:"operationalarpowner,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go new file mode 100644 index 000000000..d2b2ce2a7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go @@ -0,0 +1,174 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ip6 resource. +*/ +type Nsip6 struct { + /** + * IPv6 address to create on the Citrix ADC. + */ + Ipv6address string `json:"ipv6address,omitempty"` + /** + * Scope of the IPv6 address to be created. Cannot be changed after the IP address is created. + */ + Scope string `json:"scope,omitempty"` + /** + * Type of IP address to be created on the Citrix ADC. Cannot be changed after the IP address is created. + */ + Type string `json:"type,omitempty"` + /** + * The VLAN number. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Respond to Neighbor Discovery (ND) requests for this IP address. + */ + Nd string `json:"nd,omitempty"` + /** + * Respond to ICMP requests for this IP address. + */ + Icmp string `json:"icmp,omitempty"` + /** + * Enable or disable the state of all the virtual servers associated with this VIP6 address. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Allow Telnet access to this IP address. + */ + Telnet string `json:"telnet,omitempty"` + /** + * Allow File Transfer Protocol (FTP) access to this IP address. + */ + Ftp string `json:"ftp,omitempty"` + /** + * Allow graphical user interface (GUI) access to this IP address. + */ + Gui string `json:"gui,omitempty"` + /** + * Allow secure Shell (SSH) access to this IP address. + */ + Ssh string `json:"ssh,omitempty"` + /** + * Allow Simple Network Management Protocol (SNMP) access to this IP address. + */ + Snmp string `json:"snmp,omitempty"` + /** + * Allow access to management applications on this IP address. + */ + Mgmtaccess string `json:"mgmtaccess,omitempty"` + /** + * Block access to nonmanagement applications on this IP address. This option is applicable forMIP6s, SNIP6s, and NSIP6s, and is disabled by default. Nonmanagement applications can run on the underlying Citrix ADC Free BSD operating system. + */ + Restrictaccess string `json:"restrictaccess,omitempty"` + /** + * Allow dynamic routing on this IP address. Specific to Subnet IPv6 (SNIP6) address. + */ + Dynamicrouting string `json:"dynamicrouting,omitempty"` + /** + * Decrement Hop Limit by 1 when ENABLED.This setting is applicable only for UDP traffic. + */ + Decrementhoplimit string `json:"decrementhoplimit,omitempty"` + /** + * Option to push the VIP6 to ZebOS routing table for Kernel route redistribution through dynamic routing protocols. + */ + Hostroute string `json:"hostroute,omitempty"` + /** + * Advertise VIPs from Shared VLAN on Default Partition + */ + Advertiseondefaultpartition string `json:"advertiseondefaultpartition,omitempty"` + /** + * Option to push the SNIP6 subnet to ZebOS routing table for Kernel route redistribution through dynamic routing protocol. + */ + Networkroute string `json:"networkroute,omitempty"` + /** + * Tag value for the network/host route associated with this IP. + */ + Tag uint32 `json:"tag,omitempty"` + /** + * IPv6 address of the gateway for the route. If Gateway is not set, VIP uses :: as the gateway. + */ + Ip6hostrtgw string `json:"ip6hostrtgw,omitempty"` + /** + * Integer value to add to or subtract from the cost of the route advertised for the VIP6 address. + */ + Metric int32 `json:"metric,omitempty"` + /** + * Advertise or do not advertise the route for the Virtual IP (VIP6) address on the basis of the state of the virtual servers associated with that VIP6. + * NONE - Advertise the route for the VIP6 address, irrespective of the state of the virtual servers associated with the address. + * ONE VSERVER - Advertise the route for the VIP6 address if at least one of the associated virtual servers is in UP state. + * ALL VSERVER - Advertise the route for the VIP6 address if all of the associated virtual servers are in UP state. + * VSVR_CNTRLD. Advertise the route for the VIP address according to the RHIstate (RHI STATE) parameter setting on all the associated virtual servers of the VIP address along with their states. + When Vserver RHI Level (RHI) parameter is set to VSVR_CNTRLD, the following are different RHI behaviors for the VIP address on the basis of RHIstate (RHI STATE) settings on the virtual servers associated with the VIP address: + * If you set RHI STATE to PASSIVE on all virtual servers, the Citrix ADC always advertises the route for the VIP address. + * If you set RHI STATE to ACTIVE on all virtual servers, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers is in UP state. + *If you set RHI STATE to ACTIVE on some and PASSIVE on others, the Citrix ADC advertises the route for the VIP address if at least one of the associated virtual servers, whose RHI STATE set to ACTIVE, is in UP state. + */ + Vserverrhilevel string `json:"vserverrhilevel,omitempty"` + /** + * Type of LSAs to be used by the IPv6 OSPF protocol, running on the Citrix ADC, for advertising the route for the VIP6 address. + */ + Ospf6lsatype string `json:"ospf6lsatype,omitempty"` + /** + * ID of the area in which the Intra-Area-Prefix LSAs are to be advertised for the VIP6 address by the IPv6 OSPF protocol running on the Citrix ADC. When ospfArea is not set, VIP6 is advertised on all areas. + */ + Ospfarea uint32 `json:"ospfarea,omitempty"` + /** + * Enable or disable the IP address. + */ + State string `json:"state,omitempty"` + /** + * Mapped IPV4 address for the IPV6 address. + */ + Map string `json:"map,omitempty"` + /** + * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. + */ + Vrid6 uint32 `json:"vrid6,omitempty"` + /** + * ID of the cluster node for which you are adding the IP address. Must be used if you want the IP address to be active only on the specific node. Can be configured only through the cluster IP address. Cannot be changed after the IP address is created. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + /** + * in cluster system, if the owner node is down, whether should it respond to icmp/arp + */ + Ownerdownresponse string `json:"ownerdownresponse,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * NdOwner in Cluster for VIPS and Striped SNIPS + */ + Ndowner uint32 `json:"ndowner,omitempty"` + /** + * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. + */ + Mptcpadvertise string `json:"mptcpadvertise,omitempty"` + + //------- Read only Parameter ---------; + + Iptype string `json:"iptype,omitempty"` + Curstate string `json:"curstate,omitempty"` + Viprtadv2bsd string `json:"viprtadv2bsd,omitempty"` + Vipvsercount string `json:"vipvsercount,omitempty"` + Vipvserdowncount string `json:"vipvserdowncount,omitempty"` + Systemtype string `json:"systemtype,omitempty"` + Operationalndowner string `json:"operationalndowner,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicense.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicense.go new file mode 100644 index 000000000..809124703 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicense.go @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for license resource. +*/ +type Nslicense struct { + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Delta string `json:"delta,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Gslbp string `json:"gslbp,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Routing string `json:"routing,omitempty"` + Cf string `json:"cf,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` + Ficausers string `json:"f_ica_users,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Agee string `json:"agee,omitempty"` + Nsxn string `json:"nsxn,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Modelid string `json:"modelid,omitempty"` + Push string `json:"push,omitempty"` + Wionns string `json:"wionns,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` + Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` + Isis string `json:"isis,omitempty"` + Cluster string `json:"cluster,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Appflowica string `json:"appflowica,omitempty"` + Isstandardlic string `json:"isstandardlic,omitempty"` + Isenterpriselic string `json:"isenterpriselic,omitempty"` + Isplatinumlic string `json:"isplatinumlic,omitempty"` + Issgwylic string `json:"issgwylic,omitempty"` + Isswglic string `json:"isswglic,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Licensingmode string `json:"licensingmode,omitempty"` + Cloudsubscriptionimage string `json:"cloudsubscriptionimage,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Remotecontentinspection string `json:"remotecontentinspection,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go new file mode 100644 index 000000000..33184c7d3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for licenseparameters resource. +*/ +type Nslicenseparameters struct { + /** + * If ADC remains in grace for the configured hours then first grace alert will be raised + */ + Alert1gracetimeout uint32 `json:"alert1gracetimeout,omitempty"` + /** + * If ADC remains in grace for the configured hours then major grace alert will be raised + */ + Alert2gracetimeout uint32 `json:"alert2gracetimeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go new file mode 100644 index 000000000..d35d48e9f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for licenseproxyserver resource. +*/ +type Nslicenseproxyserver struct { + /** + * IP address of the License proxy server. + */ + Serverip string `json:"serverip,omitempty"` + /** + * Fully qualified domain name of the License proxy server. + */ + Servername string `json:"servername,omitempty"` + /** + * License proxy server port. + */ + Port uint32 `json:"port,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go new file mode 100644 index 000000000..59b6ce6fe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go @@ -0,0 +1,50 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for licenseserver resource. +*/ +type Nslicenseserver struct { + /** + * IP address of the License server. + */ + Licenseserverip string `json:"licenseserverip,omitempty"` + /** + * Fully qualified domain name of the License server. + */ + Servername string `json:"servername,omitempty"` + /** + * License server port. + */ + Port uint32 `json:"port,omitempty"` + /** + * If this flag is used while adding the licenseserver, existing config will be overwritten. Use this flag only if you are sure that the new licenseserver has the required capacity. + */ + Forceupdateip bool `json:"forceupdateip,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Status string `json:"status,omitempty"` + Grace string `json:"grace,omitempty"` + Gptimeleft string `json:"gptimeleft,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserverpool.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserverpool.go new file mode 100644 index 000000000..0c7204b08 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserverpool.go @@ -0,0 +1,145 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for licenseserver resource. +*/ +type Nslicenseserverpool struct { + + //------- Read only Parameter ---------; + + Instancetotal string `json:"instancetotal,omitempty"` + Instanceavailable string `json:"instanceavailable,omitempty"` + Standardbandwidthtotal string `json:"standardbandwidthtotal,omitempty"` + Standardbandwidthavailable string `json:"standardbandwidthavailable,omitempty"` + Enterprisebandwidthtotal string `json:"enterprisebandwidthtotal,omitempty"` + Enterprisebandwidthavailable string `json:"enterprisebandwidthavailable,omitempty"` + Platinumbandwidthtotal string `json:"platinumbandwidthtotal,omitempty"` + Platinumbandwidthavailable string `json:"platinumbandwidthavailable,omitempty"` + Standardcputotal string `json:"standardcputotal,omitempty"` + Standardcpuavailable string `json:"standardcpuavailable,omitempty"` + Enterprisecputotal string `json:"enterprisecputotal,omitempty"` + Enterprisecpuavailable string `json:"enterprisecpuavailable,omitempty"` + Platinumcputotal string `json:"platinumcputotal,omitempty"` + Platinumcpuavailable string `json:"platinumcpuavailable,omitempty"` + Cpxinstancetotal string `json:"cpxinstancetotal,omitempty"` + Cpxinstanceavailable string `json:"cpxinstanceavailable,omitempty"` + Vpx1stotal string `json:"vpx1stotal,omitempty"` + Vpx1savailable string `json:"vpx1savailable,omitempty"` + Vpx1ptotal string `json:"vpx1ptotal,omitempty"` + Vpx1pavailable string `json:"vpx1pavailable,omitempty"` + Vpx5stotal string `json:"vpx5stotal,omitempty"` + Vpx5savailable string `json:"vpx5savailable,omitempty"` + Vpx5ptotal string `json:"vpx5ptotal,omitempty"` + Vpx5pavailable string `json:"vpx5pavailable,omitempty"` + Vpx10stotal string `json:"vpx10stotal,omitempty"` + Vpx10savailable string `json:"vpx10savailable,omitempty"` + Vpx10etotal string `json:"vpx10etotal,omitempty"` + Vpx10eavailable string `json:"vpx10eavailable,omitempty"` + Vpx10ptotal string `json:"vpx10ptotal,omitempty"` + Vpx10pavailable string `json:"vpx10pavailable,omitempty"` + Vpx25stotal string `json:"vpx25stotal,omitempty"` + Vpx25savailable string `json:"vpx25savailable,omitempty"` + Vpx25etotal string `json:"vpx25etotal,omitempty"` + Vpx25eavailable string `json:"vpx25eavailable,omitempty"` + Vpx25ptotal string `json:"vpx25ptotal,omitempty"` + Vpx25pavailable string `json:"vpx25pavailable,omitempty"` + Vpx50stotal string `json:"vpx50stotal,omitempty"` + Vpx50savailable string `json:"vpx50savailable,omitempty"` + Vpx50etotal string `json:"vpx50etotal,omitempty"` + Vpx50eavailable string `json:"vpx50eavailable,omitempty"` + Vpx50ptotal string `json:"vpx50ptotal,omitempty"` + Vpx50pavailable string `json:"vpx50pavailable,omitempty"` + Vpx100stotal string `json:"vpx100stotal,omitempty"` + Vpx100savailable string `json:"vpx100savailable,omitempty"` + Vpx100etotal string `json:"vpx100etotal,omitempty"` + Vpx100eavailable string `json:"vpx100eavailable,omitempty"` + Vpx100ptotal string `json:"vpx100ptotal,omitempty"` + Vpx100pavailable string `json:"vpx100pavailable,omitempty"` + Vpx200stotal string `json:"vpx200stotal,omitempty"` + Vpx200savailable string `json:"vpx200savailable,omitempty"` + Vpx200etotal string `json:"vpx200etotal,omitempty"` + Vpx200eavailable string `json:"vpx200eavailable,omitempty"` + Vpx200ptotal string `json:"vpx200ptotal,omitempty"` + Vpx200pavailable string `json:"vpx200pavailable,omitempty"` + Vpx500stotal string `json:"vpx500stotal,omitempty"` + Vpx500savailable string `json:"vpx500savailable,omitempty"` + Vpx500etotal string `json:"vpx500etotal,omitempty"` + Vpx500eavailable string `json:"vpx500eavailable,omitempty"` + Vpx500ptotal string `json:"vpx500ptotal,omitempty"` + Vpx500pavailable string `json:"vpx500pavailable,omitempty"` + Vpx1000stotal string `json:"vpx1000stotal,omitempty"` + Vpx1000savailable string `json:"vpx1000savailable,omitempty"` + Vpx1000etotal string `json:"vpx1000etotal,omitempty"` + Vpx1000eavailable string `json:"vpx1000eavailable,omitempty"` + Vpx1000ptotal string `json:"vpx1000ptotal,omitempty"` + Vpx1000pavailable string `json:"vpx1000pavailable,omitempty"` + Vpx2000ptotal string `json:"vpx2000ptotal,omitempty"` + Vpx2000pavailable string `json:"vpx2000pavailable,omitempty"` + Vpx3000stotal string `json:"vpx3000stotal,omitempty"` + Vpx3000savailable string `json:"vpx3000savailable,omitempty"` + Vpx3000etotal string `json:"vpx3000etotal,omitempty"` + Vpx3000eavailable string `json:"vpx3000eavailable,omitempty"` + Vpx3000ptotal string `json:"vpx3000ptotal,omitempty"` + Vpx3000pavailable string `json:"vpx3000pavailable,omitempty"` + Vpx4000ptotal string `json:"vpx4000ptotal,omitempty"` + Vpx4000pavailable string `json:"vpx4000pavailable,omitempty"` + Vpx5000stotal string `json:"vpx5000stotal,omitempty"` + Vpx5000savailable string `json:"vpx5000savailable,omitempty"` + Vpx5000etotal string `json:"vpx5000etotal,omitempty"` + Vpx5000eavailable string `json:"vpx5000eavailable,omitempty"` + Vpx5000ptotal string `json:"vpx5000ptotal,omitempty"` + Vpx5000pavailable string `json:"vpx5000pavailable,omitempty"` + Vpx8000stotal string `json:"vpx8000stotal,omitempty"` + Vpx8000savailable string `json:"vpx8000savailable,omitempty"` + Vpx8000etotal string `json:"vpx8000etotal,omitempty"` + Vpx8000eavailable string `json:"vpx8000eavailable,omitempty"` + Vpx8000ptotal string `json:"vpx8000ptotal,omitempty"` + Vpx8000pavailable string `json:"vpx8000pavailable,omitempty"` + Vpx10000stotal string `json:"vpx10000stotal,omitempty"` + Vpx10000savailable string `json:"vpx10000savailable,omitempty"` + Vpx10000etotal string `json:"vpx10000etotal,omitempty"` + Vpx10000eavailable string `json:"vpx10000eavailable,omitempty"` + Vpx10000ptotal string `json:"vpx10000ptotal,omitempty"` + Vpx10000pavailable string `json:"vpx10000pavailable,omitempty"` + Vpx15000stotal string `json:"vpx15000stotal,omitempty"` + Vpx15000savailable string `json:"vpx15000savailable,omitempty"` + Vpx15000etotal string `json:"vpx15000etotal,omitempty"` + Vpx15000eavailable string `json:"vpx15000eavailable,omitempty"` + Vpx15000ptotal string `json:"vpx15000ptotal,omitempty"` + Vpx15000pavailable string `json:"vpx15000pavailable,omitempty"` + Vpx25000stotal string `json:"vpx25000stotal,omitempty"` + Vpx25000savailable string `json:"vpx25000savailable,omitempty"` + Vpx25000etotal string `json:"vpx25000etotal,omitempty"` + Vpx25000eavailable string `json:"vpx25000eavailable,omitempty"` + Vpx25000ptotal string `json:"vpx25000ptotal,omitempty"` + Vpx25000pavailable string `json:"vpx25000pavailable,omitempty"` + Vpx40000stotal string `json:"vpx40000stotal,omitempty"` + Vpx40000savailable string `json:"vpx40000savailable,omitempty"` + Vpx40000etotal string `json:"vpx40000etotal,omitempty"` + Vpx40000eavailable string `json:"vpx40000eavailable,omitempty"` + Vpx40000ptotal string `json:"vpx40000ptotal,omitempty"` + Vpx40000pavailable string `json:"vpx40000pavailable,omitempty"` + Vpx100000stotal string `json:"vpx100000stotal,omitempty"` + Vpx100000savailable string `json:"vpx100000savailable,omitempty"` + Vpx100000etotal string `json:"vpx100000etotal,omitempty"` + Vpx100000eavailable string `json:"vpx100000eavailable,omitempty"` + Vpx100000ptotal string `json:"vpx100000ptotal,omitempty"` + Vpx100000pavailable string `json:"vpx100000pavailable,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go new file mode 100644 index 000000000..e9d99f673 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go @@ -0,0 +1,85 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for limit Indetifier resource. +*/ +type Nslimitidentifier struct { + /** + * Name for a rate limit identifier. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Reserved words must not be used. + */ + Limitidentifier string `json:"limitidentifier,omitempty"` + /** + * Maximum number of requests that are allowed in the given timeslice when requests (mode is set as REQUEST_RATE) are tracked per timeslice. + When connections (mode is set as CONNECTION) are tracked, it is the total number of connections that would be let through. + */ + Threshold uint32 `json:"threshold,omitempty"` + /** + * Time interval, in milliseconds, specified in multiples of 10, during which requests are tracked to check if they cross the threshold. This argument is needed only when the mode is set to REQUEST_RATE. + */ + Timeslice uint32 `json:"timeslice,omitempty"` + /** + * Defines the type of traffic to be tracked. + * REQUEST_RATE - Tracks requests/timeslice. + * CONNECTION - Tracks active transactions. + Examples + 1. To permit 20 requests in 10 ms and 2 traps in 10 ms: + add limitidentifier limit_req -mode request_rate -limitType smooth -timeslice 1000 -Threshold 2000 -trapsInTimeSlice 200 + 2. To permit 50 requests in 10 ms: + set limitidentifier limit_req -mode request_rate -timeslice 1000 -Threshold 5000 -limitType smooth + 3. To permit 1 request in 40 ms: + set limitidentifier limit_req -mode request_rate -timeslice 2000 -Threshold 50 -limitType smooth + 4. To permit 1 request in 200 ms and 1 trap in 130 ms: + set limitidentifier limit_req -mode request_rate -timeslice 1000 -Threshold 5 -limitType smooth -trapsInTimeSlice 8 + 5. To permit 5000 requests in 1000 ms and 200 traps in 1000 ms: + set limitidentifier limit_req -mode request_rate -timeslice 1000 -Threshold 5000 -limitType BURSTY + */ + Mode string `json:"mode,omitempty"` + /** + * Smooth or bursty request type. + * SMOOTH - When you want the permitted number of requests in a given interval of time to be spread evenly across the timeslice + * BURSTY - When you want the permitted number of requests to exhaust the quota anytime within the timeslice. + This argument is needed only when the mode is set to REQUEST_RATE. + */ + Limittype string `json:"limittype,omitempty"` + /** + * Name of the rate limit selector. If this argument is NULL, rate limiting will be applied on all traffic received by the virtual server or the Citrix ADC (depending on whether the limit identifier is bound to a virtual server or globally) without any filtering. + */ + Selectorname string `json:"selectorname,omitempty"` + /** + * Maximum bandwidth permitted, in kbps. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Number of traps to be sent in the timeslice configured. A value of 0 indicates that traps are disabled. + */ + Trapsintimeslice uint32 `json:"trapsintimeslice,omitempty"` + + //------- Read only Parameter ---------; + + Ngname string `json:"ngname,omitempty"` + Hits string `json:"hits,omitempty"` + Drop string `json:"drop,omitempty"` + Rule string `json:"rule,omitempty"` + Time string `json:"time,omitempty"` + Total string `json:"total,omitempty"` + Trapscomputedintimeslice string `json:"trapscomputedintimeslice,omitempty"` + Computedtraptimeslice string `json:"computedtraptimeslice,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_binding.go new file mode 100644 index 000000000..c1fda0480 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nslimitidentifier_binding. +*/ +type Nslimitidentifierbinding struct { + /** + * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. + */ + Limitidentifier string `json:"limitidentifier,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_limitsessions_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_limitsessions_binding.go new file mode 100644 index 000000000..f570181f4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_limitsessions_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the limitsessions that can be bound to nslimitidentifier. +*/ +type Nslimitidentifierlimitsessionsbinding struct { + /** + * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. + */ + Limitidentifier string `json:"limitidentifier,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitselector.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitselector.go new file mode 100644 index 000000000..4bba60b1f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitselector.go @@ -0,0 +1,26 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for limit selector resource. +*/ +type Nslimitselector struct { + Selectorname string `json:"selectorname,omitempty"` + Rule []string `json:"rule,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitsessions.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitsessions.go new file mode 100644 index 000000000..536f315fe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitsessions.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for limit sessions resource. +*/ +type Nslimitsessions struct { + /** + * Name of the rate limit identifier for which to display the sessions. + */ + Limitidentifier string `json:"limitidentifier,omitempty"` + /** + * Show the individual hash values. + */ + Detail bool `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Timeout string `json:"timeout,omitempty"` + Hits string `json:"hits,omitempty"` + Drop string `json:"drop,omitempty"` + Number string `json:"number,omitempty"` + Name string `json:"name,omitempty"` + Unit string `json:"unit,omitempty"` + Flags string `json:"flags,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Maxbandwidth string `json:"maxbandwidth,omitempty"` + Selectoripv61 string `json:"selectoripv61,omitempty"` + Selectoripv62 string `json:"selectoripv62,omitempty"` + Flag string `json:"flag,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmigration.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmigration.go new file mode 100644 index 000000000..7326f9862 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmigration.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Migration operation resource. +*/ +type Nsmigration struct { + + //------- Read only Parameter ---------; + + Migrationstatus string `json:"migrationstatus,omitempty"` + Migrationstarttime string `json:"migrationstarttime,omitempty"` + Migrationendtime string `json:"migrationendtime,omitempty"` + Migrationrollbackstarttime string `json:"migrationrollbackstarttime,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmode.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmode.go new file mode 100644 index 000000000..9ded64c96 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsmode.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for ns mode resource. +*/ +type Nsmode struct { + /** + * Mode to be enabled. Multiple modes can be specified by providing a blank space between each mode. + */ + Mode []string `json:"mode,omitempty"` + + //------- Read only Parameter ---------; + + Fr string `json:"fr,omitempty"` + L2 string `json:"l2,omitempty"` + Usip string `json:"usip,omitempty"` + Cka string `json:"cka,omitempty"` + Tcpb string `json:"tcpb,omitempty"` + Mbf string `json:"mbf,omitempty"` + Edge string `json:"edge,omitempty"` + Usnip string `json:"usnip,omitempty"` + L3 string `json:"l3,omitempty"` + Pmtud string `json:"pmtud,omitempty"` + Mediaclassification string `json:"mediaclassification,omitempty"` + Sradv string `json:"sradv,omitempty"` + Dradv string `json:"dradv,omitempty"` + Iradv string `json:"iradv,omitempty"` + Sradv6 string `json:"sradv6,omitempty"` + Dradv6 string `json:"dradv6,omitempty"` + Bridgebpdus string `json:"bridgebpdus,omitempty"` + Ulfd string `json:"ulfd,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go new file mode 100644 index 000000000..cf8963be4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go @@ -0,0 +1,144 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Citrix ADC parameters resource. +*/ +type Nsparam struct { + /** + * HTTP ports on the web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. + */ + Httpport []int32 `json:"httpport,omitempty"` + /** + * Maximum number of connections that will be made from the appliance to the web server(s) attached to it. The value entered here is applied globally to all attached servers. + */ + Maxconn uint32 `json:"maxconn,omitempty"` + /** + * Maximum number of requests that the system can pass on a particular connection between the appliance and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. This value is overridden by the maximum number of requests configured on the individual service. + */ + Maxreq uint32 `json:"maxreq,omitempty"` + /** + * Enable or disable the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. + * If the CIP header is specified, it will be used as the client IP header. + * If the CIP header is not specified, the value that has been set will be used as the client IP header. + */ + Cip string `json:"cip,omitempty"` + /** + * Text that will be used as the client IP address header. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Version of the cookie inserted by the system. + */ + Cookieversion string `json:"cookieversion,omitempty"` + /** + * Enable or disable secure flag for persistence cookie. + */ + Securecookie string `json:"securecookie,omitempty"` + /** + * Minimum path MTU value that Citrix ADC will process in the ICMP fragmentation needed message. If the ICMP message contains a value less than this value, then this value is used instead. + */ + Pmtumin uint32 `json:"pmtumin,omitempty"` + /** + * Interval, in minutes, for flushing the PMTU entries. + */ + Pmtutimeout uint32 `json:"pmtutimeout,omitempty"` + /** + * Minimum and maximum port (port range) that FTP services are allowed to use. + */ + Ftpportrange string `json:"ftpportrange,omitempty"` + /** + * Port range for cache redirection services. + */ + Crportrange string `json:"crportrange,omitempty"` + /** + * Time zone for the Citrix ADC. Name of the time zone should be specified as argument. + */ + Timezone string `json:"timezone,omitempty"` + /** + * Percentage of shared quota to be granted at a time for maxClient. + */ + Grantquotamaxclient uint32 `json:"grantquotamaxclient,omitempty"` + /** + * Percentage of maxClient to be given to PEs. + */ + Exclusivequotamaxclient uint32 `json:"exclusivequotamaxclient,omitempty"` + /** + * Percentage of shared quota to be granted at a time for spillover. + */ + Grantquotaspillover uint32 `json:"grantquotaspillover,omitempty"` + /** + * Percentage of maximum limit to be given to PEs. + */ + Exclusivequotaspillover uint32 `json:"exclusivequotaspillover,omitempty"` + /** + * Enable/Disable use_proxy_port setting + */ + Useproxyport string `json:"useproxyport,omitempty"` + /** + * Enables/disables the internal user from logging in to the appliance. Before disabling internal user login, you must have key-based authentication set up on the appliance. The file name for the key pair must be "ns_comm_key". + */ + Internaluserlogin string `json:"internaluserlogin,omitempty"` + /** + * Allow the FTP server to come from a random source port for active FTP data connections + */ + Aftpallowrandomsourceport string `json:"aftpallowrandomsourceport,omitempty"` + /** + * The ICA ports on the Web server. This allows the system to perform connection off-load for any + client request that has a destination port matching one of these configured ports. + */ + Icaports []int32 `json:"icaports,omitempty"` + /** + * Enable or disable the insertion of the client TCP/IP header in TCP payload passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. + */ + Tcpcip string `json:"tcpcip,omitempty"` + /** + * VLAN on which the subscriber traffic arrives on the appliance. + */ + Servicepathingressvlan uint32 `json:"servicepathingressvlan,omitempty"` + /** + * The Secure ICA ports on the Web server. This allows the system to perform connection off-load for any + client request that has a destination port matching one of these configured ports. + */ + Secureicaports []int32 `json:"secureicaports,omitempty"` + /** + * This allow the configuration of management HTTP port. + */ + Mgmthttpport int32 `json:"mgmthttpport,omitempty"` + /** + * This allows the configuration of management HTTPS port. + */ + Mgmthttpsport int32 `json:"mgmthttpsport,omitempty"` + /** + * Disable/Enable v1 or v2 proxy protocol header for client info insertion + */ + Proxyprotocol string `json:"proxyprotocol,omitempty"` + /** + * Disable/Enable advanace analytics stats + */ + Advancedanalyticsstats string `json:"advancedanalyticsstats,omitempty"` + /** + * Set the IP Time to Live (TTL) and Hop Limit value for all outgoing packets from Citrix ADC. + */ + Ipttl uint32 `json:"ipttl,omitempty"` + + //------- Read only Parameter ---------; + + Autoscaleoption string `json:"autoscaleoption,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go new file mode 100644 index 000000000..1c62bba85 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for admin partition resource. +*/ +type Nspartition struct { + /** + * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits. + */ + Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + /** + * Minimum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits + */ + Minbandwidth uint32 `json:"minbandwidth,omitempty"` + /** + * Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections. + */ + Maxconn uint32 `json:"maxconn,omitempty"` + /** + * Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits. + */ + Maxmemlimit uint64 `json:"maxmemlimit,omitempty"` + /** + * Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated. + */ + Partitionmac string `json:"partitionmac,omitempty"` + /** + * Switches to new admin partition without prompt for saving configuration. Configuration will not be saved + */ + Force bool `json:"force,omitempty"` + /** + * Switches to new admin partition without prompt for saving configuration. Configuration will be saved + */ + Save bool `json:"save,omitempty"` + + //------- Read only Parameter ---------; + + Partitionid string `json:"partitionid,omitempty"` + Partitiontype string `json:"partitiontype,omitempty"` + Pmacinternal string `json:"pmacinternal,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_binding.go new file mode 100644 index 000000000..9c304e6cf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nspartition_binding. +*/ +type Nspartitionbinding struct { + /** + * Name of partition for which to display parameters.
Minimum value = + */ + Partitionname string `json:"partitionname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go new file mode 100644 index 000000000..ae1b7fb4d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the bridgegroup that can be bound to nspartition. +*/ +type Nspartitionbridgegroupbinding struct { + /** + * Identifier of the bridge group that is assigned to this partition. + */ + Bridgegroup uint32 `json:"bridgegroup,omitempty"` + /** + * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Partitionname string `json:"partitionname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go new file mode 100644 index 000000000..a6071214f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the vlan that can be bound to nspartition. +*/ +type Nspartitionvlanbinding struct { + /** + * Identifier of the vlan that is assigned to this partition. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Partitionname string `json:"partitionname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go new file mode 100644 index 000000000..88e4c15cd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the vxlan that can be bound to nspartition. +*/ +type Nspartitionvxlanbinding struct { + /** + * Identifier of the vxlan that is assigned to this partition. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. + */ + Partitionname string `json:"partitionname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartitionmac.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartitionmac.go new file mode 100644 index 000000000..02f64d185 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartitionmac.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for partition MACs resource. +*/ +type Nspartitionmac struct { + + //------- Read only Parameter ---------; + + Partitionmac string `json:"partitionmac,omitempty"` + Partitionname string `json:"partitionname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go new file mode 100644 index 000000000..04b7b2410 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go @@ -0,0 +1,178 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Policy Based Routing(PBR) entry resource. +*/ +type Nspbr struct { + /** + * Name for the PBR. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. Cannot be changed after the PBR is created. + */ + Name string `json:"name,omitempty"` + /** + * Action to perform on the outgoing IPv4 packets that match the PBR. + Available settings function as follows: + * ALLOW - The Citrix ADC sends the packet to the designated next-hop router. + * DENY - The Citrix ADC applies the routing table for normal destination-based routing. + */ + Action string `json:"action,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Srcip bool `json:"srcip,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcipop string `json:"srcipop,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Srcipval string `json:"srcipval,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Srcport bool `json:"srcport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcportop string `json:"srcportop,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Srcportval string `json:"srcportval,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Destip bool `json:"destip,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destipop string `json:"destipop,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. + */ + Destipval string `json:"destipval,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destport bool `json:"destport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destportop string `json:"destportop,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destportval string `json:"destportval,omitempty"` + /** + * IP address of the next hop router or the name of the link load balancing virtual server to which to send matching packets if action is set to ALLOW. + If you specify a link load balancing (LLB) virtual server, which can provide a backup if a next hop link fails, first make sure that the next hops bound to the LLB virtual server are actually next hops that are directly connected to the Citrix ADC. Otherwise, the Citrix ADC throws an error when you attempt to create the PBR. The next hop can be null to represent null routes + */ + Nexthop bool `json:"nexthop,omitempty"` + /** + * The Next Hop IP address or gateway name. + */ + Nexthopval string `json:"nexthopval,omitempty"` + /** + * The Tunnel name. + */ + Iptunnel bool `json:"iptunnel,omitempty"` + /** + * The iptunnel name where packets need to be forwarded upon. + */ + Iptunnelname string `json:"iptunnelname,omitempty"` + /** + * The vlan to vxlan mapping to be applied for incoming packets over this pbr tunnel + */ + Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` + /** + * MAC address to match against the source MAC address of an outgoing IPv4 packet. + */ + Srcmac string `json:"srcmac,omitempty"` + /** + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ + Srcmacmask string `json:"srcmacmask,omitempty"` + /** + * Protocol, identified by protocol name, to match against the protocol of an outgoing IPv4 packet. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv4 packet. + */ + Protocolnumber uint32 `json:"protocolnumber,omitempty"` + /** + * ID of the VLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * ID of the VXLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VXLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VXLANs. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * ID of an interface. The Citrix ADC compares the PBR only to the outgoing packets on the specified interface. If you do not specify any value, the appliance compares the PBR to the outgoing packets on all interfaces. + */ + Interface string `json:"Interface,omitempty"` + /** + * Priority of the PBR, which determines the order in which it is evaluated relative to the other PBRs. If you do not specify priorities while creating PBRs, the PBRs are evaluated in the order in which they are created. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Monitor the route specified byte Next Hop parameter. This parameter is not applicable if you specify a link load balancing (LLB) virtual server name with the Next Hop parameter. + */ + Msr string `json:"msr,omitempty"` + /** + * The name of the monitor.(Can be only of type ping or ARP ) + */ + Monitor string `json:"monitor,omitempty"` + /** + * Enable or disable the PBR. After you apply the PBRs, the Citrix ADC compares outgoing packets to the enabled PBRs. + */ + State string `json:"state,omitempty"` + /** + * The owner node group in a Cluster for this pbr rule. If ownernode is not specified then the pbr rule is treated as Striped pbr rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * To get a detailed view. + */ + Detail bool `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Kernelstate string `json:"kernelstate,omitempty"` + Curstate string `json:"curstate,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` + Totalfailedprobes string `json:"totalfailedprobes,omitempty"` + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Data string `json:"data,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go new file mode 100644 index 000000000..852d11fc8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go @@ -0,0 +1,174 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for PBR6 entry resource. +*/ +type Nspbr6 struct { + /** + * Name for the PBR6. Must begin with an ASCII alphabetic or underscore \(_\) character, and must contain only ASCII alphanumeric, underscore, hash \(\#\), period \(.\), space, colon \(:\), at \(@\), equals \(=\), and hyphen \(-\) characters. Cannot be changed after the PBR6 is created. + */ + Name string `json:"name,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Action to perform on the outgoing IPv6 packets that match the PBR6. + Available settings function as follows: + * ALLOW - The Citrix ADC sends the packet to the designated next-hop router. + * DENY - The Citrix ADC applies the routing table for normal destination-based routing. + */ + Action string `json:"action,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Srcipv6 bool `json:"srcipv6,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcipop string `json:"srcipop,omitempty"` + /** + * IP address or range of IP addresses to match against the source IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Srcipv6val string `json:"srcipv6val,omitempty"` + /** + * Port number or range of port numbers to match against the source port number of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + */ + Srcport bool `json:"srcport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Srcportop string `json:"srcportop,omitempty"` + /** + * Source port (range). + */ + Srcportval string `json:"srcportval,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Destipv6 bool `json:"destipv6,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destipop string `json:"destipop,omitempty"` + /** + * IP address or range of IP addresses to match against the destination IP address of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. + */ + Destipv6val string `json:"destipv6val,omitempty"` + /** + * Port number or range of port numbers to match against the destination port number of an outgoing IPv6 packet. In the command line interface, separate the range with a hyphen. For example: 40-90. + Note: The destination port can be specified only for TCP and UDP protocols. + */ + Destport bool `json:"destport,omitempty"` + /** + * Either the equals (=) or does not equal (!=) logical operator. + */ + Destportop string `json:"destportop,omitempty"` + /** + * Destination port (range). + */ + Destportval string `json:"destportval,omitempty"` + /** + * MAC address to match against the source MAC address of an outgoing IPv6 packet. + */ + Srcmac string `json:"srcmac,omitempty"` + /** + * Used to define range of Source MAC address. It takes string of 0 and 1, 0s are for exact match and 1s for wildcard. For matching first 3 bytes of MAC address, srcMacMask value "000000111111". + */ + Srcmacmask string `json:"srcmacmask,omitempty"` + /** + * Protocol, identified by protocol name, to match against the protocol of an outgoing IPv6 packet. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv6 packet. + */ + Protocolnumber uint32 `json:"protocolnumber,omitempty"` + /** + * ID of the VLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VLANs. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * ID of the VXLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VXLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VXLANs. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * ID of an interface. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified interface. If you do not specify a value, the appliance compares the PBR6 to the outgoing packets on all interfaces. + */ + Interface string `json:"Interface,omitempty"` + /** + * Priority of the PBR6, which determines the order in which it is evaluated relative to the other PBR6s. If you do not specify priorities while creating PBR6s, the PBR6s are evaluated in the order in which they are created. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enable or disable the PBR6. After you apply the PBR6s, the Citrix ADC compares outgoing packets to the enabled PBR6s. + */ + State string `json:"state,omitempty"` + /** + * Monitor the route specified by the Next Hop parameter. + */ + Msr string `json:"msr,omitempty"` + /** + * The name of the monitor.(Can be only of type ping or ARP ) + */ + Monitor string `json:"monitor,omitempty"` + /** + * IP address of the next hop router to which to send matching packets if action is set to ALLOW. This next hop should be directly reachable from the appliance. + */ + Nexthop bool `json:"nexthop,omitempty"` + /** + * The Next Hop IPv6 address. + */ + Nexthopval string `json:"nexthopval,omitempty"` + /** + * The iptunnel name where packets need to be forwarded upon. + */ + Iptunnel string `json:"iptunnel,omitempty"` + /** + * The vlan to vxlan mapping to be applied for incoming packets over this pbr tunnel. + */ + Vxlanvlanmap string `json:"vxlanvlanmap,omitempty"` + /** + * VLAN number to be used for link local nexthop . + */ + Nexthopvlan uint32 `json:"nexthopvlan,omitempty"` + /** + * The owner node group in a Cluster for this pbr rule. If owner node group is not specified then the pbr rule is treated as Striped pbr rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * To get a detailed view. + */ + Detail bool `json:"detail,omitempty"` + + //------- Read only Parameter ---------; + + Kernelstate string `json:"kernelstate,omitempty"` + Hits string `json:"hits,omitempty"` + Curstate string `json:"curstate,omitempty"` + Totalprobes string `json:"totalprobes,omitempty"` + Totalfailedprobes string `json:"totalfailedprobes,omitempty"` + Failedprobes string `json:"failedprobes,omitempty"` + Monstatcode string `json:"monstatcode,omitempty"` + Monstatparam1 string `json:"monstatparam1,omitempty"` + Monstatparam2 string `json:"monstatparam2,omitempty"` + Monstatparam3 string `json:"monstatparam3,omitempty"` + Data string `json:"data,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbrs.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbrs.go new file mode 100644 index 000000000..c8362e8a6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbrs.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Policy based routing resource. +*/ +type Nspbrs struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go new file mode 100644 index 000000000..bf6c94782 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for rate control resource. +*/ +type Nsratecontrol struct { + /** + * Number of SYNs permitted per 10 milliseconds. + */ + Tcpthreshold uint32 `json:"tcpthreshold,omitempty"` + /** + * Number of UDP packets permitted per 10 milliseconds. + */ + Udpthreshold uint32 `json:"udpthreshold,omitempty"` + /** + * Number of ICMP packets permitted per 10 milliseconds. + */ + Icmpthreshold uint32 `json:"icmpthreshold,omitempty"` + /** + * The number of TCP RST packets permitted per 10 milli second. zero means rate control is disabled and 0xffffffff means every thing is rate controlled + */ + Tcprstthreshold uint32 `json:"tcprstthreshold,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrollbackcmd.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrollbackcmd.go new file mode 100644 index 000000000..c0aea6693 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrollbackcmd.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Generate rollback commands resource. +*/ +type Nsrollbackcmd struct { + /** + * File that contains the commands for which the rollback commands must be generated. Specify the full path of the file name. + */ + Filename string `json:"filename,omitempty"` + /** + * Format in which the rollback commands must be generated. + */ + Outtype string `json:"outtype,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrpcnode.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrpcnode.go new file mode 100644 index 000000000..bfd1058b7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrpcnode.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for rpc node resource. +*/ +type Nsrpcnode struct { + /** + * IP address of the node. This has to be in the same subnet as the NSIP address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Password to be used in authentication with the peer system node. + */ + Password string `json:"password,omitempty"` + /** + * Source IP address to be used to communicate with the peer system node. The default value is 0, which means that the appliance uses the NSIP address as the source IP address. + */ + Srcip string `json:"srcip,omitempty"` + /** + * State of the channel when talking to the node. + */ + Secure string `json:"secure,omitempty"` + /** + * validate the server certificate for secure SSL connections + */ + Validatecert string `json:"validatecert,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrunningconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrunningconfig.go new file mode 100644 index 000000000..5ce7fe80f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsrunningconfig.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for running configuration resource. +*/ +type Nsrunningconfig struct { + /** + * Include default values of parameters that have not been explicitly configured. If this argument is disabled, such parameters are not included. + */ + Withdefaults bool `json:"withdefaults,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssavedconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssavedconfig.go new file mode 100644 index 000000000..1fd0fda21 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssavedconfig.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for last saved configuration resource. +*/ +type Nssavedconfig struct { + + //------- Read only Parameter ---------; + + Textblob string `json:"textblob,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go new file mode 100644 index 000000000..8bc0ba744 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for service Function resource. +*/ +type Nsservicefunction struct { + /** + * Name of the service function to be created. Leading character must be a number or letter. Other characters allowed, after the first character, are @ _ - . (period) : (colon) # and space ( ). + */ + Servicefunctionname string `json:"servicefunctionname,omitempty"` + /** + * VLAN ID on which the traffic from service function reaches Citrix ADC. + */ + Ingressvlan uint32 `json:"ingressvlan,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath.go new file mode 100644 index 000000000..fd97f6506 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath.go @@ -0,0 +1,30 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for service Chain resource. +*/ +type Nsservicepath struct { + /** + * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must + contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) + characters. + */ + Servicepathname string `json:"servicepathname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_binding.go new file mode 100644 index 000000000..0b665772e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_binding.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nsservicepath_binding. +*/ +type Nsservicepathbinding struct { + /** + * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must + contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) + characters.
Minimum value = + */ + Servicepathname string `json:"servicepathname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_servicefunction_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_servicefunction_binding.go new file mode 100644 index 000000000..0c634d49b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_servicefunction_binding.go @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the servicefunction that can be bound to nsservicepath. +*/ +type Nsservicepathservicefunctionbinding struct { + /** + * List of service functions constituting the chain. + */ + Servicefunction string `json:"servicefunction,omitempty"` + /** + * The serviceindex of each servicefunction in path. + */ + Index uint32 `json:"index,omitempty"` + /** + * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must + contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) + characters. + */ + Servicepathname string `json:"servicepathname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go new file mode 100644 index 000000000..66f49ebd3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for simple ACL resource. +*/ +type Nssimpleacl struct { + /** + * Name for the simple ACL rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the simple ACL rule is created. + */ + Aclname string `json:"aclname,omitempty"` + /** + * Drop incoming IPv4 packets that match the simple ACL rule. + */ + Aclaction string `json:"aclaction,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * IP address to match against the source IP address of an incoming IPv4 packet. + */ + Srcip string `json:"srcip,omitempty"` + /** + * Port number to match against the destination port number of an incoming IPv4 packet. + DestPort is mandatory while setting Protocol. Omitting the port number and protocol creates an all-ports and all protocols simple ACL rule, which matches any port and any protocol. In that case, you cannot create another simple ACL rule specifying a specific port and the same source IPv4 address. + */ + Destport int32 `json:"destport,omitempty"` + /** + * Protocol to match against the protocol of an incoming IPv4 packet. You must set this parameter if you have set the Destination Port parameter. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Number of seconds, in multiples of four, after which the simple ACL rule expires. If you do not want the simple ACL rule to expire, do not specify a TTL value. + */ + Ttl uint32 `json:"ttl,omitempty"` + Estsessions bool `json:"estsessions,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go new file mode 100644 index 000000000..246bb697c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for simple ACL6 resource. +*/ +type Nssimpleacl6 struct { + /** + * Name for the simple ACL6 rule. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the simple ACL6 rule is created. + */ + Aclname string `json:"aclname,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td uint32 `json:"td,omitempty"` + /** + * Drop incoming IPv6 packets that match the simple ACL6 rule. + */ + Aclaction string `json:"aclaction,omitempty"` + /** + * IP address to match against the source IP address of an incoming IPv6 packet. + */ + Srcipv6 string `json:"srcipv6,omitempty"` + /** + * Port number to match against the destination port number of an incoming IPv6 packet. + DestPort is mandatory while setting Protocol. Omitting the port number and protocol creates an all-ports and all protocol simple ACL6 rule, which matches any port and any protocol. In that case, you cannot create another simple ACL6 rule specifying a specific port and the same source IPv6 address. + */ + Destport int32 `json:"destport,omitempty"` + /** + * Protocol to match against the protocol of an incoming IPv6 packet. You must set this parameter if you set the Destination Port parameter. + */ + Protocol string `json:"protocol,omitempty"` + /** + * Number of seconds, in multiples of four, after which the simple ACL6 rule expires. If you do not want the simple ACL6 rule to expire, do not specify a TTL value. + */ + Ttl uint32 `json:"ttl,omitempty"` + Estsessions bool `json:"estsessions,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssourceroutecachetable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssourceroutecachetable.go new file mode 100644 index 000000000..6669771a5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssourceroutecachetable.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Source IP Mac Cache Table. resource. +*/ +type Nssourceroutecachetable struct { + + //------- Read only Parameter ---------; + + Sourceip string `json:"sourceip,omitempty"` + Sourcemac string `json:"sourcemac,omitempty"` + Vlan string `json:"vlan,omitempty"` + Interface string `json:"Interface,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go new file mode 100644 index 000000000..1a2c66c1c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Surge Protection parameter resource. +*/ +type Nsspparams struct { + /** + * Maximum number of server connections that can be opened before surge protection is activated. + */ + Basethreshold int32 `json:"basethreshold,omitempty"` + /** + * Rate at which the system opens connections to the server. + */ + Throttle string `json:"throttle,omitempty"` + + //------- Read only Parameter ---------; + + Table0 string `json:"table0,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsstats.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsstats.go new file mode 100644 index 000000000..a09a5f4da --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsstats.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for stats resource. +*/ +type Nsstats struct { + /** + * The level of stats to be cleared. 'global' option will clear global counters only, 'all' option will clear all device counters also along with global counters. For both the cases only 'ever incrementing counters' i.e. total counters will be cleared. + */ + Cleanuplevel string `json:"cleanuplevel,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go new file mode 100644 index 000000000..a4838a18e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for surge queue resource. +*/ +type Nssurgeq struct { + /** + * Name of a virtual server, service or service group for which the SurgeQ must be flushed. + */ + Name string `json:"name,omitempty"` + /** + * Name of a service group member. This argument is needed when you want to flush the SurgeQ of a service group. + */ + Servername string `json:"servername,omitempty"` + /** + * port on which server is bound to the entity(Servicegroup). + */ + Port int32 `json:"port,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go new file mode 100644 index 000000000..550bc6300 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for tcp buffer parameter resource. +*/ +type Nstcpbufparam struct { + /** + * TCP buffering size per connection, in kilobytes. + */ + Size uint64 `json:"size,omitempty"` + /** + * Maximum memory, in megabytes, that can be used for buffering. + */ + Memlimit uint64 `json:"memlimit,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go new file mode 100644 index 000000000..48872dead --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go @@ -0,0 +1,222 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for tcp parameters resource. +*/ +type Nstcpparam struct { + /** + * Enable or disable window scaling. + */ + Ws string `json:"ws,omitempty"` + /** + * Factor used to calculate the new window size. + This argument is needed only when the window scaling is enabled. + */ + Wsval uint32 `json:"wsval,omitempty"` + /** + * Enable or disable Selective ACKnowledgement (SACK). + */ + Sack string `json:"sack,omitempty"` + /** + * Enable or disable maximum segment size (MSS) learning for virtual servers. + */ + Learnvsvrmss string `json:"learnvsvrmss,omitempty"` + /** + * Maximum number of TCP segments allowed in a burst. + */ + Maxburst uint32 `json:"maxburst,omitempty"` + /** + * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. + */ + Initialcwnd uint32 `json:"initialcwnd,omitempty"` + /** + * TCP Receive buffer size + */ + Recvbuffsize uint32 `json:"recvbuffsize,omitempty"` + /** + * Timeout for TCP delayed ACK, in milliseconds. + */ + Delayedack uint32 `json:"delayedack,omitempty"` + /** + * Flag to switch on RST on down services. + */ + Downstaterst string `json:"downstaterst,omitempty"` + /** + * Enable or disable the Nagle algorithm on TCP connections. + */ + Nagle string `json:"nagle,omitempty"` + /** + * Limit the number of persist (zero window) probes. + */ + Limitedpersist string `json:"limitedpersist,omitempty"` + /** + * Maximum size of out-of-order packets queue. A value of 0 means no limit. + */ + Oooqsize uint32 `json:"oooqsize,omitempty"` + /** + * Send immediate positive acknowledgement (ACK) on receipt of TCP packets with PUSH flag. + */ + Ackonpush string `json:"ackonpush,omitempty"` + /** + * Maximum number of TCP packets allowed per maximum segment size (MSS). + */ + Maxpktpermss uint32 `json:"maxpktpermss,omitempty"` + /** + * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. + */ + Pktperretx int32 `json:"pktperretx,omitempty"` + /** + * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). + */ + Minrto int32 `json:"minrto,omitempty"` + /** + * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. + */ + Slowstartincr int32 `json:"slowstartincr,omitempty"` + /** + * Maximum number of probes that Citrix ADC can send out in 10 milliseconds, to dynamically learn a service. Citrix ADC probes for the existence of the origin in case of wildcard virtual server or services. + */ + Maxdynserverprobes uint32 `json:"maxdynserverprobes,omitempty"` + /** + * Maximum threshold. After crossing this threshold number of outstanding probes for origin, the Citrix ADC reduces the number of connection retries for probe connections. + */ + Synholdfastgiveup uint32 `json:"synholdfastgiveup,omitempty"` + /** + * Limit the number of client connections (SYN) waiting for status of single probe. Any new SYN packets will be dropped. + */ + Maxsynholdperprobe uint32 `json:"maxsynholdperprobe,omitempty"` + /** + * Limit the number of client connections (SYN) waiting for status of probe system wide. Any new SYN packets will be dropped. + */ + Maxsynhold uint32 `json:"maxsynhold,omitempty"` + /** + * Duration, in seconds, to sample the Maximum Segment Size (MSS) of the services. The Citrix ADC determines the best MSS to set for the virtual server based on this sampling. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. + */ + Msslearninterval uint32 `json:"msslearninterval,omitempty"` + /** + * Frequency, in seconds, at which the virtual servers learn the Maximum segment size (MSS) from the services. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. + */ + Msslearndelay uint32 `json:"msslearndelay,omitempty"` + /** + * Maximum number of connections to hold in the TCP TIME_WAIT state on a packet engine. New connections entering TIME_WAIT state are proactively cleaned up. + */ + Maxtimewaitconn uint32 `json:"maxtimewaitconn,omitempty"` + /** + * Update last activity for KA probes + */ + Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` + /** + * When 'syncookie' is disabled in the TCP profile that is bound to the virtual server or service, and the number of TCP SYN+ACK retransmission by Citrix ADC for that virtual server or service crosses this threshold, the Citrix ADC responds by using the TCP SYN-Cookie mechanism. + */ + Maxsynackretx uint32 `json:"maxsynackretx,omitempty"` + /** + * Detect TCP SYN packet flood and send an SNMP trap. + */ + Synattackdetection string `json:"synattackdetection,omitempty"` + /** + * Flush an existing connection if no memory can be obtained for new connection. + HALF_CLOSED_AND_IDLE: Flush a connection that is closed by us but not by peer, or failing that, a connection that is past configured idle time. New connection fails if no such connection can be found. + FIFO: If no half-closed or idle connection can be found, flush the oldest non-management connection, even if it is active. New connection fails if the oldest few connections are management connections. + Note: If you enable this setting, you should also consider lowering the zombie timeout and half-close timeout, while setting the Citrix ADC timeout. + See Also: connFlushThres argument below. + */ + Connflushifnomem string `json:"connflushifnomem,omitempty"` + /** + * Flush an existing connection (as configured through -connFlushIfNoMem FIFO) if the system has more than specified number of connections, and a new connection is to be established. Note: This value may be rounded down to be a whole multiple of the number of packet engines running. + */ + Connflushthres uint32 `json:"connflushthres,omitempty"` + /** + * Accept DATA_FIN/FAST_CLOSE on passive subflow + */ + Mptcpconcloseonpassivesf string `json:"mptcpconcloseonpassivesf,omitempty"` + /** + * Use MPTCP DSS checksum + */ + Mptcpchecksum string `json:"mptcpchecksum,omitempty"` + /** + * The timeout value in seconds for idle mptcp subflows. If this timeout is not set, idle subflows are cleared after cltTimeout of vserver + */ + Mptcpsftimeout uint64 `json:"mptcpsftimeout,omitempty"` + /** + * The minimum idle time value in seconds for idle mptcp subflows after which the sublow is replaced by new incoming subflow if maximum subflow limit is reached. The priority for replacement is given to those subflow without any transaction + */ + Mptcpsfreplacetimeout uint64 `json:"mptcpsfreplacetimeout,omitempty"` + /** + * Maximum number of subflow connections supported in established state per mptcp connection. + */ + Mptcpmaxsf uint32 `json:"mptcpmaxsf,omitempty"` + /** + * Maximum number of subflow connections supported in pending join state per mptcp connection. + */ + Mptcpmaxpendingsf uint32 `json:"mptcpmaxpendingsf,omitempty"` + /** + * Maximum system level pending join connections allowed. + */ + Mptcppendingjointhreshold uint32 `json:"mptcppendingjointhreshold,omitempty"` + /** + * Number of RTO's at subflow level, after which MPCTP should start using other subflow. + */ + Mptcprtostoswitchsf uint32 `json:"mptcprtostoswitchsf,omitempty"` + /** + * When enabled, if NS receives a DSS on a backup subflow, NS will start using that subflow to send data. And if disabled, NS will continue to transmit on current chosen subflow. In case there is some error on a subflow (like RTO's/RST etc.) then NS can choose a backup subflow irrespective of this tunable. + */ + Mptcpusebackupondss string `json:"mptcpusebackupondss,omitempty"` + /** + * Number of RTO's after which a connection should be freed. + */ + Tcpmaxretries uint32 `json:"tcpmaxretries,omitempty"` + /** + * Allow subflows to close immediately on FIN before the DATA_FIN exchange is completed at mptcp level. + */ + Mptcpimmediatesfcloseonfin string `json:"mptcpimmediatesfcloseonfin,omitempty"` + /** + * Allow to send DATA FIN or FAST CLOSE on mptcp connection while sending FIN or RST on the last subflow. + */ + Mptcpclosemptcpsessiononlastsfclose string `json:"mptcpclosemptcpsessiononlastsfclose,omitempty"` + /** + * Allow MPTCP subflows to send TCP RST Reason (MP_TCPRST) Option while sending TCP RST. + */ + Mptcpsendsfresetoption string `json:"mptcpsendsfresetoption,omitempty"` + /** + * Allow to select option ACK or RESET to force the closure of an MPTCP connection abruptly. + */ + Mptcpfastcloseoption string `json:"mptcpfastcloseoption,omitempty"` + /** + * Timeout in seconds after which a new TFO Key is computed for generating TFO Cookie. If zero, the same key is used always. If timeout is less than 120seconds, NS defaults to 120seconds timeout. + */ + Tcpfastopencookietimeout uint64 `json:"tcpfastopencookietimeout,omitempty"` + /** + * Timeout for the server to function in syncookie mode after the synattack. This is valid if TCP syncookie is disabled on the profile and server acts in non syncookie mode by default. + */ + Autosyncookietimeout uint32 `json:"autosyncookietimeout,omitempty"` + /** + * The amount of time in seconds, after which a TCP connnection in the TCP TIME-WAIT state is flushed. + */ + Tcpfintimeout uint64 `json:"tcpfintimeout,omitempty"` + /** + * If enabled, non-negotiated TCP options are removed from the received packet while proxying it. By default, non-negotiated TCP options would be replaced by NOPs in the proxied packets. This option is not applicable for Citrix ADC generated packets. + */ + Compacttcpoptionnoop string `json:"compacttcpoptionnoop,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go new file mode 100644 index 000000000..1cb2270ea --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go @@ -0,0 +1,257 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for TCP profile resource. +*/ +type Nstcpprofile struct { + /** + * Name for a TCP profile. Must begin with a letter, number, or the underscore \(_\) character. Other characters allowed, after the first character, are the hyphen \(-\), period \(.\), hash \(\#\), space \( \), at \(@\), colon \(:\), and equal \(=\) characters. The name of a TCP profile cannot be changed after it is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks \(for example, "my tcp profile" or 'my tcp profile'\). + */ + Name string `json:"name,omitempty"` + /** + * Enable or disable window scaling. + */ + Ws string `json:"ws,omitempty"` + /** + * Enable or disable Selective ACKnowledgement (SACK). + */ + Sack string `json:"sack,omitempty"` + /** + * Factor used to calculate the new window size. + This argument is needed only when window scaling is enabled. + */ + Wsval uint32 `json:"wsval,omitempty"` + /** + * Enable or disable the Nagle algorithm on TCP connections. + */ + Nagle string `json:"nagle,omitempty"` + /** + * Send immediate positive acknowledgement (ACK) on receipt of TCP packets with PUSH flag. + */ + Ackonpush string `json:"ackonpush,omitempty"` + /** + * Maximum number of octets to allow in a TCP data segment. + */ + Mss uint32 `json:"mss,omitempty"` + /** + * Maximum number of TCP segments allowed in a burst. + */ + Maxburst uint32 `json:"maxburst,omitempty"` + /** + * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. + */ + Initialcwnd uint32 `json:"initialcwnd,omitempty"` + /** + * Timeout for TCP delayed ACK, in milliseconds. + */ + Delayedack uint32 `json:"delayedack,omitempty"` + /** + * Maximum size of out-of-order packets queue. A value of 0 means no limit. + */ + Oooqsize uint32 `json:"oooqsize,omitempty"` + /** + * Maximum number of TCP packets allowed per maximum segment size (MSS). + */ + Maxpktpermss uint32 `json:"maxpktpermss,omitempty"` + /** + * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. + */ + Pktperretx uint32 `json:"pktperretx,omitempty"` + /** + * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). + */ + Minrto uint32 `json:"minrto,omitempty"` + /** + * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. + */ + Slowstartincr uint32 `json:"slowstartincr,omitempty"` + /** + * TCP buffering size, in bytes. + */ + Buffersize uint32 `json:"buffersize,omitempty"` + /** + * Enable or disable the SYNCOOKIE mechanism for TCP handshake with clients. Disabling SYNCOOKIE prevents SYN attack protection on the Citrix ADC. + */ + Syncookie string `json:"syncookie,omitempty"` + /** + * Update last activity for the connection after receiving keep-alive (KA) probes. + */ + Kaprobeupdatelastactivity string `json:"kaprobeupdatelastactivity,omitempty"` + /** + * Set TCP congestion control algorithm. + */ + Flavor string `json:"flavor,omitempty"` + /** + * Enable or disable dynamic receive buffering. When enabled, allows the receive buffer to be adjusted dynamically based on memory and network conditions. + Note: The buffer size argument must be set for dynamic adjustments to take place. + */ + Dynamicreceivebuffering string `json:"dynamicreceivebuffering,omitempty"` + /** + * Send periodic TCP keep-alive (KA) probes to check if peer is still up. + */ + Ka string `json:"ka,omitempty"` + /** + * Duration, in seconds, for the connection to be idle, before sending a keep-alive (KA) probe. + */ + Kaconnidletime uint32 `json:"kaconnidletime,omitempty"` + /** + * Number of keep-alive (KA) probes to be sent when not acknowledged, before assuming the peer to be down. + */ + Kamaxprobes uint32 `json:"kamaxprobes,omitempty"` + /** + * Time interval, in seconds, before the next keep-alive (KA) probe, if the peer does not respond. + */ + Kaprobeinterval uint32 `json:"kaprobeinterval,omitempty"` + /** + * TCP Send Buffer Size + */ + Sendbuffsize uint32 `json:"sendbuffsize,omitempty"` + /** + * Enable or disable Multipath TCP. + */ + Mptcp string `json:"mptcp,omitempty"` + /** + * Establishing Client Client connection on First data/ Final-ACK / Automatic + */ + Establishclientconn string `json:"establishclientconn,omitempty"` + /** + * Offload TCP segmentation to the NIC. If set to AUTOMATIC, TCP segmentation will be offloaded to the NIC, if the NIC supports it. + */ + Tcpsegoffload string `json:"tcpsegoffload,omitempty"` + /** + * Enable or disable RST window attenuation to protect against spoofing. When enabled, will reply with corrective ACK when a sequence number is invalid. + */ + Rstwindowattenuate string `json:"rstwindowattenuate,omitempty"` + /** + * Enable or disable acceptance of RST that is out of window yet echoes highest ACK sequence number. Useful only in proxy mode. + */ + Rstmaxack string `json:"rstmaxack,omitempty"` + /** + * Enable or disable drop of invalid SYN packets to protect against spoofing. When disabled, established connections will be reset when a SYN packet is received. + */ + Spoofsyndrop string `json:"spoofsyndrop,omitempty"` + /** + * Enable or disable TCP Explicit Congestion Notification. + */ + Ecn string `json:"ecn,omitempty"` + /** + * Enable or disable silently dropping the data on Pre-Established subflow. When enabled, DSS data packets are dropped silently instead of dropping the connection when data is received on pre established subflow. + */ + Mptcpdropdataonpreestsf string `json:"mptcpdropdataonpreestsf,omitempty"` + /** + * Enable or disable Multipath TCP fastopen. When enabled, DSS data packets are accepted before receiving the third ack of SYN handshake. + */ + Mptcpfastopen string `json:"mptcpfastopen,omitempty"` + /** + * MPTCP session timeout in seconds. If this value is not set, idle MPTCP sessions are flushed after vserver's client idle timeout. + */ + Mptcpsessiontimeout uint32 `json:"mptcpsessiontimeout,omitempty"` + /** + * Enable or Disable TCP Timestamp option (RFC 1323) + */ + Timestamp string `json:"timestamp,omitempty"` + /** + * Enable or disable DSACK. + */ + Dsack string `json:"dsack,omitempty"` + /** + * Enable or disable ACK Aggregation. + */ + Ackaggregation string `json:"ackaggregation,omitempty"` + /** + * Enable or disable FRTO (Forward RTO-Recovery). + */ + Frto string `json:"frto,omitempty"` + /** + * TCP Maximum Congestion Window. + */ + Maxcwnd uint32 `json:"maxcwnd,omitempty"` + /** + * Enable or disable FACK (Forward ACK). + */ + Fack string `json:"fack,omitempty"` + /** + * TCP Optimization modes TRANSPARENT / ENDPOINT. + */ + Tcpmode string `json:"tcpmode,omitempty"` + /** + * Enable or disable TCP Fastopen. When enabled, NS can receive or send Data in SYN or SYN-ACK packets. + */ + Tcpfastopen string `json:"tcpfastopen,omitempty"` + /** + * Enable or disable CUBIC Hystart + */ + Hystart string `json:"hystart,omitempty"` + /** + * TCP dupack threshold. + */ + Dupackthresh uint32 `json:"dupackthresh,omitempty"` + /** + * TCP Burst Rate Control DISABLED/FIXED/DYNAMIC. FIXED requires a TCP rate to be set. + */ + Burstratecontrol string `json:"burstratecontrol,omitempty"` + /** + * TCP connection payload send rate in Kb/s + */ + Tcprate uint32 `json:"tcprate,omitempty"` + /** + * Maximum connection queue size in bytes, when BurstRateControl is used + */ + Rateqmax uint32 `json:"rateqmax,omitempty"` + /** + * Silently drop tcp half closed connections on idle timeout + */ + Drophalfclosedconnontimeout string `json:"drophalfclosedconnontimeout,omitempty"` + /** + * Silently drop tcp established connections on idle timeout + */ + Dropestconnontimeout string `json:"dropestconnontimeout,omitempty"` + /** + * Apply Adaptive TCP optimizations + */ + Applyadaptivetcp string `json:"applyadaptivetcp,omitempty"` + /** + * TCP FastOpen Cookie size. This accepts only even numbers. Odd number is trimmed down to nearest even number. + */ + Tcpfastopencookiesize uint32 `json:"tcpfastopencookiesize,omitempty"` + /** + * TCP tail loss probe optimizations + */ + Taillossprobe string `json:"taillossprobe,omitempty"` + /** + * Client IP in TCP options + */ + Clientiptcpoption string `json:"clientiptcpoption,omitempty"` + /** + * ClientIP TCP Option number + */ + Clientiptcpoptionnumber uint32 `json:"clientiptcpoptionnumber,omitempty"` + /** + * Set C bit in MP-CAPABLE Syn-Ack sent by Citrix ADC + */ + Mpcapablecbit string `json:"mpcapablecbit,omitempty"` + + //------- Read only Parameter ---------; + + Refcnt string `json:"refcnt,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstestlicense.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstestlicense.go new file mode 100644 index 000000000..282b678e7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstestlicense.go @@ -0,0 +1,90 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for testlicense resource. +*/ +type Nstestlicense struct { + + //------- Read only Parameter ---------; + + Wl string `json:"wl,omitempty"` + Sp string `json:"sp,omitempty"` + Lb string `json:"lb,omitempty"` + Cs string `json:"cs,omitempty"` + Cr string `json:"cr,omitempty"` + Sc string `json:"sc,omitempty"` + Cmp string `json:"cmp,omitempty"` + Delta string `json:"delta,omitempty"` + Pq string `json:"pq,omitempty"` + Ssl string `json:"ssl,omitempty"` + Gslb string `json:"gslb,omitempty"` + Gslbp string `json:"gslbp,omitempty"` + Hdosp string `json:"hdosp,omitempty"` + Routing string `json:"routing,omitempty"` + Cf string `json:"cf,omitempty"` + Contentaccelerator string `json:"contentaccelerator,omitempty"` + Ic string `json:"ic,omitempty"` + Sslvpn string `json:"sslvpn,omitempty"` + Fsslvpnusers string `json:"f_sslvpn_users,omitempty"` + Ficausers string `json:"f_ica_users,omitempty"` + Aaa string `json:"aaa,omitempty"` + Ospf string `json:"ospf,omitempty"` + Rip string `json:"rip,omitempty"` + Bgp string `json:"bgp,omitempty"` + Rewrite string `json:"rewrite,omitempty"` + Ipv6pt string `json:"ipv6pt,omitempty"` + Appfw string `json:"appfw,omitempty"` + Responder string `json:"responder,omitempty"` + Agee string `json:"agee,omitempty"` + Nsxn string `json:"nsxn,omitempty"` + Htmlinjection string `json:"htmlinjection,omitempty"` + Modelid string `json:"modelid,omitempty"` + Push string `json:"push,omitempty"` + Wionns string `json:"wionns,omitempty"` + Appflow string `json:"appflow,omitempty"` + Cloudbridge string `json:"cloudbridge,omitempty"` + Cloudbridgeappliance string `json:"cloudbridgeappliance,omitempty"` + Cloudextenderappliance string `json:"cloudextenderappliance,omitempty"` + Isis string `json:"isis,omitempty"` + Cluster string `json:"cluster,omitempty"` + Ch string `json:"ch,omitempty"` + Appqoe string `json:"appqoe,omitempty"` + Appflowica string `json:"appflowica,omitempty"` + Isstandardlic string `json:"isstandardlic,omitempty"` + Isenterpriselic string `json:"isenterpriselic,omitempty"` + Isplatinumlic string `json:"isplatinumlic,omitempty"` + Issgwylic string `json:"issgwylic,omitempty"` + Isswglic string `json:"isswglic,omitempty"` + Feo string `json:"feo,omitempty"` + Lsn string `json:"lsn,omitempty"` + Licensingmode string `json:"licensingmode,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + Rdpproxy string `json:"rdpproxy,omitempty"` + Rep string `json:"rep,omitempty"` + Urlfiltering string `json:"urlfiltering,omitempty"` + Videooptimization string `json:"videooptimization,omitempty"` + Forwardproxy string `json:"forwardproxy,omitempty"` + Sslinterception string `json:"sslinterception,omitempty"` + Remotecontentinspection string `json:"remotecontentinspection,omitempty"` + Adaptivetcp string `json:"adaptivetcp,omitempty"` + Cqa string `json:"cqa,omitempty"` + Bot string `json:"bot,omitempty"` + Apigateway string `json:"apigateway,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go new file mode 100644 index 000000000..222b987fd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for timeout resource. +*/ +type Nstimeout struct { + /** + * Interval, in seconds, at which the Citrix ADC zombie cleanup process must run. This process cleans up inactive TCP connections. + */ + Zombie uint32 `json:"zombie,omitempty"` + /** + * Client idle timeout (in seconds). If zero, the service-type default value is taken when service is created. + */ + Client uint32 `json:"client,omitempty"` + /** + * Server idle timeout (in seconds). If zero, the service-type default value is taken when service is created. + */ + Server uint32 `json:"server,omitempty"` + /** + * Global idle timeout, in seconds, for client connections of HTTP service type. This value is over ridden by the client timeout that is configured on individual entities. + */ + Httpclient uint32 `json:"httpclient,omitempty"` + /** + * Global idle timeout, in seconds, for server connections of HTTP service type. This value is over ridden by the server timeout that is configured on individual entities. + */ + Httpserver uint32 `json:"httpserver,omitempty"` + /** + * Global idle timeout, in seconds, for non-HTTP client connections of TCP service type. This value is over ridden by the client timeout that is configured on individual entities. + */ + Tcpclient uint32 `json:"tcpclient,omitempty"` + /** + * Global idle timeout, in seconds, for non-HTTP server connections of TCP service type. This value is over ridden by the server timeout that is configured on entities. + */ + Tcpserver uint32 `json:"tcpserver,omitempty"` + /** + * Global idle timeout, in seconds, for non-TCP client connections. This value is over ridden by the client timeout that is configured on individual entities. + */ + Anyclient uint32 `json:"anyclient,omitempty"` + /** + * Global idle timeout, in seconds, for non TCP server connections. This value is over ridden by the server timeout that is configured on individual entities. + */ + Anyserver uint32 `json:"anyserver,omitempty"` + /** + * Global idle timeout, in seconds, for TCP client connections. This value takes precedence over entity level timeout settings (vserver/service). This is applicable only to transport protocol TCP. + */ + Anytcpclient uint32 `json:"anytcpclient,omitempty"` + /** + * Global idle timeout, in seconds, for TCP server connections. This value takes precedence over entity level timeout settings ( vserver/service). This is applicable only to transport protocol TCP. + */ + Anytcpserver uint32 `json:"anytcpserver,omitempty"` + /** + * Idle timeout, in seconds, for connections that are in TCP half-closed state. + */ + Halfclose uint32 `json:"halfclose,omitempty"` + /** + * Interval at which the zombie clean-up process for non-TCP connections should run. Inactive IP NAT connections will be cleaned up. + */ + Nontcpzombie uint32 `json:"nontcpzombie,omitempty"` + /** + * Alternative idle timeout, in seconds, for closed TCP NATPCB connections. + */ + Reducedfintimeout uint32 `json:"reducedfintimeout,omitempty"` + /** + * Timer interval, in seconds, for abruptly terminated TCP NATPCB connections. + */ + Reducedrsttimeout uint32 `json:"reducedrsttimeout,omitempty"` + /** + * Timer interval, in seconds, for new TCP NATPCB connections on which no data was received. + */ + Newconnidletimeout uint32 `json:"newconnidletimeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go new file mode 100644 index 000000000..cad90123e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Timer resource. +*/ +type Nstimer struct { + /** + * Timer name. + */ + Name string `json:"name,omitempty"` + /** + * The frequency at which the policies bound to this timer are invoked. The minimum value is 20 msec. The maximum value is 20940 in seconds and 349 in minutes + */ + Interval int32 `json:"interval,omitempty"` + /** + * Timer interval unit + */ + Unit string `json:"unit,omitempty"` + /** + * Comments associated with this timer. + */ + Comment string `json:"comment,omitempty"` + /** + * The new name of the timer. + */ + Newname string `json:"newname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_binding.go new file mode 100644 index 000000000..41b2e67d6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nstimer_binding. +*/ +type Nstimerbinding struct { + /** + * Timer name.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_policy_binding.go new file mode 100644 index 000000000..447e62c2a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_policy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the policy that can be bound to nstimer. +*/ +type Nstimerpolicybinding struct { + /** + * The timer policy associated with the timer. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the timer policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name of the vserver which provides the context for the rule in timer policy. When not specified it is treated as a Global Default context. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Denotes the sample size. Sample size value of 'x' means that previous '(x - 1)' policy's rule evaluation results and the current evaluation result are present with the binding. For example, sample size of 10 means that there is a state of previous 9 policy evaluation results and also the current policy evaluation result. + */ + Samplesize uint32 `json:"samplesize,omitempty"` + /** + * Denotes the threshold. If the rule of the policy in the binding relation evaluates 'threshold size' number of times in 'sample size' to true, then the corresponding action is taken. Its value needs to be less than or equal to the sample size value. + */ + Threshold uint32 `json:"threshold,omitempty"` + /** + * Timer name. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimezone.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimezone.go new file mode 100644 index 000000000..3ab2e9de5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimezone.go @@ -0,0 +1,23 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + + +type Nstimezone struct { + Value string `json:"value,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go new file mode 100644 index 000000000..ba0b5cafd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Traffic Domain resource. +*/ +type Nstrafficdomain struct { + /** + * Integer value that uniquely identifies a traffic domain. + */ + Td uint32 `json:"td,omitempty"` + /** + * Name of traffic domain being added. + */ + Aliasname string `json:"aliasname,omitempty"` + /** + * Associate the traffic domain with a VMAC address instead of with VLANs. The Citrix ADC then sends the VMAC address of the traffic domain in all responses to ARP queries for network entities in that domain. As a result, the ADC can segregate subsequent incoming traffic for this traffic domain on the basis of the destination MAC address, because the destination MAC address is the VMAC address of the traffic domain. After creating entities on a traffic domain, you can easily manage and monitor them by performing traffic domain level operations. + */ + Vmac string `json:"vmac,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go new file mode 100644 index 000000000..d40c0d08f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding object which returns the resources bound to nstrafficdomain_binding. +*/ +type Nstrafficdomainbinding struct { + /** + * Integer value that uniquely identifies a traffic domain.
Minimum value = 1
Maximum value = 4094 + */ + Td uint32 `json:"td,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go new file mode 100644 index 000000000..d162e0ee8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the bridgegroup that can be bound to nstrafficdomain. +*/ +type Nstrafficdomainbridgegroupbinding struct { + /** + * ID of the configured bridge to bind to this traffic domain. More than one bridge group can be bound to a traffic domain, but the same bridge group cannot be a part of multiple traffic domains. + */ + Bridgegroup uint32 `json:"bridgegroup,omitempty"` + /** + * Integer value that uniquely identifies a traffic domain. + */ + Td uint32 `json:"td,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go new file mode 100644 index 000000000..48e7aed1c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the vlan that can be bound to nstrafficdomain. +*/ +type Nstrafficdomainvlanbinding struct { + /** + * ID of the VLAN to bind to this traffic domain. More than one VLAN can be bound to a traffic domain, but the same VLAN cannot be a part of multiple traffic domains. + */ + Vlan uint32 `json:"vlan,omitempty"` + /** + * Integer value that uniquely identifies a traffic domain. + */ + Td uint32 `json:"td,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go new file mode 100644 index 000000000..25b07d043 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the vxlan that can be bound to nstrafficdomain. +*/ +type Nstrafficdomainvxlanbinding struct { + /** + * ID of the VXLAN to bind to this traffic domain. More than one VXLAN can be bound to a traffic domain, but the same VXLAN cannot be a part of multiple traffic domains. + */ + Vxlan uint32 `json:"vxlan,omitempty"` + /** + * Integer value that uniquely identifies a traffic domain. + */ + Td uint32 `json:"td,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go new file mode 100644 index 000000000..75b2aa33d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for variable resource. +*/ +type Nsvariable struct { + /** + * Variable name. This follows the same syntax rules as other expression entity names: + It must begin with an alpha character (A-Z or a-z) or an underscore (_). + The rest of the characters must be alpha, numeric (0-9) or underscores. + It cannot be re or xp (reserved for regular and XPath expressions). + It cannot be an expression reserved word (e.g. SYS or HTTP). + It cannot be used for an existing expression object (HTTP callout, patset, dataset, stringmap, or named expression). + */ + Name string `json:"name,omitempty"` + /** + * Specification of the variable type; one of the following: + ulong - singleton variable with an unsigned 64-bit value. + text(value-max-size) - singleton variable with a text string value. + map(text(key-max-size),ulong,max-entries) - map of text string keys to unsigned 64-bit values. + map(text(key-max-size),text(value-max-size),max-entries) - map of text string keys to text string values. + where + value-max-size is a positive integer that is the maximum number of bytes in a text string value. + key-max-size is a positive integer that is the maximum number of bytes in a text string key. + max-entries is a positive integer that is the maximum number of entries in a map variable. + For a global singleton text variable, value-max-size <= 64000. + For a global map with ulong values, key-max-size <= 64000. + For a global map with text values, key-max-size + value-max-size <= 64000. + max-entries is a positive integer that is the maximum number of entries in a map variable. This has a theoretical maximum of 2^64-1, but in actual use will be much smaller, considering the memory available for use by the map. + Example: + map(text(10),text(20),100) specifies a map of text string keys (max size 10 bytes) to text string values (max size 20 bytes), with 100 max entries. + */ + Type string `json:"type,omitempty"` + /** + * Scope of the variable: + global - (default) one set of values visible across all Packet Engines on a standalone Citrix ADC, an HA pair, or all nodes of a cluster + transaction - one value for each request-response transaction (singleton variables only; no expiration) + */ + Scope string `json:"scope,omitempty"` + /** + * Action to perform if an assignment to a map exceeds its configured max-entries: + lru - (default) reuse the least recently used entry in the map. + undef - force the assignment to return an undefined (Undef) result to the policy executing the assignment. + */ + Iffull string `json:"iffull,omitempty"` + /** + * Action to perform if an value is assigned to a text variable that exceeds its configured max-size, + or if a key is used that exceeds its configured max-size: + truncate - (default) truncate the text string to the first max-size bytes and proceed. + undef - force the assignment or expression evaluation to return an undefined (Undef) result to the policy executing the assignment or expression. + */ + Ifvaluetoobig string `json:"ifvaluetoobig,omitempty"` + /** + * Action to perform if on a variable reference in an expression if the variable is single-valued and uninitialized + or if the variable is a map and there is no value for the specified key: + init - (default) initialize the single-value variable, or create a map entry for the key and the initial value, + using the -init value or its default. + undef - force the expression evaluation to return an undefined (Undef) result to the policy executing the expression. + */ + Ifnovalue string `json:"ifnovalue,omitempty"` + /** + * Initialization value for this variable, to which a singleton variable or map entry will be set if it is referenced before an assignment action has assigned it a value. If the singleton variable or map entry already has been assigned a value, setting this parameter will have no effect on that variable value. Default: 0 for ulong, NULL for text + */ + Init string `json:"init,omitempty"` + /** + * Value expiration in seconds. If the value is not referenced within the expiration period it will be deleted. 0 (the default) means no expiration. + */ + Expires uint32 `json:"expires,omitempty"` + /** + * Comments associated with this variable. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Referencecount string `json:"referencecount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsversion.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsversion.go new file mode 100644 index 000000000..645eaf20c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsversion.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for version resource. +*/ +type Nsversion struct { + /** + * Installed version + */ + Installedversion bool `json:"installedversion,omitempty"` + + //------- Read only Parameter ---------; + + Version string `json:"version,omitempty"` + Mode string `json:"mode,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go new file mode 100644 index 000000000..bba491eba --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for "VPX" resource. +*/ +type Nsvpxparam struct { + /** + * This setting applicable in virtual appliances, to move master clock source cpu from management cpu cpu0 to cpu1 ie PE0. + * There are 2 options for the behavior: + 1. YES - Allow the Virtual Appliance to move clock source to cpu1. + 2. NO - Virtual Appliance will use management cpu ie cpu0 for clock source default option is NO. + */ + Masterclockcpu1 string `json:"masterclockcpu1,omitempty"` + /** + * This setting applicable in virtual appliances, is to affect the cpu yield(relinquishing the cpu resources) in any hypervised environment. + * There are 3 options for the behavior: + 1. YES - Allow the Virtual Appliance to yield its vCPUs periodically, if there is no data traffic. + 2. NO - Virtual Appliance will not yield the vCPU. + 3. DEFAULT - Restores the default behaviour, according to the license. + * Its behavior in different scenarios: + 1. As this setting is node specific only, it will not be propagated to other nodes, when executed on Cluster(CLIP) and HA(Primary). + 2. In cluster setup, use '-ownerNode' to specify ID of the cluster node. + 3. This setting is a system wide implementation and not granular to vCPUs. + 4. No effect on the management PE. + */ + Cpuyield string `json:"cpuyield,omitempty"` + /** + * ID of the cluster node for which you are setting the cpuyield. It can be configured only through the cluster IP address. + */ + Ownernode uint32 `json:"ownernode,omitempty"` + + //------- Read only Parameter ---------; + + Vpxenvironment string `json:"vpxenvironment,omitempty"` + Memorystatus string `json:"memorystatus,omitempty"` + Cloudproductcode string `json:"cloudproductcode,omitempty"` + Vpxoemcode string `json:"vpxoemcode,omitempty"` + Technicalsupportpin string `json:"technicalsupportpin,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go new file mode 100644 index 000000000..8c4152286 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for Web log parameters resource. +*/ +type Nsweblogparam struct { + /** + * Buffer size, in MB, allocated for log transaction data on the system. The maximum value is limited to the memory available on the system. + */ + Buffersizemb uint32 `json:"buffersizemb,omitempty"` + /** + * Name(s) of HTTP request headers whose values should be exported by the Web Logging feature. + */ + Customreqhdrs []string `json:"customreqhdrs,omitempty"` + /** + * Name(s) of HTTP response headers whose values should be exported by the Web Logging feature. + */ + Customrsphdrs []string `json:"customrsphdrs,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsxmlnamespace.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsxmlnamespace.go new file mode 100644 index 000000000..e75fd52ed --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsxmlnamespace.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Configuration for XML namespace resource. +*/ +type Nsxmlnamespace struct { + /** + * XML prefix. + */ + Prefix string `json:"prefix,omitempty"` + /** + * Expanded namespace for which the XML prefix is provided. + */ + Namespace string `json:"Namespace,omitempty"` + /** + * Description for the prefix. + */ + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/reboot.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/reboot.go new file mode 100644 index 000000000..c0990d9fb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/reboot.go @@ -0,0 +1,27 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + + +type Reboot struct { + /** + * Restarts the Citrix ADC software without rebooting the underlying operating system. The session terminates and you must log on to the appliance after it has restarted. + Note: This argument is required only for nCore appliances. Classic appliances ignore this argument. + */ + Warm bool `json:"warm,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/shutdown.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/shutdown.go new file mode 100644 index 000000000..6844a00f2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/shutdown.go @@ -0,0 +1,22 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + + +type Shutdown struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset.go new file mode 100644 index 000000000..8adf1e2e6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset.go @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for TYPE set resource. +*/ +type Policydataset struct { + /** + * Name of the dataset. Must not exceed 127 characters. + */ + Name string `json:"name,omitempty"` + /** + * Type of value to bind to the dataset. + */ + Type string `json:"type,omitempty"` + /** + * Index type. + */ + Indextype string `json:"indextype,omitempty"` + /** + * Any comments to preserve information about this dataset or a data bound to this dataset. + */ + Comment string `json:"comment,omitempty"` + /** + * File which contains list of patterns that needs to be bound to the dataset. A patsetfile cannot be associated with multiple datasets. + */ + Patsetfile string `json:"patsetfile,omitempty"` + + //------- Read only Parameter ---------; + + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_binding.go new file mode 100644 index 000000000..0d307767c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding object which returns the resources bound to policydataset_binding. +*/ +type Policydatasetbinding struct { + /** + * Name of the dataset. Must not exceed 127 characters.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go new file mode 100644 index 000000000..f91b33689 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding class showing the value that can be bound to policydataset. +*/ +type Policydatasetvaluebinding struct { + /** + * Value of the specified type that is associated with the dataset. + */ + Value string `json:"value,omitempty"` + /** + * The index of the value (ipv4, ipv6, number) associated with the set. + */ + Index uint32 `json:"index,omitempty"` + /** + * Any comments to preserve information about this dataset or a data bound to this dataset. + */ + Comment string `json:"comment,omitempty"` + /** + * The dataset entry is a range from through , inclusive + */ + Endrange string `json:"endrange,omitempty"` + /** + * Name of the dataset to which to bind the value. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyevaluation.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyevaluation.go new file mode 100644 index 000000000..b79f2925b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyevaluation.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for expr evaluation resource. +*/ +type Policyevaluation struct { + /** + * Expression string. For example: http.req.body(100).contains("this"). + */ + Expression string `json:"expression,omitempty"` + /** + * Rewrite action name. Supported rewrite action types are: + -delete + -delete_all + -delete_http_header + -insert_after + -insert_after_all + -insert_before + -insert_before_all + -insert_http_header + -replace + -replace_all + */ + Action string `json:"action,omitempty"` + /** + * Indicates request or response input packet + */ + Type string `json:"type,omitempty"` + /** + * Text representation of input packet. + */ + Input string `json:"input,omitempty"` + + //------- Read only Parameter ---------; + + Pitmodifiedinputdata string `json:"pitmodifiedinputdata,omitempty"` + Pitboolresult string `json:"pitboolresult,omitempty"` + Pitnumresult string `json:"pitnumresult,omitempty"` + Pitdoubleresult string `json:"pitdoubleresult,omitempty"` + Pitulongresult string `json:"pitulongresult,omitempty"` + Pitrefresult string `json:"pitrefresult,omitempty"` + Pitoffsetresult string `json:"pitoffsetresult,omitempty"` + Pitoffsetresultlen string `json:"pitoffsetresultlen,omitempty"` + Istruncatedrefresult string `json:"istruncatedrefresult,omitempty"` + Pitboolevaltime string `json:"pitboolevaltime,omitempty"` + Pitnumevaltime string `json:"pitnumevaltime,omitempty"` + Pitdoubleevaltime string `json:"pitdoubleevaltime,omitempty"` + Pitulongevaltime string `json:"pitulongevaltime,omitempty"` + Pitrefevaltime string `json:"pitrefevaltime,omitempty"` + Pitoffsetevaltime string `json:"pitoffsetevaltime,omitempty"` + Pitactionevaltime string `json:"pitactionevaltime,omitempty"` + Pitoperationperformerarray string `json:"pitoperationperformerarray,omitempty"` + Pitoldoffsetarray string `json:"pitoldoffsetarray,omitempty"` + Pitnewoffsetarray string `json:"pitnewoffsetarray,omitempty"` + Pitoffsetlengtharray string `json:"pitoffsetlengtharray,omitempty"` + Pitoffsetnewlengtharray string `json:"pitoffsetnewlengtharray,omitempty"` + Pitboolerrorresult string `json:"pitboolerrorresult,omitempty"` + Pitnumerrorresult string `json:"pitnumerrorresult,omitempty"` + Pitdoubleerrorresult string `json:"pitdoubleerrorresult,omitempty"` + Pitulongerrorresult string `json:"pitulongerrorresult,omitempty"` + Pitreferrorresult string `json:"pitreferrorresult,omitempty"` + Pitoffseterrorresult string `json:"pitoffseterrorresult,omitempty"` + Pitactionerrorresult string `json:"pitactionerrorresult,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyexpression.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyexpression.go new file mode 100644 index 000000000..d31dc8338 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyexpression.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for expression resource. +*/ +type Policyexpression struct { + /** + * Unique name for the expression. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or HTTP callout. + */ + Name string `json:"name,omitempty"` + /** + * Expression string. For example: http.req.body(100).contains("this"). + */ + Value string `json:"value,omitempty"` + /** + * Description for the expression. + */ + Description string `json:"description,omitempty"` + /** + * Any comments associated with the expression. Displayed upon viewing the policy expression. + */ + Comment string `json:"comment,omitempty"` + /** + * Message to display if the expression fails. Allowed for classic end-point check expressions only. + */ + Clientsecuritymessage string `json:"clientsecuritymessage,omitempty"` + /** + * Type of expression. Can be a classic or default syntax (advanced) expression. + */ + Type string `json:"type,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Pihits string `json:"pihits,omitempty"` + Type1 string `json:"type1,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go new file mode 100644 index 000000000..f2c09a2b0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for HTTP callout resource. +*/ +type Policyhttpcallout struct { + /** + * Name for the HTTP callout. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, stringmap, or HTTP callout. + */ + Name string `json:"name,omitempty"` + /** + * IP Address of the server (callout agent) to which the callout is sent. Can be an IPv4 or IPv6 address. + Mutually exclusive with the Virtual Server parameter. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Server port to which the HTTP callout agent is mapped. Mutually exclusive with the Virtual Server parameter. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. + */ + Port int32 `json:"port,omitempty"` + /** + * Name of the load balancing, content switching, or cache redirection virtual server (the callout agent) to which the HTTP callout is sent. The service type of the virtual server must be HTTP. Mutually exclusive with the IP address and port parameters. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Type of data that the target callout agent returns in response to the callout. + Available settings function as follows: + * TEXT - Treat the returned value as a text string. + * NUM - Treat the returned value as a number. + * BOOL - Treat the returned value as a Boolean value. + Note: You cannot change the return type after it is set. + */ + Returntype string `json:"returntype,omitempty"` + /** + * Method used in the HTTP request that this callout sends. Mutually exclusive with the full HTTP request expression. + */ + Httpmethod string `json:"httpmethod,omitempty"` + /** + * String expression to configure the Host header. Can contain a literal value (for example, 10.101.10.11) or a derived value (for example, http.req.header("Host")). The literal value can be an IP address or a fully qualified domain name. Mutually exclusive with the full HTTP request expression. + */ + Hostexpr string `json:"hostexpr,omitempty"` + /** + * String expression for generating the URL stem. Can contain a literal string (for example, "/mysite/index.html") or an expression that derives the value (for example, http.req.url). Mutually exclusive with the full HTTP request expression. + */ + Urlstemexpr string `json:"urlstemexpr,omitempty"` + /** + * One or more headers to insert into the HTTP request. Each header is specified as "name(expr)", where expr is an expression that is evaluated at runtime to provide the value for the named header. You can configure a maximum of eight headers for an HTTP callout. Mutually exclusive with the full HTTP request expression. + */ + Headers []string `json:"headers,omitempty"` + /** + * One or more query parameters to insert into the HTTP request URL (for a GET request) or into the request body (for a POST request). Each parameter is specified as "name(expr)", where expr is an expression that is evaluated at run time to provide the value for the named parameter (name=value). The parameter values are URL encoded. Mutually exclusive with the full HTTP request expression. + */ + Parameters []string `json:"parameters,omitempty"` + /** + * An advanced string expression for generating the body of the request. The expression can contain a literal string or an expression that derives the value (for example, client.ip.src). Mutually exclusive with -fullReqExpr. + */ + Bodyexpr string `json:"bodyexpr,omitempty"` + /** + * Exact HTTP request, in the form of an expression, which the Citrix ADC sends to the callout agent. If you set this parameter, you must not include HTTP method, host expression, URL stem expression, headers, or parameters. + The request expression is constrained by the feature for which the callout is used. For example, an HTTP.RES expression cannot be used in a request-time policy bank or in a TCP content switching policy bank. + The Citrix ADC does not check the validity of this request. You must manually validate the request. + */ + Fullreqexpr string `json:"fullreqexpr,omitempty"` + /** + * Type of scheme for the callout server. + */ + Scheme string `json:"scheme,omitempty"` + /** + * Expression that extracts the callout results from the response sent by the HTTP callout agent. Must be a response based expression, that is, it must begin with HTTP.RES. The operations in this expression must match the return type. For example, if you configure a return type of TEXT, the result expression must be a text based expression. If the return type is NUM, the result expression (resultExpr) must return a numeric value, as in the following example: http.res.body(10000).length. + */ + Resultexpr string `json:"resultexpr,omitempty"` + /** + * Duration, in seconds, for which the callout response is cached. The cached responses are stored in an integrated caching content group named "calloutContentGroup". If no duration is configured, the callout responses will not be cached unless normal caching configuration is used to cache them. This parameter takes precedence over any normal caching configuration that would otherwise apply to these responses. + Note that the calloutContentGroup definition may not be modified or removed nor may it be used with other cache policies. + */ + Cacheforsecs uint64 `json:"cacheforsecs,omitempty"` + /** + * Any comments to preserve information about this HTTP callout. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Svrstate string `json:"svrstate,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + Undefreason string `json:"undefreason,omitempty"` + Recursivecallout string `json:"recursivecallout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policymap.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policymap.go new file mode 100644 index 000000000..97df2ae49 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policymap.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for map policy resource. +*/ +type Policymap struct { + /** + * Name for the map policy. Must begin with a letter, number, or the underscore (_) character and must consist only of letters, numbers, and the hash (#), period (.), colon (:), space ( ), at (@), equals (=), hyphen (-), and underscore (_) characters. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my map" or 'my map'). + */ + Mappolicyname string `json:"mappolicyname,omitempty"` + /** + * Publicly known source domain name. This is the domain name with which a client request arrives at a reverse proxy virtual server for cache redirection. If you specify a source domain, you must specify a target domain. + */ + Sd string `json:"sd,omitempty"` + /** + * Source URL. Specify all or part of the source URL, in the following format: /[[prefix] [*]] [.suffix]. + */ + Su string `json:"su,omitempty"` + /** + * Target domain name sent to the server. The source domain name is replaced with this domain name. + */ + Td string `json:"td,omitempty"` + /** + * Target URL. Specify the target URL in the following format: /[[prefix] [*]][.suffix]. + */ + Tu string `json:"tu,omitempty"` + + //------- Read only Parameter ---------; + + Targetname string `json:"targetname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go new file mode 100644 index 000000000..811d5a75e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for policy parameter resource. +*/ +type Policyparam struct { + /** + * Maximum time in milliseconds to allow for processing expressions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. + */ + Timeout uint32 `json:"timeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset.go new file mode 100644 index 000000000..6965c4b72 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for PAT set resource. +*/ +type Policypatset struct { + /** + * Unique name of the pattern set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. + */ + Name string `json:"name,omitempty"` + /** + * Index type. + */ + Indextype string `json:"indextype,omitempty"` + /** + * Any comments to preserve information about this patset or a pattern bound to this patset. + */ + Comment string `json:"comment,omitempty"` + /** + * File which contains list of patterns that needs to be bound to the patset. A patsetfile cannot be associated with multiple patsets. + */ + Patsetfile string `json:"patsetfile,omitempty"` + + //------- Read only Parameter ---------; + + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_binding.go new file mode 100644 index 000000000..db6e7f77d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding object which returns the resources bound to policypatset_binding. +*/ +type Policypatsetbinding struct { + /** + * Name of the pattern set for which to display the detailed information. If a name is not provided, a list of all pattern sets configured on the appliance is shown.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go new file mode 100644 index 000000000..25712f503 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding class showing the pattern that can be bound to policypatset. +*/ +type Policypatsetpatternbinding struct { + /** + * String of characters that constitutes a pattern. For more information about the characters that can be used, refer to the character set parameter. + Note: Minimum length for pattern sets used in rewrite actions of type REPLACE_ALL, DELETE_ALL, INSERT_AFTER_ALL, and INSERT_BEFORE_ALL, is three characters. + */ + String string `json:"String,omitempty"` + /** + * The index of the string associated with the patset. + */ + Index uint32 `json:"index,omitempty"` + /** + * Character set associated with the characters in the string. + Note: UTF-8 characters can be entered directly (if the UI supports it) or can be encoded as a sequence of hexadecimal bytes '\xNN'. For example, the UTF-8 character 'ue' can be encoded as '\xC3\xBC'. + */ + Charset string `json:"charset,omitempty"` + /** + * Any comments to preserve information about this patset or a pattern bound to this patset. + */ + Comment string `json:"comment,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + /** + * Name of the pattern set to which to bind the string. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatsetfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatsetfile.go new file mode 100644 index 000000000..9c58c05d6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatsetfile.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for patset file resource. +*/ +type Policypatsetfile struct { + /** + * URL in protocol, host, path, and file name format from where the patset file will be imported. If file is already present, then it can be imported using local keyword (import patsetfile local:filename patsetfile1) + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access + */ + Src string `json:"src,omitempty"` + /** + * Name to assign to the imported patset file. Unique name of the pattern set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. + */ + Name string `json:"name,omitempty"` + /** + * Overwrites the existing file + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * patset file patterns delimiter. + */ + Delimiter string `json:"delimiter,omitempty"` + /** + * Character set associated with the characters in the string. + */ + Charset string `json:"charset,omitempty"` + /** + * Any comments to preserve information about this patsetfile. + */ + Comment string `json:"comment,omitempty"` + /** + * When set, display only shows all imported patsetfiles. + */ + Imported bool `json:"imported,omitempty"` + + //------- Read only Parameter ---------; + + Totalpatterns string `json:"totalpatterns,omitempty"` + Boundpatterns string `json:"boundpatterns,omitempty"` + Patsetname string `json:"patsetname,omitempty"` + Bindstatuscode string `json:"bindstatuscode,omitempty"` + Bindstatus string `json:"bindstatus,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap.go new file mode 100644 index 000000000..e758f9c4c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for string map resource. +*/ +type Policystringmap struct { + /** + * Unique name for the string map. Not case sensitive. Must begin with an ASCII letter or underscore (_) character, and must consist only of ASCII alphanumeric or underscore characters. Must not begin with 're' or 'xp' or be a word reserved for use as an expression qualifier prefix (such as HTTP) or enumeration value (such as ASCII). Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. + */ + Name string `json:"name,omitempty"` + /** + * Comments associated with the string map or key-value pair bound to this string map. + */ + Comment string `json:"comment,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_binding.go new file mode 100644 index 000000000..2a06d05ea --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding object which returns the resources bound to policystringmap_binding. +*/ +type Policystringmapbinding struct { + /** + * Name of the string map to display. If a name is not provided, a list of all the configured string maps is shown.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_pattern_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_pattern_binding.go new file mode 100644 index 000000000..bf579d218 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policystringmap_pattern_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Binding class showing the pattern that can be bound to policystringmap. +*/ +type Policystringmappatternbinding struct { + /** + * Character string constituting the key to be bound to the string map. The key is matched against the data processed by the operation that uses the string map. The default character set is ASCII. UTF-8 characters can be included if the character set is UTF-8. UTF-8 characters can be entered directly (if the UI supports it) or can be encoded as a sequence of hexadecimal bytes '\xNN'. For example, the UTF-8 character 'ue' can be encoded as '\xC3\xBC'. + */ + Key string `json:"key,omitempty"` + /** + * Character string constituting the value associated with the key. This value is returned when processed data matches the associated key. Refer to the key parameter for details of the value character set. + */ + Value string `json:"value,omitempty"` + /** + * Comments associated with the string map or key-value pair bound to this string map. + */ + Comment string `json:"comment,omitempty"` + /** + * Name of the string map to which to bind the key-value pair. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go new file mode 100644 index 000000000..2d4cdd7e3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package policy + +/** +* Configuration for URL set resource. +*/ +type Policyurlset struct { + /** + * Unique name of the url set. Not case sensitive. Must begin with an ASCII letter or underscore (_) character and must contain only alphanumeric and underscore characters. Must not be the name of an existing named expression, pattern set, dataset, string map, or HTTP callout. + */ + Name string `json:"name,omitempty"` + /** + * Any comments to preserve information about this url set. + */ + Comment string `json:"comment,omitempty"` + /** + * when set, display shows all imported urlsets. + */ + Imported bool `json:"imported,omitempty"` + /** + * Overwrites the existing file. + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * CSV file record delimiter. + */ + Delimiter string `json:"delimiter,omitempty"` + /** + * CSV file row separator. + */ + Rowseparator string `json:"rowseparator,omitempty"` + /** + * URL (protocol, host, path and file name) from where the CSV (comma separated file) file will be imported or exported. Each record/line will one entry within the urlset. The first field contains the URL pattern, subsequent fields contains the metadata, if available. HTTP, HTTPS and FTP protocols are supported. NOTE: The operation fails if the destination HTTPS server requires client certificate authentication for access. + */ + Url string `json:"url,omitempty"` + /** + * The interval, in seconds, rounded down to the nearest 15 minutes, at which the update of urlset occurs. + */ + Interval uint64 `json:"interval,omitempty"` + /** + * Prevent this urlset from being exported. + */ + Privateset bool `json:"privateset,omitempty"` + /** + * Force exact subdomain matching, ex. given an entry 'google.com' in the urlset, a request to 'news.google.com' won't match, if subdomainExactMatch is set. + */ + Subdomainexactmatch bool `json:"subdomainexactmatch,omitempty"` + /** + * An ID that would be sent to AppFlow to indicate which URLSet was the last one that matched the requested URL. + */ + Matchedid uint32 `json:"matchedid,omitempty"` + /** + * Add this URL to this urlset. Used for testing when contents of urlset is kept confidential. + */ + Canaryurl string `json:"canaryurl,omitempty"` + + //------- Read only Parameter ---------; + + Patterncount string `json:"patterncount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go new file mode 100644 index 000000000..2c440e558 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Configuration for responder action resource. +*/ +type Responderaction struct { + /** + * Name for the responder action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the responder policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder action" or 'my responder action'). + */ + Name string `json:"name,omitempty"` + /** + * Type of responder action. Available settings function as follows: + * respondwith - Respond to the request with the expression specified as the target. + * respondwithhtmlpage - Respond to the request with the uploaded HTML page object specified as the target. + * redirect - Redirect the request to the URL specified as the target. + * sqlresponse_ok - Send an SQL OK response. + * sqlresponse_error - Send an SQL ERROR response. + */ + Type string `json:"type,omitempty"` + /** + * Expression specifying what to respond with. Typically a URL for redirect policies or a default-syntax expression. In addition to Citrix ADC default-syntax expressions that refer to information in the request, a stringbuilder expression can contain text and HTML, and simple escape codes that define new lines and paragraphs. Enclose each stringbuilder expression element (either a Citrix ADC default-syntax expression or a string) in double quotation marks. Use the plus (+) character to join the elements. + Examples: + 1) Respondwith expression that sends an HTTP 1.1 200 OK response: + "HTTP/1.1 200 OK\r\n\r\n" + 2) Redirect expression that redirects user to the specified web host and appends the request URL to the redirect. + "http://backupsite2.com" + HTTP.REQ.URL + 3) Respondwith expression that sends an HTTP 1.1 404 Not Found response with the request URL included in the response: + "HTTP/1.1 404 Not Found\r\n\r\n"+ "HTTP.REQ.URL.HTTP_URL_SAFE" + "does not exist on the web server." + The following requirement applies only to the Citrix ADC CLI: + Enclose the entire expression in single quotation marks. (Citrix ADC expression elements should be included inside the single quotation marks for the entire expression, but do not need to be enclosed in double quotation marks.) + */ + Target string `json:"target,omitempty"` + /** + * For respondwithhtmlpage policies, name of the HTML page object to use as the response. You must first import the page object. + */ + Htmlpage string `json:"htmlpage,omitempty"` + /** + * Bypass the safety check, allowing potentially unsafe expressions. An unsafe expression in a response is one that contains references to request elements that might not be present in all requests. If a response refers to a missing request element, an empty string is used instead. + */ + Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` + /** + * Comment. Any type of information about this responder action. + */ + Comment string `json:"comment,omitempty"` + /** + * HTTP response status code, for example 200, 302, 404, etc. The default value for the redirect action type is 302 and for respondwithhtmlpage is 200 + */ + Responsestatuscode uint32 `json:"responsestatuscode,omitempty"` + /** + * Expression specifying the reason phrase of the HTTP response. The reason phrase may be a string literal with quotes or a PI expression. For example: "Invalid URL: " + HTTP.REQ.URL + */ + Reasonphrase string `json:"reasonphrase,omitempty"` + /** + * One or more headers to insert into the HTTP response. Each header is specified as "name(expr)", where expr is an expression that is evaluated at runtime to provide the value for the named header. You can configure a maximum of eight headers for a responder action. + */ + Headers []string `json:"headers,omitempty"` + /** + * New name for the responder action. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder action" or my responder action'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_binding.go new file mode 100644 index 000000000..26a6c153b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding object which returns the resources bound to responderglobal_binding. +*/ +type Responderglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_policy_binding.go new file mode 100644 index 000000000..07acee4ca --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_policy_binding.go @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the policy that can be bound to responderglobal. +*/ +type Responderglobalpolicybinding struct { + /** + * Name of the responder policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the bind point whose policies you want to display. Available settings function as follows: + * REQ_OVERRIDE - Request override. Binds the policy to the priority request queue. + * REQ_DEFAULT - Binds the policy to the default request queue. + * OTHERTCP_REQ_OVERRIDE - Binds the policy to the non-HTTP TCP priority request queue. + * OTHERTCP_REQ_DEFAULT - Binds the policy to the non-HTTP TCP default request queue.. + * SIPUDP_REQ_OVERRIDE - Binds the policy to the SIP UDP priority response queue.. + * SIPUDP_REQ_DEFAULT - Binds the policy to the SIP UDP default response queue. + * RADIUS_REQ_OVERRIDE - Binds the policy to the RADIUS priority response queue.. + * RADIUS_REQ_DEFAULT - Binds the policy to the RADIUS default response queue. + * MSSQL_REQ_OVERRIDE - Binds the policy to the Microsoft SQL priority response queue.. + * MSSQL_REQ_DEFAULT - Binds the policy to the Microsoft SQL default response queue. + * MYSQL_REQ_OVERRIDE - Binds the policy to the MySQL priority response queue. + * MYSQL_REQ_DEFAULT - Binds the policy to the MySQL default response queue. + * HTTPQUIC_REQ_OVERRIDE - Binds the policy to the HTTP_QUIC override response queue. + * HTTPQUIC_REQ_DEFAULT - Binds the policy to the HTTP_QUIC default response queue. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation, Available settings function as follows: + * vserver - Forward the request to the specified virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke. If the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is policylabel. + */ + Labelname string `json:"labelname,omitempty"` + /** + * number of polices bound to label. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * flowtype of the bound responder policy. + */ + Flowtype uint32 `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderhtmlpage.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderhtmlpage.go new file mode 100644 index 000000000..6fe9e898a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderhtmlpage.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Configuration for Responder HTML page resource. +*/ +type Responderhtmlpage struct { + /** + * Local path to and name of, or URL \(protocol, host, path, and file name\) for, the file in which to store the imported HTML page. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + /** + * Name to assign to the HTML page object on the Citrix ADC. + */ + Name string `json:"name,omitempty"` + /** + * Any comments to preserve information about the HTML page object. + */ + Comment string `json:"comment,omitempty"` + /** + * Overwrites the existing file + */ + Overwrite bool `json:"overwrite,omitempty"` + /** + * CA certificate file name which will be used to verify the peer's certificate. The certificate should be imported using "import ssl certfile" CLI command or equivalent in API or GUI. If certificate name is not configured, then default root CA certificates are used for peer's certificate verification. + */ + Cacertfile string `json:"cacertfile,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go new file mode 100644 index 000000000..6486fbfcb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Configuration for responser parameter resource. +*/ +type Responderparam struct { + /** + * Action to perform when policy evaluation creates an UNDEF condition. Available settings function as follows: + * NOOP - Send the request to the protected server. + * RESET - Reset the request and notify the user's browser, so that the user can resend the request. + * DROP - Drop the request without sending a response to the user. + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Maximum time in milliseconds to allow for processing all the policies and their selected actions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. + */ + Timeout uint32 `json:"timeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy.go new file mode 100644 index 000000000..c4e0d3776 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy.go @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Configuration for responder policy resource. +*/ +type Responderpolicy struct { + /** + * Name for the responder policy. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the responder policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder policy" or 'my responder policy'). + */ + Name string `json:"name,omitempty"` + /** + * Expression that the policy uses to determine whether to respond to the specified request. + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the responder action to perform if the request matches this responder policy. There are also some built-in actions which can be used. These are: + * NOOP - Send the request to the protected server instead of responding to it. + * RESET - Reset the client connection by closing it. The client program, such as a browser, will handle this and may inform the user. The client may then resend the request if desired. + * DROP - Drop the request without sending a response to the user. + */ + Action string `json:"action,omitempty"` + /** + * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Any type of information about this responder policy. + */ + Comment string `json:"comment,omitempty"` + /** + * Name of the messagelog action to use for requests that match this policy. + */ + Logaction string `json:"logaction,omitempty"` + /** + * AppFlow action to invoke for requests that match this policy. + */ + Appflowaction string `json:"appflowaction,omitempty"` + /** + * New name for the responder policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder policy" or 'my responder policy'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_binding.go new file mode 100644 index 000000000..b84deaa9f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding object which returns the resources bound to responderpolicy_binding. +*/ +type Responderpolicybinding struct { + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_global_binding.go new file mode 100644 index 000000000..52ca32ca9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_global_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the global that can be bound to responderpolicy. +*/ +type Responderpolicyglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_policylabel_binding.go new file mode 100644 index 000000000..d79ff624b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the policylabel that can be bound to responderpolicy. +*/ +type Responderpolicypolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vserver_binding.go new file mode 100644 index 000000000..05bb68abe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the vserver that can be bound to responderpolicy. +*/ +type Responderpolicyvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel.go new file mode 100644 index 000000000..9983eacae --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel.go @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Configuration for responder policy label resource. +*/ +type Responderpolicylabel struct { + /** + * Name for the responder policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the responder policy label is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder policy label" or my responder policy label'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Type of responses sent by the policies bound to this policy label. Types are: + * HTTP - HTTP responses. + * OTHERTCP - NON-HTTP TCP responses. + * SIP_UDP - SIP responses. + * RADIUS - RADIUS responses. + * MYSQL - SQL responses in MySQL format. + * MSSQL - SQL responses in Microsoft SQL format. + * NAT - NAT response. + * MQTT - Trigger policies bind with MQTT type. + * MQTT_JUMBO - Trigger policies bind with MQTT Jumbo type. + */ + Policylabeltype string `json:"policylabeltype,omitempty"` + /** + * Any comments to preserve information about this responder policy label. + */ + Comment string `json:"comment,omitempty"` + /** + * New name for the responder policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_binding.go new file mode 100644 index 000000000..99803c19b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding object which returns the resources bound to responderpolicylabel_binding. +*/ +type Responderpolicylabelbinding struct { + /** + * Name of the responder policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policy_binding.go new file mode 100644 index 000000000..8ec5d451b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policy_binding.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the policy that can be bound to responderpolicylabel. +*/ +type Responderpolicylabelpolicybinding struct { + /** + * Name of the responder policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Available settings function as follows: + * vserver - Invoke an unnamed policy label associated with a virtual server. + * policylabel - Invoke a user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the responder policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go new file mode 100644 index 000000000..8a052abbd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the policybinding that can be bound to responderpolicylabel. +*/ +type Responderpolicylabelpolicybindingbinding struct { + /** + * Name of the responder policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Available settings function as follows: + * vserver - Invoke an unnamed policy label associated with a virtual server. + * policylabel - Invoke a user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the responder policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteaction.go new file mode 100644 index 000000000..1484ba19b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteaction.go @@ -0,0 +1,110 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Configuration for rewrite action resource. +*/ +type Rewriteaction struct { + /** + * Name for the user-defined rewrite action. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the rewrite policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rewrite action" or 'my rewrite action'). + */ + Name string `json:"name,omitempty"` + /** + * Type of user-defined rewrite action. The information that you provide for, and the effect of, each type are as follows:: + * REPLACE . Replaces the string with the string-builder expression. + * REPLACE_ALL -(pattern|search) . In the request or response specified by , replaces all occurrences of the string defined by with the string defined by . You can use a PCRE-format pattern or the search facility to find the strings to be replaced. + * REPLACE_HTTP_RES . Replaces the complete HTTP response with the string defined by the string-builder expression. + * REPLACE_SIP_RES - Replaces the complete SIP response with the string specified by . + * INSERT_HTTP_HEADER . Inserts the HTTP header specified by and header contents specified by . + * DELETE_HTTP_HEADER . Deletes the HTTP header specified by . + * CORRUPT_HTTP_HEADER . Replaces the header name of all occurrences of the HTTP header specified by with a corrupted name, so that it will not be recognized by the receiver Example: MY_HEADER is changed to MHEY_ADER. + * INSERT_BEFORE . Finds the string specified in and inserts the string in before it. + * INSERT_BEFORE_ALL -(pattern|search) . In the request or response specified by , locates all occurrences of the string specified in and inserts the string specified in before each. You can use a PCRE-format pattern or the search facility to find the strings. + * INSERT_AFTER . Finds the string specified in , and inserts the string specified in after it. + * INSERT_AFTER_ALL -(pattern|search) . In the request or response specified by , locates all occurrences of the string specified by and inserts the string specified by after each. You can use a PCRE-format pattern or the search facility to find the strings. + * DELETE . Finds and deletes the specified target. + * DELETE_ALL -(pattern|search) . In the request or response specified by , locates and deletes all occurrences of the string specified by . You can use a PCRE-format pattern or the search facility to find the strings. + * REPLACE_DIAMETER_HEADER_FIELD . In the request or response modify the header field specified by . Use Diameter.req.flags.SET() or Diameter.req.flags.UNSET as 'stringbuilderexpression' to set or unset flags. + * REPLACE_DNS_HEADER_FIELD . In the request or response modify the header field specified by . + * REPLACE_DNS_ANSWER_SECTION . Replace the DNS answer section in the response. This is currently applicable for A and AAAA records only. Use DNS.NEW_RRSET_A & DNS.NEW_RRSET_AAAA expressions to configure the new answer section + */ + Type string `json:"type,omitempty"` + /** + * Expression that specifies which part of the request or response to rewrite. + */ + Target string `json:"target,omitempty"` + /** + * Expression that specifies the content to insert into the request or response at the specified location, or that replaces the specified string. + */ + Stringbuilderexpr string `json:"stringbuilderexpr,omitempty"` + /** + * DEPRECATED in favor of -search: Pattern that is used to match multiple strings in the request or response. The pattern may be a string literal (without quotes) or a PCRE-format regular expression with a delimiter that consists of any printable ASCII non-alphanumeric character except for the underscore (_) and space ( ) that is not otherwise used in the expression. Example: re~https?://|HTTPS?://~ The preceding regular expression can use the tilde (~) as the delimiter because that character does not appear in the regular expression itself. Used in the INSERT_BEFORE_ALL, INSERT_AFTER_ALL, REPLACE_ALL, and DELETE_ALL action types. + */ + Pattern string `json:"pattern,omitempty"` + /** + * Search facility that is used to match multiple strings in the request or response. Used in the INSERT_BEFORE_ALL, INSERT_AFTER_ALL, REPLACE_ALL, and DELETE_ALL action types. The following search types are supported: + * Text ("text(string)") - A literal string. Example: -search text("hello") + * Regular expression ("regex(reregular exp)") - Pattern that is used to match multiple strings in the request or response. The pattern may be a PCRE-format regular expression with a delimiter that consists of any printable ASCII non-alphanumeric character except for the underscore (_) and space ( ) that is not otherwise used in the expression. Example: -search regex(re~^hello*~) The preceding regular expression can use the tilde (~) as the delimiter because that character does not appear in the regular expression itself. + * XPath ("xpath(xpxpath expression)") - An XPath expression to search XML. The delimiter has the same rules as for regex. Example: -search xpath(xp%/a/b%) + * JSON ("xpath_json(xpxpath expression)") - An XPath expression to search JSON. The delimiter has the same rules as for regex. Example: -search xpath_json(xp%/a/b%) + NOTE: JSON searches use the same syntax as XPath searches, but operate on JSON files instead of standard XML files. + * HTML ("xpath_html(xpxpath expression)") - An XPath expression to search HTML. The delimiter has the same rules as for regex. Example: -search xpath_html(xp%/html/body%) + NOTE: HTML searches use the same syntax as XPath searches, but operate on HTML files instead of standard XML files; HTML 5 rules for the file syntax are used; HTML 4 and later are supported. + * Patset ("patset(patset)") - A predefined pattern set. Example: -search patset("patset1"). + * Datset ("dataset(dataset)") - A predefined dataset. Example: -search dataset("dataset1"). + * AVP ("avp(avp number)") - AVP number that is used to match multiple AVPs in a Diameter/Radius Message. Example: -search avp(999) + Note: for all these the TARGET prefix can be used in the replacement expression to specify the text that was selected by the -search parameter, optionally adjusted by the -refineSearch parameter. + Example: TARGET.BEFORE_STR(",") + */ + Search string `json:"search,omitempty"` + /** + * Bypass the safety check and allow unsafe expressions. An unsafe expression is one that contains references to message elements that might not be present in all messages. If an expression refers to a missing request element, an empty string is used instead. + */ + Bypasssafetycheck string `json:"bypasssafetycheck,omitempty"` + /** + * Specify additional criteria to refine the results of the search. + Always starts with the "extend(m,n)" operation, where 'm' specifies number of bytes to the left of selected data and 'n' specifies number of bytes to the right of selected data to extend the selected area. + You can use refineSearch only on body expressions, and for the INSERT_BEFORE_ALL, INSERT_AFTER_ALL, REPLACE_ALL, and DELETE_ALL action types. + Example: -refineSearch 'EXTEND(10, 20).REGEX_SELECT(re~0x[0-9a-zA-Z]+~). + */ + Refinesearch string `json:"refinesearch,omitempty"` + /** + * Comment. Can be used to preserve information about this rewrite action. + */ + Comment string `json:"comment,omitempty"` + /** + * New name for the rewrite action. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the rewrite policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rewrite action" or 'my rewrite action'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Description string `json:"description,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_binding.go new file mode 100644 index 000000000..88894525b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding object which returns the resources bound to rewriteglobal_binding. +*/ +type Rewriteglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_policy_binding.go new file mode 100644 index 000000000..d0a36e68e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_policy_binding.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the policy that can be bound to rewriteglobal. +*/ +type Rewriteglobalpolicybinding struct { + /** + * Name of the rewrite policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The bindpoint to which to policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * resvserver - Forward the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server to which to forward the request of response. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * flowtype of the bound rewrite policy. + */ + Flowtype uint32 `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go new file mode 100644 index 000000000..6aa0aeb51 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Configuration for rewrite parameter resource. +*/ +type Rewriteparam struct { + /** + * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an error condition in evaluating the expression. + Available settings function as follows: + * NOREWRITE - Do not modify the message. + * RESET - Reset the connection and notify the user's browser, so that the user can resend the request. + * DROP - Drop the message without sending a response to the user. + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Maximum time in milliseconds to allow for processing all the policies and their selected actions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. Note that some rewrites may have already been performed. + */ + Timeout uint32 `json:"timeout,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy.go new file mode 100644 index 000000000..82b1bedfd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Configuration for rewrite policy resource. +*/ +type Rewritepolicy struct { + /** + * Name for the rewrite policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the rewrite policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rewrite policy" or 'my rewrite policy'). + */ + Name string `json:"name,omitempty"` + /** + * Expression against which traffic is evaluated. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the rewrite action to perform if the request or response matches this rewrite policy. + There are also some built-in actions which can be used. These are: + * NOREWRITE - Send the request from the client to the server or response from the server to the client without making any changes in the message. + * RESET - Resets the client connection by closing it. The client program, such as a browser, will handle this and may inform the user. The client may then resend the request if desired. + * DROP - Drop the request without sending a response to the user. + */ + Action string `json:"action,omitempty"` + /** + * Action to perform if the result of policy evaluation is undefined (UNDEF). An UNDEF event indicates an internal error condition. Only the above built-in actions can be used. + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Any comments to preserve information about this rewrite policy. + */ + Comment string `json:"comment,omitempty"` + /** + * Name of messagelog action to use when a request matches this policy. + */ + Logaction string `json:"logaction,omitempty"` + /** + * New name for the rewrite policy. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rewrite policy" or 'my rewrite policy'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Description string `json:"description,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_binding.go new file mode 100644 index 000000000..c71c09733 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding object which returns the resources bound to rewritepolicy_binding. +*/ +type Rewritepolicybinding struct { + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_global_binding.go new file mode 100644 index 000000000..ba0985e6f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_global_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the global that can be bound to rewritepolicy. +*/ +type Rewritepolicyglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_policylabel_binding.go new file mode 100644 index 000000000..eaaaad614 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the policylabel that can be bound to rewritepolicy. +*/ +type Rewritepolicypolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vserver_binding.go new file mode 100644 index 000000000..f948e7872 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the vserver that can be bound to rewritepolicy. +*/ +type Rewritepolicyvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel.go new file mode 100644 index 000000000..fa74535d4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel.go @@ -0,0 +1,75 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Configuration for rewrite policy label resource. +*/ +type Rewritepolicylabel struct { + /** + * Name for the rewrite policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the rewrite policy label is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my rewrite policy label" or 'my rewrite policy label'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Types of transformations allowed by the policies bound to the label. For Rewrite, the following types are supported: + * http_req - HTTP requests + * http_res - HTTP responses + * othertcp_req - Non-HTTP TCP requests + * othertcp_res - Non-HTTP TCP responses + * url - URLs + * text - Text strings + * clientless_vpn_req - Citrix ADC clientless VPN requests + * clientless_vpn_res - Citrix ADC clientless VPN responses + * sipudp_req - SIP requests + * sipudp_res - SIP responses + * diameter_req - DIAMETER requests + * diameter_res - DIAMETER responses + * radius_req - RADIUS requests + * radius_res - RADIUS responses + * dns_req - DNS requests + * dns_res - DNS responses + */ + Transform string `json:"transform,omitempty"` + /** + * Any comments to preserve information about this rewrite policy label. + */ + Comment string `json:"comment,omitempty"` + /** + * New name for the rewrite policy label. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) hash (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy label" or 'my policy label'). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_binding.go new file mode 100644 index 000000000..08be35283 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding object which returns the resources bound to rewritepolicylabel_binding. +*/ +type Rewritepolicylabelbinding struct { + /** + * Name of the rewrite policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policy_binding.go new file mode 100644 index 000000000..a01a95f30 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policy_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the policy that can be bound to rewritepolicylabel. +*/ +type Rewritepolicylabelpolicybinding struct { + /** + * Name of the rewrite policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * resvserver - Forward the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server to which to forward the request or response. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the rewrite policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go new file mode 100644 index 000000000..7119aefdf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the policybinding that can be bound to rewritepolicylabel. +*/ +type Rewritepolicylabelpolicybindingbinding struct { + /** + * Name of the rewrite policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * resvserver - Forward the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server to which to forward the request or response. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the rewrite policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go new file mode 100644 index 000000000..879cb8034 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package router + +/** +* Configuration for dynamic routing config resource. +*/ +type Routerdynamicrouting struct { + /** + * command to be executed + */ + Commandstring string `json:"commandstring,omitempty"` + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Output string `json:"output,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslaction.go new file mode 100644 index 000000000..96416e519 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslaction.go @@ -0,0 +1,147 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL action resource. +*/ +type Sslaction struct { + /** + * Name for the SSL action. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the action is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my action" or 'my action'). + */ + Name string `json:"name,omitempty"` + /** + * Perform client certificate authentication. + */ + Clientauth string `json:"clientauth,omitempty"` + /** + * Client certificate verification is mandatory or optional. + */ + Clientcertverification string `json:"clientcertverification,omitempty"` + /** + * The name of the ssllogprofile. + */ + Ssllogprofile string `json:"ssllogprofile,omitempty"` + /** + * Insert the entire client certificate into the HTTP header of the request being sent to the web server. The certificate is inserted in ASCII (PEM) format. + */ + Clientcert string `json:"clientcert,omitempty"` + /** + * Name of the header into which to insert the client certificate. + */ + Certheader string `json:"certheader,omitempty"` + /** + * Insert the entire client serial number into the HTTP header of the request being sent to the web server. + */ + Clientcertserialnumber string `json:"clientcertserialnumber,omitempty"` + /** + * Name of the header into which to insert the client serial number. + */ + Certserialheader string `json:"certserialheader,omitempty"` + /** + * Insert the client certificate subject, also known as the distinguished name (DN), into the HTTP header of the request being sent to the web server. + */ + Clientcertsubject string `json:"clientcertsubject,omitempty"` + /** + * Name of the header into which to insert the client certificate subject. + */ + Certsubjectheader string `json:"certsubjectheader,omitempty"` + /** + * Insert the certificate's signature into the HTTP header of the request being sent to the web server. The signature is the value extracted directly from the X.509 certificate signature field. All X.509 certificates contain a signature field. + */ + Clientcerthash string `json:"clientcerthash,omitempty"` + /** + * Name of the header into which to insert the client certificate signature (hash). + */ + Certhashheader string `json:"certhashheader,omitempty"` + /** + * Insert the certificate's fingerprint into the HTTP header of the request being sent to the web server. The fingerprint is derived by computing the specified hash value (SHA256, for example) of the DER-encoding of the client certificate. + */ + Clientcertfingerprint string `json:"clientcertfingerprint,omitempty"` + /** + * Name of the header into which to insert the client certificate fingerprint. + */ + Certfingerprintheader string `json:"certfingerprintheader,omitempty"` + /** + * Digest algorithm used to compute the fingerprint of the client certificate. + */ + Certfingerprintdigest string `json:"certfingerprintdigest,omitempty"` + /** + * Insert the certificate issuer details into the HTTP header of the request being sent to the web server. + */ + Clientcertissuer string `json:"clientcertissuer,omitempty"` + /** + * Name of the header into which to insert the client certificate issuer details. + */ + Certissuerheader string `json:"certissuerheader,omitempty"` + /** + * Insert the SSL session ID into the HTTP header of the request being sent to the web server. Every SSL connection that the client and the Citrix ADC share has a unique ID that identifies the specific connection. + */ + Sessionid string `json:"sessionid,omitempty"` + /** + * Name of the header into which to insert the Session ID. + */ + Sessionidheader string `json:"sessionidheader,omitempty"` + /** + * Insert the cipher suite that the client and the Citrix ADC negotiated for the SSL session into the HTTP header of the request being sent to the web server. The appliance inserts the cipher-suite name, SSL protocol, export or non-export string, and cipher strength bit, depending on the type of browser connecting to the SSL virtual server or service (for example, Cipher-Suite: RC4- MD5 SSLv3 Non-Export 128-bit). + */ + Cipher string `json:"cipher,omitempty"` + /** + * Name of the header into which to insert the name of the cipher suite. + */ + Cipherheader string `json:"cipherheader,omitempty"` + /** + * Insert the date from which the certificate is valid into the HTTP header of the request being sent to the web server. Every certificate is configured with the date and time from which it is valid. + */ + Clientcertnotbefore string `json:"clientcertnotbefore,omitempty"` + /** + * Name of the header into which to insert the date and time from which the certificate is valid. + */ + Certnotbeforeheader string `json:"certnotbeforeheader,omitempty"` + /** + * Insert the date of expiry of the certificate into the HTTP header of the request being sent to the web server. Every certificate is configured with the date and time at which the certificate expires. + */ + Clientcertnotafter string `json:"clientcertnotafter,omitempty"` + /** + * Name of the header into which to insert the certificate's expiry date. + */ + Certnotafterheader string `json:"certnotafterheader,omitempty"` + /** + * If the appliance is in front of an Outlook Web Access (OWA) server, insert a special header field, FRONT-END-HTTPS: ON, into the HTTP requests going to the OWA server. This header communicates to the server that the transaction is HTTPS and not HTTP. + */ + Owasupport string `json:"owasupport,omitempty"` + /** + * This action takes an argument a vserver name, to this vserver one will be able to forward all the packets. + */ + Forward string `json:"forward,omitempty"` + /** + * This action will allow to pick CA(s) from the specific CA group, to verify the client certificate. + */ + Cacertgrpname string `json:"cacertgrpname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Referencecount string `json:"referencecount,omitempty"` + Description string `json:"description,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup.go new file mode 100644 index 000000000..29b2e2c12 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Group of CA certificate-key pairs resource. +*/ +type Sslcacertgroup struct { + /** + * Name given to the CA certificate group. The name will be used to add the CA certificates to the group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Cacertgroupname string `json:"cacertgroupname,omitempty"` + + //------- Read only Parameter ---------; + + Cacertgroupreferences string `json:"cacertgroupreferences,omitempty"` + Ocspcheck string `json:"ocspcheck,omitempty"` + Crlcheck string `json:"crlcheck,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_binding.go new file mode 100644 index 000000000..0ea99aaee --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslcacertgroup_binding. +*/ +type Sslcacertgroupbinding struct { + /** + * Name of the CA certificate group for which to show detailed information.
Minimum value = + */ + Cacertgroupname string `json:"cacertgroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_certkey_binding.go new file mode 100644 index 000000000..4b6195c0f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_certkey_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslcacertgroup. +*/ +type Sslcacertgroupcertkeybinding struct { + /** + * Name for the certkey added to the Citrix ADC. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the certificate-key pair is created.The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cert" or 'my cert'). + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Name given to the CA certificate group. The name will be used to add the CA certificates to the group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Cacertgroupname string `json:"cacertgroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go new file mode 100644 index 000000000..19ffdeac5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go @@ -0,0 +1,87 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for cerificate resource. +*/ +type Sslcert struct { + /** + * Name for and, optionally, path to the generated certificate file. /nsconfig/ssl/ is the default path. + */ + Certfile string `json:"certfile,omitempty"` + /** + * Name for and, optionally, path to the certificate-signing request (CSR). /nsconfig/ssl/ is the default path. + */ + Reqfile string `json:"reqfile,omitempty"` + /** + * Type of certificate to generate. Specify one of the following: + * ROOT_CERT - Self-signed Root-CA certificate. You must specify the key file name. The generated Root-CA certificate can be used for signing end-user client or server certificates or to create Intermediate-CA certificates. + * INTM_CERT - Intermediate-CA certificate. + * CLNT_CERT - End-user client certificate used for client authentication. + * SRVR_CERT - SSL server certificate used on SSL servers for end-to-end encryption. + */ + Certtype string `json:"certtype,omitempty"` + /** + * Name for and, optionally, path to the private key. You can either use an existing RSA or DSA key that you own or create a new private key on the Citrix ADC. This file is required only when creating a self-signed Root-CA certificate. The key file is stored in the /nsconfig/ssl directory by default. + If the input key specified is an encrypted key, you are prompted to enter the PEM pass phrase that was used for encrypting the key. + */ + Keyfile string `json:"keyfile,omitempty"` + /** + * Format in which the key is stored on the appliance. + */ + Keyform string `json:"keyform,omitempty"` + Pempassphrase string `json:"pempassphrase,omitempty"` + /** + * Number of days for which the certificate will be valid, beginning with the time and day (system time) of creation. + */ + Days uint32 `json:"days,omitempty"` + /** + * Subject Alternative Name (SAN) is an extension to X.509 that allows various values to be associated with a security certificate using a subjectAltName field. These values are called "Subject Alternative Names" (SAN). Names include: + 1. Email addresses + 2. IP addresses + 3. URIs + 4. DNS names (This is usually also provided as the Common Name RDN within the Subject field of the main certificate.) + 5. directory names (alternative Distinguished Names to that given in the Subject) + */ + Subjectaltname string `json:"subjectaltname,omitempty"` + /** + * Format in which the certificate is stored on the appliance. + */ + Certform string `json:"certform,omitempty"` + /** + * Name of the CA certificate file that issues and signs the Intermediate-CA certificate or the end-user client and server certificates. + */ + Cacert string `json:"cacert,omitempty"` + /** + * Format of the CA certificate. + */ + Cacertform string `json:"cacertform,omitempty"` + /** + * Private key, associated with the CA certificate that is used to sign the Intermediate-CA certificate or the end-user client and server certificate. If the CA key file is password protected, the user is prompted to enter the pass phrase that was used to encrypt the key. + */ + Cakey string `json:"cakey,omitempty"` + /** + * Format for the CA certificate. + */ + Cakeyform string `json:"cakeyform,omitempty"` + /** + * Serial number file maintained for the CA certificate. This file contains the serial number of the next certificate to be issued or signed by the CA. If the specified file does not exist, a new file is created, with /nsconfig/ssl/ as the default path. If you do not specify a proper path for the existing serial file, a new serial file is created. This might change the certificate serial numbers assigned by the CA certificate to each of the certificates it signs. + */ + Caserial string `json:"caserial,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertbundle.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertbundle.go new file mode 100644 index 000000000..7ea0e3b66 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertbundle.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Imported Certbundle resource. +*/ +type Sslcertbundle struct { + /** + * Name to assign to the imported certificate bundle. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Name string `json:"name,omitempty"` + /** + * URL specifying the protocol, host, and path, including file name, to the certificate bundle to be imported or exported. For example, http://www.example.com/cert_bundle_file. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + + //------- Read only Parameter ---------; + + Inuse string `json:"inuse,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain.go new file mode 100644 index 000000000..452752d0a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain.go @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for CERT Chain resource. +*/ +type Sslcertchain struct { + /** + * Name of the Certificate + */ + Certkeyname string `json:"certkeyname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_binding.go new file mode 100644 index 000000000..242e5ab62 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslcertchain_binding. +*/ +type Sslcertchainbinding struct { + /** + * Name of the Certificate.
Minimum value = + */ + Certkeyname string `json:"certkeyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_certkey_binding.go new file mode 100644 index 000000000..345b10b0e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_certkey_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslcertchain. +*/ +type Sslcertchaincertkeybinding struct { + /** + * Name of the Linked Certificate + */ + Linkcertkeyname string `json:"linkcertkeyname,omitempty"` + /** + * Used to find if certificate is linked + */ + Islinked bool `json:"islinked,omitempty"` + /** + * Used to find if certificate is a CA + */ + Isca bool `json:"isca,omitempty"` + /** + * Used to find if certificate is linked + */ + Addsubject bool `json:"addsubject,omitempty"` + /** + * Name of the Certificate + */ + Certkeyname string `json:"certkeyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertfile.go new file mode 100644 index 000000000..d0474c3d9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertfile.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Imported Certfile resource. +*/ +type Sslcertfile struct { + /** + * Name to assign to the imported certificate file. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Name string `json:"name,omitempty"` + /** + * URL specifying the protocol, host, and path, including file name, to the certificate file to be imported. For example, http://www.example.com/cert_file. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertificatechain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertificatechain.go new file mode 100644 index 000000000..caab15343 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertificatechain.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for linked certificate resource. +*/ +type Sslcertificatechain struct { + /** + * Name of the certificate-key pair. + */ + Certkeyname string `json:"certkeyname,omitempty"` + + //------- Read only Parameter ---------; + + Chainlinked string `json:"chainlinked,omitempty"` + Chainpossiblelinks string `json:"chainpossiblelinks,omitempty"` + Chainissuer string `json:"chainissuer,omitempty"` + Chaincomplete string `json:"chaincomplete,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go new file mode 100644 index 000000000..dfbeceae1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go @@ -0,0 +1,113 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for certificate key resource. +*/ +type Sslcertkey struct { + /** + * Name for the certificate and private-key pair. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the certificate-key pair is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cert" or 'my cert'). + */ + Certkey string `json:"certkey,omitempty"` + /** + * Name of and, optionally, path to the X509 certificate file that is used to form the certificate-key pair. The certificate file should be present on the appliance's hard-disk drive or solid-state drive. Storing a certificate in any location other than the default might cause inconsistency in a high availability setup. /nsconfig/ssl/ is the default path. + */ + Cert string `json:"cert,omitempty"` + /** + * Name of and, optionally, path to the private-key file that is used to form the certificate-key pair. The certificate file should be present on the appliance's hard-disk drive or solid-state drive. Storing a certificate in any location other than the default might cause inconsistency in a high availability setup. /nsconfig/ssl/ is the default path. + */ + Key string `json:"key,omitempty"` + /** + * Passphrase that was used to encrypt the private-key. Use this option to load encrypted private-keys in PEM format. + */ + Password bool `json:"password,omitempty"` + /** + * Name of the FIPS key that was created inside the Hardware Security Module (HSM) of a FIPS appliance, or a key that was imported into the HSM. + */ + Fipskey string `json:"fipskey,omitempty"` + /** + * Name of the HSM key that was created in the External Hardware Security Module (HSM) of a FIPS appliance. + */ + Hsmkey string `json:"hsmkey,omitempty"` + /** + * Input format of the certificate and the private-key files. The three formats supported by the appliance are: + PEM - Privacy Enhanced Mail + DER - Distinguished Encoding Rule + PFX - Personal Information Exchange + */ + Inform string `json:"inform,omitempty"` + /** + * Pass phrase used to encrypt the private-key. Required when adding an encrypted private-key in PEM format. + */ + Passplain string `json:"passplain,omitempty"` + /** + * Issue an alert when the certificate is about to expire. + */ + Expirymonitor string `json:"expirymonitor,omitempty"` + /** + * Time, in number of days, before certificate expiration, at which to generate an alert that the certificate is about to expire. + */ + Notificationperiod uint32 `json:"notificationperiod,omitempty"` + /** + * Parse the certificate chain as a single file after linking the server certificate to its issuer's certificate within the file. + */ + Bundle string `json:"bundle,omitempty"` + /** + * Delete cert/key file from file system. + */ + Deletefromdevice bool `json:"deletefromdevice,omitempty"` + /** + * Name of the Certificate Authority certificate-key pair to which to link a certificate-key pair. + */ + Linkcertkeyname string `json:"linkcertkeyname,omitempty"` + /** + * Override the check for matching domain names during a certificate update operation. + */ + Nodomaincheck bool `json:"nodomaincheck,omitempty"` + /** + * Clear cached ocspStapling response in certkey. + */ + Ocspstaplingcache bool `json:"ocspstaplingcache,omitempty"` + + //------- Read only Parameter ---------; + + Signaturealg string `json:"signaturealg,omitempty"` + Certificatetype string `json:"certificatetype,omitempty"` + Serial string `json:"serial,omitempty"` + Issuer string `json:"issuer,omitempty"` + Clientcertnotbefore string `json:"clientcertnotbefore,omitempty"` + Clientcertnotafter string `json:"clientcertnotafter,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + Subject string `json:"subject,omitempty"` + Publickey string `json:"publickey,omitempty"` + Publickeysize string `json:"publickeysize,omitempty"` + Version string `json:"version,omitempty"` + Priority string `json:"priority,omitempty"` + Status string `json:"status,omitempty"` + Passcrypt string `json:"passcrypt,omitempty"` + Data string `json:"data,omitempty"` + Servicename string `json:"servicename,omitempty"` + Sandns string `json:"sandns,omitempty"` + Sanipadd string `json:"sanipadd,omitempty"` + Ocspresponsestatus string `json:"ocspresponsestatus,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_binding.go new file mode 100644 index 000000000..f644bf78d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslcertkey_binding. +*/ +type Sslcertkeybinding struct { + /** + * Name of the certificate-key pair for which to show detailed information.
Minimum value = + */ + Certkey string `json:"certkey,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_crldistribution_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_crldistribution_binding.go new file mode 100644 index 000000000..89b346fc4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_crldistribution_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the crldistribution that can be bound to sslcertkey. +*/ +type Sslcertkeycrldistributionbinding struct { + /** + * Issuer name. + */ + Issuer string `json:"issuer,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_ocspresponder_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_ocspresponder_binding.go new file mode 100644 index 000000000..c930be3bb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_ocspresponder_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ocspresponder that can be bound to sslcertkey. +*/ +type Sslcertkeyocspresponderbinding struct { + /** + * OCSP responders bound to this certkey + */ + Ocspresponder string `json:"ocspresponder,omitempty"` + /** + * ocsp priority + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_profile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_profile_binding.go new file mode 100644 index 000000000..93035e9b4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_profile_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the profile that can be bound to sslcertkey. +*/ +type Sslcertkeyprofilebinding struct { + /** + * SSL profile name to which the certificate key pair is bound. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go new file mode 100644 index 000000000..bf82afeab --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the service that can be bound to sslcertkey. +*/ +type Sslcertkeyservicebinding struct { + /** + * Service name to which the certificate key pair is bound. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Vserver Id + */ + Data uint32 `json:"data,omitempty"` + /** + * Version. + */ + Version int32 `json:"version,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * Bind the certificate to the named SSL service or service group. + */ + Service bool `json:"service,omitempty"` + /** + * The name of the SSL service group to which the certificate-key pair needs to be bound. Use the "add servicegroup" command to create this service. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_vserver_binding.go new file mode 100644 index 000000000..5ad499973 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_vserver_binding.go @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the vserver that can be bound to sslcertkey. +*/ +type Sslcertkeyvserverbinding struct { + /** + * Vserver name to which the certificate key pair is bound. + */ + Servername string `json:"servername,omitempty"` + /** + * Vserver Id + */ + Data uint32 `json:"data,omitempty"` + /** + * Version. + */ + Version int32 `json:"version,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The name of the SSL virtual server name to which the certificate-key pair needs to be bound. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Specify this option to bind the certificate to an SSL virtual server. + Note: The default option is -vServer. + */ + Vserver bool `json:"vserver,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertlink.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertlink.go new file mode 100644 index 000000000..d62725266 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertlink.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for linked certificate resource. +*/ +type Sslcertlink struct { + + //------- Read only Parameter ---------; + + Certkeyname string `json:"certkeyname,omitempty"` + Linkcertkeyname string `json:"linkcertkeyname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertreq.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertreq.go new file mode 100644 index 000000000..617a9d10f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertreq.go @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for certificate request resource. +*/ +type Sslcertreq struct { + /** + * Name for and, optionally, path to the certificate signing request (CSR). /nsconfig/ssl/ is the default path. + */ + Reqfile string `json:"reqfile,omitempty"` + /** + * Name of and, optionally, path to the private key used to create the certificate signing request, which then becomes part of the certificate-key pair. The private key can be either an RSA or a DSA key. The key must be present in the appliance's local storage. /nsconfig/ssl is the default path. + */ + Keyfile string `json:"keyfile,omitempty"` + /** + * Subject Alternative Name (SAN) is an extension to X.509 that allows various values to be associated with a security certificate using a subjectAltName field. These values are called "Subject Alternative Names" (SAN). Names include: + 1. Email addresses + 2. IP addresses + 3. URIs + 4. DNS names (this is usually also provided as the Common Name RDN within the Subject field of the main certificate.) + 5. Directory names (alternative Distinguished Names to that given in the Subject) + */ + Subjectaltname string `json:"subjectaltname,omitempty"` + /** + * Name of the FIPS key used to create the certificate signing request. FIPS keys are created inside the Hardware Security Module of the FIPS card. + */ + Fipskeyname string `json:"fipskeyname,omitempty"` + /** + * Format in which the key is stored on the appliance. + */ + Keyform string `json:"keyform,omitempty"` + Pempassphrase string `json:"pempassphrase,omitempty"` + /** + * Two letter ISO code for your country. For example, US for United States. + */ + Countryname string `json:"countryname,omitempty"` + /** + * Full name of the state or province where your organization is located. + Do not abbreviate. + */ + Statename string `json:"statename,omitempty"` + /** + * Name of the organization that will use this certificate. The organization name (corporation, limited partnership, university, or government agency) must be registered with some authority at the national, state, or city level. Use the legal name under which the organization is registered. + Do not abbreviate the organization name and do not use the following characters in the name: + Angle brackets (< >) tilde (~), exclamation mark, at (@), pound (#), zero (0), caret (^), asterisk (*), forward slash (/), square brackets ([ ]), question mark (?). + */ + Organizationname string `json:"organizationname,omitempty"` + /** + * Name of the division or section in the organization that will use the certificate. + */ + Organizationunitname string `json:"organizationunitname,omitempty"` + /** + * Name of the city or town in which your organization's head office is located. + */ + Localityname string `json:"localityname,omitempty"` + /** + * Fully qualified domain name for the company or web site. The common name must match the name used by DNS servers to do a DNS lookup of your server. Most browsers use this information for authenticating the server's certificate during the SSL handshake. If the server name in the URL does not match the common name as given in the server certificate, the browser terminates the SSL handshake or prompts the user with a warning message. + Do not use wildcard characters, such as asterisk (*) or question mark (?), and do not use an IP address as the common name. The common name must not contain the protocol specifier or . + */ + Commonname string `json:"commonname,omitempty"` + /** + * Contact person's e-mail address. This address is publically displayed as part of the certificate. Provide an e-mail address that is monitored by an administrator who can be contacted about the certificate. + */ + Emailaddress string `json:"emailaddress,omitempty"` + /** + * Pass phrase, embedded in the certificate signing request that is shared only between the client or server requesting the certificate and the SSL certificate issuer (typically the certificate authority). This pass phrase can be used to authenticate a client or server that is requesting a certificate from the certificate authority. + */ + Challengepassword string `json:"challengepassword,omitempty"` + /** + * Additional name for the company or web site. + */ + Companyname string `json:"companyname,omitempty"` + /** + * Digest algorithm used in creating CSR + */ + Digestmethod string `json:"digestmethod,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go new file mode 100644 index 000000000..5b635f7df --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for cipher resource. +*/ +type Sslcipher struct { + /** + * Name for the user-defined cipher group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the cipher group is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my ciphergroup" or 'my ciphergroup'). + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The individual cipher name(s), a user-defined cipher group, or a system predefined cipher alias that will be added to the predefined cipher alias that will be added to the group cipherGroupName. + If a cipher alias or a cipher group is specified, all the individual ciphers in the cipher alias or group will be added to the user-defined cipher group. + */ + Ciphgrpalias string `json:"ciphgrpalias,omitempty"` + /** + * Cipher name. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * This indicates priority assigned to the particular cipher + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * Name of the profile to which cipher is attached. + */ + Sslprofile string `json:"sslprofile,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_binding.go new file mode 100644 index 000000000..432ff8f34 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslcipher_binding. +*/ +type Sslcipherbinding struct { + /** + * Name of the cipher group for which to show detailed information.
Minimum value = + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_ciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_ciphersuite_binding.go new file mode 100644 index 000000000..843cfa91c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_ciphersuite_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ciphersuite that can be bound to sslcipher. +*/ +type Sslcipherciphersuitebinding struct { + /** + * Cipher name. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * Name for the user-defined cipher group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the cipher group is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my ciphergroup" or 'my ciphergroup'). + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * Cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * This indicates priority assigned to the particular cipher + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go new file mode 100644 index 000000000..6bf500d27 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the individualcipher that can be bound to sslcipher. +*/ +type Sslcipherindividualcipherbinding struct { + /** + * Cipher name. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * Cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * This indicates priority assigned to the particular cipher + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_profile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_profile_binding.go new file mode 100644 index 000000000..3081e869d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_profile_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the profile that can be bound to sslcipher. +*/ +type Sslcipherprofilebinding struct { + /** + * Name of the profile to which cipher is attached. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go new file mode 100644 index 000000000..aa722cac7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the service that can be bound to sslcipher. +*/ +type Sslcipherservicebinding struct { + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The name of the SSL service name to which the cipher-suite is to be bound. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Indicates that the cipher operation is to be performed on the named SSL service or service group. + */ + Service bool `json:"service,omitempty"` + /** + * The name of the SSL service name to which the cipher-suite is to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Indicates that the cipher operation is to be performed on the named SSL service or service group. + */ + Servicegroup bool `json:"servicegroup,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go new file mode 100644 index 000000000..5f4d85d18 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the servicegroup that can be bound to sslcipher. +*/ +type Sslcipherservicegroupbinding struct { + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The name of the SSL service name to which the cipher-suite is to be bound. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Indicates that the cipher operation is to be performed on the named SSL service or service group. + */ + Service bool `json:"service,omitempty"` + /** + * The name of the SSL service name to which the cipher-suite is to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Indicates that the cipher operation is to be performed on the named SSL service or service group. + */ + Servicegroup bool `json:"servicegroup,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_vserver_binding.go new file mode 100644 index 000000000..c5c1578bc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_vserver_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the vserver that can be bound to sslcipher. +*/ +type Sslciphervserverbinding struct { + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The name of the SSL virtual server to which the cipher-suite is to be bound. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Select the -vServer flag when the cipher + operation is performed on an SSL virtual server. + Note: By default the bind ssl cipher command internally assumes the flag of -vServer argument. Hence, while working with the SSL vserver, you need not specify this flag. + */ + Vserver bool `json:"vserver,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslciphersuite.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslciphersuite.go new file mode 100644 index 000000000..52171a91e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslciphersuite.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for ciphersuite resource. +*/ +type Sslciphersuite struct { + /** + * Name of the cipher suite for which to show detailed information. + */ + Ciphername string `json:"ciphername,omitempty"` + + //------- Read only Parameter ---------; + + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go new file mode 100644 index 000000000..e8208c52a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go @@ -0,0 +1,130 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Certificate Revocation List resource. +*/ +type Sslcrl struct { + /** + * Name for the Certificate Revocation List (CRL). Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the CRL is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my crl" or 'my crl'). + */ + Crlname string `json:"crlname,omitempty"` + /** + * Path to the CRL file. /var/netscaler/ssl/ is the default path. + */ + Crlpath string `json:"crlpath,omitempty"` + /** + * Input format of the CRL file. The two formats supported on the appliance are: + PEM - Privacy Enhanced Mail. + DER - Distinguished Encoding Rule. + */ + Inform string `json:"inform,omitempty"` + /** + * Set CRL auto refresh. + */ + Refresh string `json:"refresh,omitempty"` + /** + * CA certificate that has issued the CRL. Required if CRL Auto Refresh is selected. Install the CA certificate on the appliance before adding the CRL. + */ + Cacert string `json:"cacert,omitempty"` + /** + * Method for CRL refresh. If LDAP is selected, specify the method, CA certificate, base DN, port, and LDAP server name. If HTTP is selected, specify the CA certificate, method, URL, and port. Cannot be changed after a CRL is added. + */ + Method string `json:"method,omitempty"` + /** + * IP address of the LDAP server from which to fetch the CRLs. + */ + Server string `json:"server,omitempty"` + /** + * URL of the CRL distribution point. + */ + Url string `json:"url,omitempty"` + /** + * Port for the LDAP server. + */ + Port int32 `json:"port,omitempty"` + /** + * Base distinguished name (DN), which is used in an LDAP search to search for a CRL. Citrix recommends searching for the Base DN instead of the Issuer Name from the CA certificate, because the Issuer Name field might not exactly match the LDAP directory structure's DN. + */ + Basedn string `json:"basedn,omitempty"` + /** + * Extent of the search operation on the LDAP server. Available settings function as follows: + One - One level below Base DN. + Base - Exactly the same level as Base DN. + */ + Scope string `json:"scope,omitempty"` + /** + * CRL refresh interval. Use the NONE setting to unset this parameter. + */ + Interval string `json:"interval,omitempty"` + /** + * Day on which to refresh the CRL, or, if the Interval parameter is not set, the number of days after which to refresh the CRL. If Interval is set to MONTHLY, specify the date. If Interval is set to WEEKLY, specify the day of the week (for example, Sun=0 and Sat=6). This parameter is not applicable if the Interval is set to DAILY. + */ + Day uint32 `json:"day,omitempty"` + /** + * Time, in hours (1-24) and minutes (1-60), at which to refresh the CRL. + */ + Time string `json:"time,omitempty"` + /** + * Bind distinguished name (DN) to be used to access the CRL object in the LDAP repository if access to the LDAP repository is restricted or anonymous access is not allowed. + */ + Binddn string `json:"binddn,omitempty"` + /** + * Password to access the CRL in the LDAP repository if access to the LDAP repository is restricted or anonymous access is not allowed. + */ + Password string `json:"password,omitempty"` + /** + * Set the LDAP-based CRL retrieval mode to binary. + */ + Binary string `json:"binary,omitempty"` + /** + * Name of and, optionally, path to the CA certificate file. + /nsconfig/ssl/ is the default path. + */ + Cacertfile string `json:"cacertfile,omitempty"` + /** + * Name of and, optionally, path to the CA key file. /nsconfig/ssl/ is the default path + */ + Cakeyfile string `json:"cakeyfile,omitempty"` + /** + * Name of and, optionally, path to the file containing the serial numbers of all the certificates that are revoked. Revoked certificates are appended to the file. /nsconfig/ssl/ is the default path + */ + Indexfile string `json:"indexfile,omitempty"` + /** + * Name of and, optionally, path to the certificate to be revoked. /nsconfig/ssl/ is the default path. + */ + Revoke string `json:"revoke,omitempty"` + /** + * Name of and, optionally, path to the CRL file to be generated. The list of certificates that have been revoked is obtained from the index file. /nsconfig/ssl/ is the default path. + */ + Gencrl string `json:"gencrl,omitempty"` + + //------- Read only Parameter ---------; + + Flags string `json:"flags,omitempty"` + Lastupdatetime string `json:"lastupdatetime,omitempty"` + Version string `json:"version,omitempty"` + Signaturealgo string `json:"signaturealgo,omitempty"` + Issuer string `json:"issuer,omitempty"` + Lastupdate string `json:"lastupdate,omitempty"` + Nextupdate string `json:"nextupdate,omitempty"` + Daystoexpiration string `json:"daystoexpiration,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_binding.go new file mode 100644 index 000000000..6c5931ee1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslcrl_binding. +*/ +type Sslcrlbinding struct { + /** + * Name of the CRL for which to show detailed information.
Minimum value = + */ + Crlname string `json:"crlname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_serialnumber_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_serialnumber_binding.go new file mode 100644 index 000000000..e955ee248 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl_serialnumber_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the serialnumber that can be bound to sslcrl. +*/ +type Sslcrlserialnumberbinding struct { + /** + * Certificate Serial number. + */ + Number string `json:"number,omitempty"` + /** + * Certificate Revocation date + */ + Date string `json:"date,omitempty"` + /** + * Name of the CRL for which to show detailed information. + */ + Crlname string `json:"crlname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrlfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrlfile.go new file mode 100644 index 000000000..54cfb4179 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrlfile.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Imported crl files resource. +*/ +type Sslcrlfile struct { + /** + * Name to assign to the imported CRL file. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Name string `json:"name,omitempty"` + /** + * URL specifying the protocol, host, and path, including file name to the CRL file to be imported. For example, http://www.example.com/crl_file. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhfile.go new file mode 100644 index 000000000..95e3eb3d8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhfile.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for dh imported file resource. +*/ +type Ssldhfile struct { + /** + * Name to assign to the imported DH file. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Name string `json:"name,omitempty"` + /** + * URL specifying the protocol, host, and path, including file name, to the DH file to be imported. For example, http://www.example.com/dh_file. + NOTE: The import fails if the file is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go new file mode 100644 index 000000000..2445716cd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for dh Parameter resource. +*/ +type Ssldhparam struct { + /** + * Name of and, optionally, path to the DH key file. /nsconfig/ssl/ is the default path. + */ + Dhfile string `json:"dhfile,omitempty"` + /** + * Size, in bits, of the DH key being generated. + */ + Bits uint32 `json:"bits,omitempty"` + /** + * Random number required for generating the DH key. Required as part of the DH key generation algorithm. + */ + Gen string `json:"gen,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go new file mode 100644 index 000000000..d9830eb91 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for DTLS profile resource. +*/ +type Ssldtlsprofile struct { + /** + * Name for the DTLS profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@),equals sign (=), and hyphen (-) characters. Cannot be changed after the profile is created. + */ + Name string `json:"name,omitempty"` + /** + * Source for the maximum record size value. If ENABLED, the value is taken from the PMTU table. If DISABLED, the value is taken from the profile. + */ + Pmtudiscovery string `json:"pmtudiscovery,omitempty"` + /** + * Maximum size of records that can be sent if PMTU is disabled. + */ + Maxrecordsize uint32 `json:"maxrecordsize,omitempty"` + /** + * Wait for the specified time, in seconds, before resending the request. + */ + Maxretrytime uint32 `json:"maxretrytime,omitempty"` + /** + * Send a Hello Verify request to validate the client. + */ + Helloverifyrequest string `json:"helloverifyrequest,omitempty"` + /** + * Terminate the session if the message authentication code (MAC) of the client and server do not match. + */ + Terminatesession string `json:"terminatesession,omitempty"` + /** + * Maximum number of packets to reassemble. This value helps protect against a fragmented packet attack. + */ + Maxpacketsize uint32 `json:"maxpacketsize,omitempty"` + /** + * Maximum number of datagrams that can be queued at DTLS layer for processing + */ + Maxholdqlen uint32 `json:"maxholdqlen,omitempty"` + /** + * Maximum number of bad MAC errors to ignore for a connection prior disconnect. Disabling parameter terminateSession terminates session immediately when bad MAC is detected in the connection. + */ + Maxbadmacignorecount uint32 `json:"maxbadmacignorecount,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslecdsakey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslecdsakey.go new file mode 100644 index 000000000..a95d428d9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslecdsakey.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for ecdsa key resource. +*/ +type Sslecdsakey struct { + /** + * Name for and, optionally, path to the ECDSA key file. /nsconfig/ssl/ is the default path. + */ + Keyfile string `json:"keyfile,omitempty"` + /** + * Curve id to generate ECDSA key. Only P_256 and P_384 are supported + */ + Curve string `json:"curve,omitempty"` + /** + * Format in which the ECDSA key file is stored on the appliance. + */ + Keyform string `json:"keyform,omitempty"` + /** + * Encrypt the generated ECDSA key by using the DES algorithm. On the command line, you are prompted to enter the pass phrase (password) that is used to encrypt the key. + */ + Des bool `json:"des,omitempty"` + /** + * Encrypt the generated ECDSA key by using the Triple-DES algorithm. On the command line, you are prompted to enter the pass phrase (password) that is used to encrypt the key. + */ + Des3 bool `json:"des3,omitempty"` + /** + * Encrypt the generated ECDSA key by using the AES algorithm. + */ + Aes256 bool `json:"aes256,omitempty"` + /** + * Pass phrase to use for encryption if DES or DES3 option is selected. + */ + Password string `json:"password,omitempty"` + /** + * Create the private key in PKCS#8 format. + */ + Pkcs8 bool `json:"pkcs8,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfips.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfips.go new file mode 100644 index 000000000..20c491bfa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfips.go @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for fips resource. +*/ +type Sslfips struct { + /** + * FIPS initialization level. The appliance currently supports Level-2 (FIPS 140-2). + */ + Inithsm string `json:"inithsm,omitempty"` + /** + * Security officer password that will be in effect after you have configured the HSM. + */ + Sopassword string `json:"sopassword,omitempty"` + /** + * Old password for the security officer. + */ + Oldsopassword string `json:"oldsopassword,omitempty"` + /** + * The Hardware Security Module's (HSM) User password. + */ + Userpassword string `json:"userpassword,omitempty"` + /** + * Label to identify the Hardware Security Module (HSM). + */ + Hsmlabel string `json:"hsmlabel,omitempty"` + /** + * Path to the FIPS firmware file. + */ + Fipsfw string `json:"fipsfw,omitempty"` + + //------- Read only Parameter ---------; + + Erasedata string `json:"erasedata,omitempty"` + Serial string `json:"serial,omitempty"` + Majorversion string `json:"majorversion,omitempty"` + Minorversion string `json:"minorversion,omitempty"` + Fipshwmajorversion string `json:"fipshwmajorversion,omitempty"` + Fipshwminorversion string `json:"fipshwminorversion,omitempty"` + Fipshwversionstring string `json:"fipshwversionstring,omitempty"` + Flashmemorytotal string `json:"flashmemorytotal,omitempty"` + Flashmemoryfree string `json:"flashmemoryfree,omitempty"` + Sramtotal string `json:"sramtotal,omitempty"` + Sramfree string `json:"sramfree,omitempty"` + Status string `json:"status,omitempty"` + Flag string `json:"flag,omitempty"` + Serialno string `json:"serialno,omitempty"` + Model string `json:"model,omitempty"` + State string `json:"state,omitempty"` + Firmwarereleasedate string `json:"firmwarereleasedate,omitempty"` + Coresmax string `json:"coresmax,omitempty"` + Coresenabled string `json:"coresenabled,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go new file mode 100644 index 000000000..ad9798af2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for FIPS key resource. +*/ +type Sslfipskey struct { + /** + * Name for the FIPS key. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the FIPS key is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my fipskey" or 'my fipskey'). + */ + Fipskeyname string `json:"fipskeyname,omitempty"` + /** + * Only RSA key and ECDSA Key are supported. + */ + Keytype string `json:"keytype,omitempty"` + /** + * Exponent value for the FIPS key to be created. Available values function as follows: + 3=3 (hexadecimal) + F4=10001 (hexadecimal) + */ + Exponent string `json:"exponent,omitempty"` + /** + * Modulus, in multiples of 64, of the FIPS key to be created. + */ + Modulus uint32 `json:"modulus,omitempty"` + /** + * Only p_256 (prime256v1) and P_384 (secp384r1) are supported. + */ + Curve string `json:"curve,omitempty"` + /** + * Name of and, optionally, path to the key file to be imported. + /nsconfig/ssl/ is the default path. + */ + Key string `json:"key,omitempty"` + /** + * Input format of the key file. Available formats are: + SIM - Secure Information Management; select when importing a FIPS key. If the external FIPS key is encrypted, first decrypt it, and then import it. + PEM - Privacy Enhanced Mail; select when importing a non-FIPS key. + */ + Inform string `json:"inform,omitempty"` + /** + * Name of the wrap key to use for importing the key. Required for importing a non-FIPS key. + */ + Wrapkeyname string `json:"wrapkeyname,omitempty"` + /** + * Initialization Vector (IV) to use for importing the key. Required for importing a non-FIPS key. + */ + Iv string `json:"iv,omitempty"` + + //------- Read only Parameter ---------; + + Size string `json:"size,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimsource.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimsource.go new file mode 100644 index 000000000..f447b9541 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimsource.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for FIPsSIM source resource. +*/ +type Sslfipssimsource struct { + /** + * Name of and, optionally, path to the target FIPS appliance's secret data. /nsconfig/ssl/ is the default path. + */ + Targetsecret string `json:"targetsecret,omitempty"` + /** + * Name for and, optionally, path to the source FIPS appliance's secret data. /nsconfig/ssl/ is the default path. + */ + Sourcesecret string `json:"sourcesecret,omitempty"` + /** + * Name for and, optionally, path to the source FIPS appliance's certificate file. /nsconfig/ssl/ is the default path. + */ + Certfile string `json:"certfile,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimtarget.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimtarget.go new file mode 100644 index 000000000..a33637e4e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipssimtarget.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for FIPS SIM Target resource. +*/ +type Sslfipssimtarget struct { + /** + * Name of and, optionally, path to the target FIPS appliance's key vector. /nsconfig/ssl/ is the default path. + */ + Keyvector string `json:"keyvector,omitempty"` + /** + * Name of and, optionally, path to the source FIPS appliance's secret data. /nsconfig/ssl/ is the default path. + */ + Sourcesecret string `json:"sourcesecret,omitempty"` + /** + * Name of and, optionally, path to the source FIPS appliance's certificate file. /nsconfig/ssl/ is the default path. + */ + Certfile string `json:"certfile,omitempty"` + /** + * Name for and, optionally, path to the target FIPS appliance's secret data. The default input path for the secret data is /nsconfig/ssl/. + */ + Targetsecret string `json:"targetsecret,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_binding.go new file mode 100644 index 000000000..19ca4a720 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslglobal_binding. +*/ +type Sslglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_policy_binding.go new file mode 100644 index 000000000..19b53df17 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_policy_binding.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the policy that can be bound to sslglobal. +*/ +type Sslglobalpolicybinding struct { + /** + * The name for the SSL policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Global bind point to which the policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * The priority of the policy binding. + */ + Priority uint32 `json:"priority,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server, service, or policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Specify virtual server for a policy label associated with a virtual server, or policy label for a user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslhsmkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslhsmkey.go new file mode 100644 index 000000000..03f04d3e4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslhsmkey.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for HSM key resource. +*/ +type Sslhsmkey struct { + Hsmkeyname string `json:"hsmkeyname,omitempty"` + /** + * Type of HSM. + */ + Hsmtype string `json:"hsmtype,omitempty"` + /** + * Name of the key. optionally, for Thales, path to the HSM key file; /var/opt/nfast/kmdata/local/ is the default path. Applies when HSMTYPE is THALES or KEYVAULT. + */ + Key string `json:"key,omitempty"` + /** + * Serial number of the partition on which the key is present. Applies only to SafeNet HSM. + */ + Serialnum string `json:"serialnum,omitempty"` + /** + * Password for a partition. Applies only to SafeNet HSM. + */ + Password string `json:"password,omitempty"` + /** + * Name of keystore object representing HSM where key is stored. For example, name of keyvault object or azurekeyvault authentication object. Applies only to KEYVAULT type HSM. + */ + Keystore string `json:"keystore,omitempty"` + + //------- Read only Parameter ---------; + + State string `json:"state,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslkeyfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslkeyfile.go new file mode 100644 index 000000000..713d48cb3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslkeyfile.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for Imported ssl key files resource. +*/ +type Sslkeyfile struct { + /** + * Name to assign to the imported key file. Must begin with an ASCII alphanumeric or underscore(_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@),equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Name string `json:"name,omitempty"` + /** + * URL specifying the protocol, host, and path, including file name, to the key file to be imported. For example, http://www.example.com/key_file. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + Password string `json:"password,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssllogprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssllogprofile.go new file mode 100644 index 000000000..6df58cafe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssllogprofile.go @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL logging Profile resource. +*/ +type Ssllogprofile struct { + /** + * The name of the ssllogprofile. + */ + Name string `json:"name,omitempty"` + /** + * log all SSL ClAuth events. + */ + Ssllogclauth string `json:"ssllogclauth,omitempty"` + /** + * log all SSL ClAuth error events. + */ + Ssllogclauthfailures string `json:"ssllogclauthfailures,omitempty"` + /** + * log all SSL HS events. + */ + Sslloghs string `json:"sslloghs,omitempty"` + /** + * log all SSL HS error events. + */ + Sslloghsfailures string `json:"sslloghsfailures,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go new file mode 100644 index 000000000..ac8bf0db5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for OCSP responser resource. +*/ +type Sslocspresponder struct { + /** + * Name for the OCSP responder. Cannot begin with a hash (#) or space character and must contain only ASCII alphanumeric, underscore (_), hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the responder is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my responder" or 'my responder'). + */ + Name string `json:"name,omitempty"` + /** + * URL of the OCSP responder. + */ + Url string `json:"url,omitempty"` + /** + * Enable caching of responses. Caching of responses received from the OCSP responder enables faster responses to the clients and reduces the load on the OCSP responder. + */ + Cache string `json:"cache,omitempty"` + /** + * Timeout for caching the OCSP response. After the timeout, the Citrix ADC sends a fresh request to the OCSP responder for the certificate status. If a timeout is not specified, the timeout provided in the OCSP response applies. + */ + Cachetimeout uint32 `json:"cachetimeout,omitempty"` + /** + * Number of client certificates to batch together into one OCSP request. Batching avoids overloading the OCSP responder. A value of 1 signifies that each request is queried independently. For a value greater than 1, specify a timeout (batching delay) to avoid inordinately delaying the processing of a single certificate. + */ + Batchingdepth uint32 `json:"batchingdepth,omitempty"` + /** + * Maximum time, in milliseconds, to wait to accumulate OCSP requests to batch. Does not apply if the Batching Depth is 1. + */ + Batchingdelay uint32 `json:"batchingdelay,omitempty"` + /** + * Time, in milliseconds, to wait for an OCSP response. When this time elapses, an error message appears or the transaction is forwarded, depending on the settings on the virtual server. Includes Batching Delay time. + */ + Resptimeout uint32 `json:"resptimeout,omitempty"` + /** + * Time, in milliseconds, to wait for an OCSP URL Resolution. When this time elapses, an error message appears or the transaction is forwarded, depending on the settings on the virtual server. + */ + Ocspurlresolvetimeout uint32 `json:"ocspurlresolvetimeout,omitempty"` + Respondercert string `json:"respondercert,omitempty"` + /** + * A certificate to use to validate OCSP responses. Alternatively, if -trustResponder is specified, no verification will be done on the reponse. If both are omitted, only the response times (producedAt, lastUpdate, nextUpdate) will be verified. + */ + Trustresponder bool `json:"trustresponder,omitempty"` + /** + * Time, in seconds, for which the Citrix ADC waits before considering the response as invalid. The response is considered invalid if the Produced At time stamp in the OCSP response exceeds or precedes the current Citrix ADC clock time by the amount of time specified. + */ + Producedattimeskew uint32 `json:"producedattimeskew,omitempty"` + /** + * Certificate-key pair that is used to sign OCSP requests. If this parameter is not set, the requests are not signed. + */ + Signingcert string `json:"signingcert,omitempty"` + /** + * Enable the OCSP nonce extension, which is designed to prevent replay attacks. + */ + Usenonce string `json:"usenonce,omitempty"` + /** + * Include the complete client certificate in the OCSP request. + */ + Insertclientcert string `json:"insertclientcert,omitempty"` + /** + * HTTP method used to send ocsp request. POST is the default httpmethod. If request length is > 255, POST wil be used even if GET is set as httpMethod + */ + Httpmethod string `json:"httpmethod,omitempty"` + + //------- Read only Parameter ---------; + + Ocspaiarefcount string `json:"ocspaiarefcount,omitempty"` + Ocspipaddrstr string `json:"ocspipaddrstr,omitempty"` + Port string `json:"port,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go new file mode 100644 index 000000000..b7b6c23f0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go @@ -0,0 +1,162 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL parameter resource. +*/ +type Sslparameter struct { + /** + * Amount of data to collect before the data is pushed to the crypto hardware for encryption. For large downloads, a larger quantum size better utilizes the crypto resources. + */ + Quantumsize string `json:"quantumsize,omitempty"` + /** + * Maximum memory size to use for certificate revocation lists (CRLs). This parameter reserves memory for a CRL but sets a limit to the maximum memory that the CRLs loaded on the appliance can consume. + */ + Crlmemorysizemb uint32 `json:"crlmemorysizemb,omitempty"` + /** + * Enable strict CA certificate checks on the appliance. + */ + Strictcachecks string `json:"strictcachecks,omitempty"` + /** + * Time, in milliseconds, after which encryption is triggered for transactions that are not tracked on the Citrix ADC because their length is not known. There can be a delay of up to 10ms from the specified timeout value before the packet is pushed into the queue. + */ + Ssltriggertimeout uint32 `json:"ssltriggertimeout,omitempty"` + /** + * Send an SSL Close-Notify message to the client at the end of a transaction. + */ + Sendclosenotify string `json:"sendclosenotify,omitempty"` + /** + * Maximum number of queued packets after which encryption is triggered. Use this setting for SSL transactions that send small packets from server to Citrix ADC. + */ + Encrypttriggerpktcount uint32 `json:"encrypttriggerpktcount,omitempty"` + /** + * Deny renegotiation in specified circumstances. Available settings function as follows: + * NO - Allow SSL renegotiation. + * FRONTEND_CLIENT - Deny secure and nonsecure SSL renegotiation initiated by the client. + * FRONTEND_CLIENTSERVER - Deny secure and nonsecure SSL renegotiation initiated by the client or the Citrix ADC during policy-based client authentication. + * ALL - Deny all secure and nonsecure SSL renegotiation. + * NONSECURE - Deny nonsecure SSL renegotiation. Allows only clients that support RFC 5746. + */ + Denysslreneg string `json:"denysslreneg,omitempty"` + /** + * Encoding method used to insert the subject or issuer's name in HTTP requests to servers. + */ + Insertionencoding string `json:"insertionencoding,omitempty"` + /** + * Size, per packet engine, in megabytes, of the OCSP cache. A maximum of 10% of the packet engine memory can be assigned. Because the maximum allowed packet engine memory is 4GB, the maximum value that can be assigned to the OCSP cache is approximately 410 MB. + */ + Ocspcachesize uint32 `json:"ocspcachesize,omitempty"` + /** + * Insert PUSH flag into decrypted, encrypted, or all records. If the PUSH flag is set to a value other than 0, the buffered records are forwarded on the basis of the value of the PUSH flag. Available settings function as follows: + 0 - Auto (PUSH flag is not set.) + 1 - Insert PUSH flag into every decrypted record. + 2 -Insert PUSH flag into every encrypted record. + 3 - Insert PUSH flag into every decrypted and encrypted record. + */ + Pushflag uint32 `json:"pushflag,omitempty"` + /** + * Host header check for SNI enabled sessions. If this check is enabled and the HTTP request does not contain the host header for SNI enabled sessions(i.e vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension), the request is dropped. + */ + Dropreqwithnohostheader string `json:"dropreqwithnohostheader,omitempty"` + /** + * Controls how the HTTP 'Host' header value is validated. These checks are performed only if the session is SNI enabled (i.e when vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension) and HTTP request contains 'Host' header. + Available settings function as follows: + CERT - Request is forwarded if the 'Host' value is covered + by the certificate used to establish this SSL session. + Note: 'CERT' matching mode cannot be applied in + TLS 1.3 connections established by resuming from a + previous TLS 1.3 session. On these connections, 'STRICT' + matching mode will be used instead. + STRICT - Request is forwarded only if value of 'Host' header + in HTTP is identical to the 'Server name' value passed + in 'Client Hello' of the SSL connection. + NO - No validation is performed on the HTTP 'Host' + header value. + */ + Snihttphostmatch string `json:"snihttphostmatch,omitempty"` + /** + * PUSH encryption trigger timeout value. The timeout value is applied only if you set the Push Encryption Trigger parameter to Timer in the SSL virtual server settings. + */ + Pushenctriggertimeout uint32 `json:"pushenctriggertimeout,omitempty"` + /** + * Limit to the number of disabled SSL chips after which the ADC restarts. A value of zero implies that the ADC does not automatically restart. + */ + Cryptodevdisablelimit uint32 `json:"cryptodevdisablelimit,omitempty"` + /** + * Name of the undefined built-in control action: CLIENTAUTH, NOCLIENTAUTH, NOOP, RESET, or DROP. + */ + Undefactioncontrol string `json:"undefactioncontrol,omitempty"` + /** + * Name of the undefined built-in data action: NOOP, RESET or DROP. + */ + Undefactiondata string `json:"undefactiondata,omitempty"` + /** + * Global parameter used to enable default profile feature. + */ + Defaultprofile string `json:"defaultprofile,omitempty"` + /** + * Citrix ADC CPU utilization threshold (in percentage) beyond which crypto operations are not done in software. + A value of zero implies that CPU is not utilized for doing crypto in software. + */ + Softwarecryptothreshold uint32 `json:"softwarecryptothreshold,omitempty"` + /** + * When this mode is enabled, system will use additional crypto hardware to accelerate symmetric crypto operations. + */ + Hybridfipsmode string `json:"hybridfipsmode,omitempty"` + /** + * Signature Digest Algorithms that are supported by appliance. Default value is "ALL" and it will enable the following algorithms depending on the platform. + On VPX: ECDSA-SHA1 ECDSA-SHA224 ECDSA-SHA256 ECDSA-SHA384 ECDSA-SHA512 RSA-SHA1 RSA-SHA224 RSA-SHA256 RSA-SHA384 RSA-SHA512 DSA-SHA1 DSA-SHA224 DSA-SHA256 DSA-SHA384 DSA-SHA512 + On MPX with Nitrox-III and coleto cards: RSA-SHA1 RSA-SHA224 RSA-SHA256 RSA-SHA384 RSA-SHA512 ECDSA-SHA1 ECDSA-SHA224 ECDSA-SHA256 ECDSA-SHA384 ECDSA-SHA512 + Others: RSA-SHA1 RSA-SHA224 RSA-SHA256 RSA-SHA384 RSA-SHA512. + Note:ALL doesnot include RSA-MD5 for any platform. + */ + Sigdigesttype []string `json:"sigdigesttype,omitempty"` + /** + * Enable or disable dynamically learning and caching the learned information to make the subsequent interception or bypass decision. When enabled, NS does the lookup of this cached data to do early bypass. + */ + Sslierrorcache string `json:"sslierrorcache,omitempty"` + /** + * Specify the maximum memory that can be used for caching the learned data. This memory is used as a LRU cache so that the old entries gets replaced with new entry once the set memory limit is fully utilised. A value of 0 decides the limit automatically. + */ + Sslimaxerrorcachemem uint32 `json:"sslimaxerrorcachemem,omitempty"` + /** + * To insert space between lines in the certificate header of request + */ + Insertcertspace string `json:"insertcertspace,omitempty"` + /** + * Applies when the Citrix ADC appliance acts as a client (back-end connection). + Settings apply as follows: + YES - During certificate verification, ignore the common name if SAN is present in the certificate. + NO - Do not ignore common name. + */ + Ndcppcompliancecertcheck string `json:"ndcppcompliancecertcheck,omitempty"` + /** + * To support both cavium and coleto based platforms in cluster environment, this mode has to be enabled. + */ + Heterogeneoussslhw string `json:"heterogeneoussslhw,omitempty"` + /** + * Limit in percentage of capacity of the crypto operations queue beyond which new SSL connections are not accepted until the queue is reduced. + */ + Operationqueuelimit uint32 `json:"operationqueuelimit,omitempty"` + + //------- Read only Parameter ---------; + + Svctls1112disable string `json:"svctls1112disable,omitempty"` + Montls1112disable string `json:"montls1112disable,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs12.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs12.go new file mode 100644 index 000000000..97779989f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs12.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for pkcs12 resource. +*/ +type Sslpkcs12 struct { + /** + * Name for and, optionally, path to, the output file that contains the certificate and the private key after converting from PKCS#12 to PEM format. /nsconfig/ssl/ is the default path. + If importing, the certificate-key pair is stored in PEM format. If exporting, the certificate-key pair is stored in PKCS#12 format. + */ + Outfile string `json:"outfile,omitempty"` + /** + * Convert the certificate and private-key from PKCS#12 format to PEM format. + */ + Import bool `json:"Import,omitempty"` + /** + * Name for and, optionally, path to, the PKCS#12 file. If importing, specify the input file name that contains the certificate and the private key in PKCS#12 format. If exporting, specify the output file name that contains the certificate and the private key after converting from PEM to + PKCS#12 format. /nsconfig/ssl/ is the default path. + During the import operation, if the key is encrypted, you are prompted to enter the pass phrase used for encrypting the key. + */ + Pkcs12file string `json:"pkcs12file,omitempty"` + /** + * Encrypt the private key by using the DES algorithm in CBC mode during the import operation. On the command line, you are prompted to enter the pass phrase. + */ + Des bool `json:"des,omitempty"` + /** + * Encrypt the private key by using the Triple-DES algorithm in EDE CBC mode (168-bit key) during the import operation. On the command line, you are prompted to enter the pass phrase. + */ + Des3 bool `json:"des3,omitempty"` + /** + * Encrypt the private key by using the AES algorithm (256-bit key) during the import operation. On the command line, you are prompted to enter the pass phrase. + */ + Aes256 bool `json:"aes256,omitempty"` + /** + * Convert the certificate and private key from PEM format to PKCS#12 format. On the command line, you are prompted to enter the pass phrase. + */ + Export bool `json:"export,omitempty"` + /** + * Certificate file to be converted from PEM to PKCS#12 format. + */ + Certfile string `json:"certfile,omitempty"` + /** + * Name of the private key file to be converted from PEM to PKCS#12 format. If the key file is encrypted, you are prompted to enter the pass phrase used for encrypting the key. + */ + Keyfile string `json:"keyfile,omitempty"` + Password string `json:"password,omitempty"` + Pempassphrase string `json:"pempassphrase,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs8.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs8.go new file mode 100644 index 000000000..297d98e04 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpkcs8.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for pkcs8 resource. +*/ +type Sslpkcs8 struct { + /** + * Name for and, optionally, path to, the output file where the PKCS#8 format key file is stored. /nsconfig/ssl/ is the default path. + */ + Pkcs8file string `json:"pkcs8file,omitempty"` + /** + * Name of and, optionally, path to the input key file to be converted from PEM or DER format to PKCS#8 format. /nsconfig/ssl/ is the default path. + */ + Keyfile string `json:"keyfile,omitempty"` + /** + * Format in which the key file is stored on the appliance. + */ + Keyform string `json:"keyform,omitempty"` + /** + * Password to assign to the file if the key is encrypted. Applies only for PEM format files. + */ + Password string `json:"password,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy.go new file mode 100644 index 000000000..46f62b553 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL policy resource. +*/ +type Sslpolicy struct { + /** + * Name for the new SSL policy. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the policy is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). + */ + Name string `json:"name,omitempty"` + /** + * Expression, against which traffic is evaluated. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. + * If the expression itself includes double quotation marks, escape the quotations by using the character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * The name of the action to be performed on the request. Refer to 'add ssl action' command to add a new action. Builtin actions like NOOP, RESET, DROP, CLIENTAUTH and NOCLIENTAUTH are also allowed. + */ + Reqaction string `json:"reqaction,omitempty"` + /** + * Name of the built-in or user-defined action to perform on the request. Available built-in actions are NOOP, RESET, DROP, CLIENTAUTH, NOCLIENTAUTH, INTERCEPT AND BYPASS. + */ + Action string `json:"action,omitempty"` + /** + * Name of the action to be performed when the result of rule evaluation is undefined. Possible values for control policies: CLIENTAUTH, NOCLIENTAUTH, NOOP, RESET, DROP. Possible values for data policies: NOOP, RESET, DROP and BYPASS + */ + Undefaction string `json:"undefaction,omitempty"` + /** + * Any comments associated with this policy. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Undefhits string `json:"undefhits,omitempty"` + Description string `json:"description,omitempty"` + Policytype string `json:"policytype,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_binding.go new file mode 100644 index 000000000..8ab764916 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslpolicy_binding. +*/ +type Sslpolicybinding struct { + /** + * Name of the SSL policy for which to display detailed information.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_global_binding.go new file mode 100644 index 000000000..ba3e58fc8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_global_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the global that can be bound to sslpolicy. +*/ +type Sslpolicyglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_policylabel_binding.go new file mode 100644 index 000000000..58ef008d4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_policylabel_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the policylabel that can be bound to sslpolicy. +*/ +type Sslpolicypolicylabelbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_service_binding.go new file mode 100644 index 000000000..ab551d5f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_service_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the service that can be bound to sslpolicy. +*/ +type Sslpolicyservicebinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_vserver_binding.go new file mode 100644 index 000000000..ae12697a2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_vserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the vserver that can be bound to sslpolicy. +*/ +type Sslpolicyvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority uint32 `json:"priority,omitempty"` + Activepolicy uint32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel.go new file mode 100644 index 000000000..20fdbc549 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL policy label resource. +*/ +type Sslpolicylabel struct { + /** + * Name for the SSL policy label. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the policy label is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my label" or 'my label'). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Type of policies that the policy label can contain. + */ + Type string `json:"type,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Policyname string `json:"policyname,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Invoke string `json:"invoke,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Flowtype string `json:"flowtype,omitempty"` + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_binding.go new file mode 100644 index 000000000..b21fac17b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslpolicylabel_binding. +*/ +type Sslpolicylabelbinding struct { + /** + * Name of the SSL policy label for which to show detailed information. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_policy_binding.go new file mode 100644 index 000000000..a977fb9fb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_policy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the policy that can be bound to sslpolicylabel. +*/ +type Sslpolicylabelpolicybinding struct { + /** + * Name of the SSL policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the SSL policy label to which to bind policies. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Invoke policies bound to a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. + */ + Invoke bool `json:"invoke,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go new file mode 100644 index 000000000..ef74e6116 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go @@ -0,0 +1,337 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL profile resource. +*/ +type Sslprofile struct { + /** + * Name for the SSL profile. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the profile is created. + */ + Name string `json:"name,omitempty"` + /** + * Type of profile. Front end profiles apply to the entity that receives requests from a client. Backend profiles apply to the entity that sends client requests to a server. + */ + Sslprofiletype string `json:"sslprofiletype,omitempty"` + /** + * The name of the ssllogprofile. + */ + Ssllogprofile string `json:"ssllogprofile,omitempty"` + /** + * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. + This parameter is not applicable when configuring a backend profile. Allowed DH count values are 0 and >= 500. + */ + Dhcount uint32 `json:"dhcount,omitempty"` + /** + * State of Diffie-Hellman (DH) key exchange. + This parameter is not applicable when configuring a backend profile. + */ + Dh string `json:"dh,omitempty"` + /** + * The file name and path for the DH parameter. + */ + Dhfile string `json:"dhfile,omitempty"` + /** + * State of Ephemeral RSA (eRSA) key exchange. Ephemeral RSA allows clients that support only export ciphers to communicate with the secure server even if the server certificate does not support export clients. The ephemeral RSA key is automatically generated when you bind an export cipher to an SSL or TCP-based SSL virtual server or service. When you remove the export cipher, the eRSA key is not deleted. It is reused at a later date when another export cipher is bound to an SSL or TCP-based SSL virtual server or service. The eRSA key is deleted when the appliance restarts. + This parameter is not applicable when configuring a backend profile. + */ + Ersa string `json:"ersa,omitempty"` + /** + * The refresh count for the re-generation of RSA public-key and private-key pair. + */ + Ersacount uint32 `json:"ersacount,omitempty"` + /** + * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. + */ + Sessreuse string `json:"sessreuse,omitempty"` + /** + * The Session timeout value in seconds. + */ + Sesstimeout uint32 `json:"sesstimeout,omitempty"` + /** + * State of Cipher Redirect. If this parameter is set to ENABLED, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. + This parameter is not applicable when configuring a backend profile. + */ + Cipherredirect string `json:"cipherredirect,omitempty"` + /** + * The redirect URL to be used with the Cipher Redirect feature. + */ + Cipherurl string `json:"cipherurl,omitempty"` + /** + * State of client authentication. In service-based SSL offload, the service terminates the SSL handshake if the SSL client does not provide a valid certificate. + This parameter is not applicable when configuring a backend profile. + */ + Clientauth string `json:"clientauth,omitempty"` + /** + * The rule for client certificate requirement in client authentication. + */ + Clientcert string `json:"clientcert,omitempty"` + /** + * This option enables the use of NIST recommended (NIST Special Publication 800-56A) bit size for private-key size. For example, for DH params of size 2048bit, the private-key size recommended is 224bits. This is rounded-up to 256bits. + */ + Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` + /** + * State of HTTPS redirects for the SSL service. + For an SSL session, if the client browser receives a redirect message, the browser tries to connect to the new location. However, the secure SSL session breaks if the object has moved from a secure site (https://) to an unsecure site (http://). Typically, a warning message appears on the screen, prompting the user to continue or disconnect. + If SSL Redirect is ENABLED, the redirect message is automatically converted from http:// to https:// and the SSL session does not break. + This parameter is not applicable when configuring a backend profile. + */ + Sslredirect string `json:"sslredirect,omitempty"` + /** + * State of the port rewrite while performing HTTPS redirect. If this parameter is set to ENABLED, and the URL from the server does not contain the standard port, the port is rewritten to the standard. + */ + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + /** + * State of SSLv3 protocol support for the SSL profile. + Note: On platforms with SSL acceleration chips, if the SSL chip does not support SSLv3, this parameter cannot be set to ENABLED. + */ + Ssl3 string `json:"ssl3,omitempty"` + /** + * State of TLSv1.0 protocol support for the SSL profile. + */ + Tls1 string `json:"tls1,omitempty"` + /** + * State of TLSv1.1 protocol support for the SSL profile. + */ + Tls11 string `json:"tls11,omitempty"` + /** + * State of TLSv1.2 protocol support for the SSL profile. + */ + Tls12 string `json:"tls12,omitempty"` + /** + * State of TLSv1.3 protocol support for the SSL profile. + */ + Tls13 string `json:"tls13,omitempty"` + /** + * State of the Server Name Indication (SNI) feature on the virtual server and service-based offload. SNI helps to enable SSL encryption on multiple domains on a single virtual server or service if the domains are controlled by the same organization and share the same second-level domain name. For example, *.sports.net can be used to secure domains such as login.sports.net and help.sports.net. + */ + Snienable string `json:"snienable,omitempty"` + /** + * State of OCSP stapling support on the SSL virtual server. Supported only if the protocol used is higher than SSLv3. Possible values: + ENABLED: The appliance sends a request to the OCSP responder to check the status of the server certificate and caches the response for the specified time. If the response is valid at the time of SSL handshake with the client, the OCSP-based server certificate status is sent to the client during the handshake. + DISABLED: The appliance does not check the status of the server certificate. + */ + Ocspstapling string `json:"ocspstapling,omitempty"` + /** + * State of server authentication support for the SSL Backend profile. + */ + Serverauth string `json:"serverauth,omitempty"` + /** + * Name to be checked against the CommonName (CN) field in the server certificate bound to the SSL server. + */ + Commonname string `json:"commonname,omitempty"` + /** + * Trigger encryption on the basis of the PUSH flag value. Available settings function as follows: + * ALWAYS - Any PUSH packet triggers encryption. + * IGNORE - Ignore PUSH packet for triggering encryption. + * MERGE - For a consecutive sequence of PUSH packets, the last PUSH packet triggers encryption. + * TIMER - PUSH packet triggering encryption is delayed by the time defined in the set ssl parameter command or in the Change Advanced SSL Settings dialog box. + */ + Pushenctrigger string `json:"pushenctrigger,omitempty"` + /** + * Enable sending SSL Close-Notify at the end of a transaction. + */ + Sendclosenotify string `json:"sendclosenotify,omitempty"` + /** + * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. + */ + Cleartextport int32 `json:"cleartextport,omitempty"` + /** + * Encoding method used to insert the subject or issuer's name in HTTP requests to servers. + */ + Insertionencoding string `json:"insertionencoding,omitempty"` + /** + * Deny renegotiation in specified circumstances. Available settings function as follows: + * NO - Allow SSL renegotiation. + * FRONTEND_CLIENT - Deny secure and nonsecure SSL renegotiation initiated by the client. + * FRONTEND_CLIENTSERVER - Deny secure and nonsecure SSL renegotiation initiated by the client or the Citrix ADC during policy-based client authentication. + * ALL - Deny all secure and nonsecure SSL renegotiation. + * NONSECURE - Deny nonsecure SSL renegotiation. Allows only clients that support RFC 5746. + */ + Denysslreneg string `json:"denysslreneg,omitempty"` + /** + * Amount of data to collect before the data is pushed to the crypto hardware for encryption. For large downloads, a larger quantum size better utilizes the crypto resources. + */ + Quantumsize string `json:"quantumsize,omitempty"` + /** + * Enable strict CA certificate checks on the appliance. + */ + Strictcachecks string `json:"strictcachecks,omitempty"` + /** + * Maximum number of queued packets after which encryption is triggered. Use this setting for SSL transactions that send small packets from server to Citrix ADC. + */ + Encrypttriggerpktcount uint32 `json:"encrypttriggerpktcount,omitempty"` + /** + * Insert PUSH flag into decrypted, encrypted, or all records. If the PUSH flag is set to a value other than 0, the buffered records are forwarded on the basis of the value of the PUSH flag. Available settings function as follows: + 0 - Auto (PUSH flag is not set.) + 1 - Insert PUSH flag into every decrypted record. + 2 -Insert PUSH flag into every encrypted record. + 3 - Insert PUSH flag into every decrypted and encrypted record. + */ + Pushflag uint32 `json:"pushflag,omitempty"` + /** + * Host header check for SNI enabled sessions. If this check is enabled and the HTTP request does not contain the host header for SNI enabled sessions(i.e vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension), the request is dropped. + */ + Dropreqwithnohostheader string `json:"dropreqwithnohostheader,omitempty"` + /** + * Controls how the HTTP 'Host' header value is validated. These checks are performed only if the session is SNI enabled (i.e when vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension) and HTTP request contains 'Host' header. + Available settings function as follows: + CERT - Request is forwarded if the 'Host' value is covered + by the certificate used to establish this SSL session. + Note: 'CERT' matching mode cannot be applied in + TLS 1.3 connections established by resuming from a + previous TLS 1.3 session. On these connections, 'STRICT' + matching mode will be used instead. + STRICT - Request is forwarded only if value of 'Host' header + in HTTP is identical to the 'Server name' value passed + in 'Client Hello' of the SSL connection. + NO - No validation is performed on the HTTP 'Host' + header value. + */ + Snihttphostmatch string `json:"snihttphostmatch,omitempty"` + /** + * PUSH encryption trigger timeout value. The timeout value is applied only if you set the Push Encryption Trigger parameter to Timer in the SSL virtual server settings. + */ + Pushenctriggertimeout uint32 `json:"pushenctriggertimeout,omitempty"` + /** + * Time, in milliseconds, after which encryption is triggered for transactions that are not tracked on the Citrix ADC because their length is not known. There can be a delay of up to 10ms from the specified timeout value before the packet is pushed into the queue. + */ + Ssltriggertimeout uint32 `json:"ssltriggertimeout,omitempty"` + /** + * Certficates bound on the VIP are used for validating the client cert. Certficates came along with client cert are not used for validating the client cert + */ + Clientauthuseboundcachain string `json:"clientauthuseboundcachain,omitempty"` + /** + * Enable or disable transparent interception of SSL sessions. + */ + Sslinterception string `json:"sslinterception,omitempty"` + /** + * Enable or disable triggering the client renegotiation when renegotiation request is received from the origin server. + */ + Sslireneg string `json:"sslireneg,omitempty"` + /** + * Enable or disable OCSP check for origin server certificate. + */ + Ssliocspcheck string `json:"ssliocspcheck,omitempty"` + /** + * Maximum ssl session to be cached per dynamic origin server. A unique ssl session is created for each SNI received from the client on ClientHello and the matching session is used for server session reuse. + */ + Sslimaxsessperserver uint32 `json:"sslimaxsessperserver,omitempty"` + /** + * This option enables the use of session tickets, as per the RFC 5077 + */ + Sessionticket string `json:"sessionticket,omitempty"` + /** + * This option sets the life time of session tickets issued by NS in secs + */ + Sessionticketlifetime uint32 `json:"sessionticketlifetime,omitempty"` + /** + * This option enables the use of session tickets, as per the RFC 5077 + */ + Sessionticketkeyrefresh string `json:"sessionticketkeyrefresh,omitempty"` + /** + * Session ticket enc/dec key , admin can set it + */ + Sessionticketkeydata string `json:"sessionticketkeydata,omitempty"` + /** + * This option sets the life time of symm key used to generate session tickets issued by NS in secs + */ + Sessionkeylifetime uint32 `json:"sessionkeylifetime,omitempty"` + /** + * This option sets the life time of symm key used to generate session tickets issued by NS in secs + */ + Prevsessionkeylifetime uint32 `json:"prevsessionkeylifetime,omitempty"` + /** + * State of HSTS protocol support for the SSL profile. Using HSTS, a server can enforce the use of an HTTPS connection for all communication with a client + */ + Hsts string `json:"hsts,omitempty"` + /** + * Set the maximum time, in seconds, in the strict transport security (STS) header during which the client must send only HTTPS requests to the server + */ + Maxage uint32 `json:"maxage,omitempty"` + /** + * Enable HSTS for subdomains. If set to Yes, a client must send only HTTPS requests for subdomains. + */ + Includesubdomains string `json:"includesubdomains,omitempty"` + /** + * Flag indicates the consent of the site owner to have their domain preloaded. + */ + Preload string `json:"preload,omitempty"` + /** + * This flag controls the processing of X509 certificate policies. If this option is Enabled, then the policy check in Client authentication will be skipped. This option can be used only when Client Authentication is Enabled and ClientCert is set to Mandatory + */ + Skipclientcertpolicycheck string `json:"skipclientcertpolicycheck,omitempty"` + /** + * State of TLS 1.3 0-RTT early data support for the SSL Virtual Server. This setting only has an effect if resumption is enabled, as early data cannot be sent along with an initial handshake. + Early application data has significantly different security properties - in particular there is no guarantee that the data cannot be replayed. + */ + Zerorttearlydata string `json:"zerorttearlydata,omitempty"` + /** + * Number of tickets the SSL Virtual Server will issue anytime TLS 1.3 is negotiated, ticket-based resumption is enabled, and either (1) a handshake completes or (2) post-handhsake client auth completes. + This value can be increased to enable clients to open multiple parallel connections using a fresh ticket for each connection. + No tickets are sent if resumption is disabled. + */ + Tls13sessionticketsperauthcontext uint32 `json:"tls13sessionticketsperauthcontext,omitempty"` + /** + * Whether or not the SSL Virtual Server will require a DHE key exchange to occur when a PSK is accepted during a TLS 1.3 resumption handshake. + A DHE key exchange ensures forward secrecy even in the event that ticket keys are compromised, at the expense of an additional round trip and resources required to carry out the DHE key exchange. + If disabled, a DHE key exchange will be performed when a PSK is accepted but only if requested by the client. + If enabled, the server will require a DHE key exchange when a PSK is accepted regardless of whether the client supports combined PSK-DHE key exchange. This setting only has an effect when resumption is enabled. + */ + Dhekeyexchangewithpsk string `json:"dhekeyexchangewithpsk,omitempty"` + /** + * When set to YES, attempt to use the TLS Extended Master Secret (EMS, as + described in RFC 7627) when negotiating TLS 1.0, TLS 1.1 and TLS 1.2 + connection parameters. EMS must be supported by both the TLS client and server + in order to be enabled during a handshake. This setting applies to both + frontend and backend SSL profiles. + */ + Allowextendedmastersecret string `json:"allowextendedmastersecret,omitempty"` + /** + * Application protocol supported by the server and used in negotiation of the protocol with the client. Possible values are HTTP1.1, HTTP2 and NONE. Default value is NONE which implies application protocol is not enabled hence remain unknown to the TLS layer. This parameter is relevant only if SSL connection is handled by the virtual server of the type SSL_TCP. + */ + Alpnprotocol string `json:"alpnprotocol,omitempty"` + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * cipher priority + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * Parameter indicating to check whether peer entity certificate during TLS1.2 handshake is signed with one of signature-hash combination supported by Citrix ADC. + */ + Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` + + //------- Read only Parameter ---------; + + Nonfipsciphers string `json:"nonfipsciphers,omitempty"` + Crlcheck string `json:"crlcheck,omitempty"` + Ocspcheck string `json:"ocspcheck,omitempty"` + Snicert string `json:"snicert,omitempty"` + Skipcaname string `json:"skipcaname,omitempty"` + Invoke string `json:"invoke,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Service string `json:"service,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + Sslpfobjecttype string `json:"sslpfobjecttype,omitempty"` + Ssliverifyservercertforreuse string `json:"ssliverifyservercertforreuse,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_binding.go new file mode 100644 index 000000000..046f4f3c9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslprofile_binding. +*/ +type Sslprofilebinding struct { + /** + * Name of the SSL profile for which to show detailed information.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_certkey_binding.go new file mode 100644 index 000000000..4d979c5dc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_certkey_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslprofile. +*/ +type Sslprofilecertkeybinding struct { + /** + * The certkey (CA certificate + private key) to be used for SSL interception. + */ + Sslicacertkey string `json:"sslicacertkey,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Priority of the cipher binding + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_cipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_cipher_binding.go new file mode 100644 index 000000000..79bc8b7af --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_cipher_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the cipher that can be bound to sslprofile. +*/ +type Sslprofilecipherbinding struct { + /** + * The name of the cipher group/alias/individual cipheri bindings. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * cipher priority + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Name of the cipher. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ciphersuite_binding.go new file mode 100644 index 000000000..8b83cba41 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ciphersuite_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ciphersuite that can be bound to sslprofile. +*/ +type Sslprofileciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * cipher priority + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go new file mode 100644 index 000000000..e3f613c30 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ecccurve that can be bound to sslprofile. +*/ +type Sslprofileecccurvebinding struct { + /** + * Named ECC curve bound to vserver/service. + */ + Ecccurvename string `json:"ecccurvename,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Priority of the cipher binding + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_vserver_binding.go new file mode 100644 index 000000000..39aff9e16 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_vserver_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the vserver that can be bound to sslprofile. +*/ +type Sslprofilevserverbinding struct { + /** + * Service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Priority of the cipher binding + */ + Cipherpriority uint32 `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go new file mode 100644 index 000000000..7aae17ad0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go @@ -0,0 +1,60 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for RSA key resource. +*/ +type Sslrsakey struct { + /** + * Name for and, optionally, path to the RSA key file. /nsconfig/ssl/ is the default path. + */ + Keyfile string `json:"keyfile,omitempty"` + /** + * Size, in bits, of the RSA key. + */ + Bits uint32 `json:"bits,omitempty"` + /** + * Public exponent for the RSA key. The exponent is part of the cipher algorithm and is required for creating the RSA key. + */ + Exponent string `json:"exponent,omitempty"` + /** + * Format in which the RSA key file is stored on the appliance. + */ + Keyform string `json:"keyform,omitempty"` + /** + * Encrypt the generated RSA key by using the DES algorithm. On the command line, you are prompted to enter the pass phrase (password) that is used to encrypt the key. + */ + Des bool `json:"des,omitempty"` + /** + * Encrypt the generated RSA key by using the Triple-DES algorithm. On the command line, you are prompted to enter the pass phrase (password) that is used to encrypt the key. + */ + Des3 bool `json:"des3,omitempty"` + /** + * Encrypt the generated RSA key by using the AES algorithm. + */ + Aes256 bool `json:"aes256,omitempty"` + /** + * Pass phrase to use for encryption if DES or DES3 option is selected. + */ + Password string `json:"password,omitempty"` + /** + * Create the private key in PKCS#8 format. + */ + Pkcs8 bool `json:"pkcs8,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go new file mode 100644 index 000000000..436074072 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go @@ -0,0 +1,187 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL service resource. +*/ +type Sslservice struct { + /** + * Name of the SSL service. + */ + Servicename string `json:"servicename,omitempty"` + /** + * State of Diffie-Hellman (DH) key exchange. This parameter is not applicable when configuring a backend service. + */ + Dh string `json:"dh,omitempty"` + /** + * Name for and, optionally, path to the PEM-format DH parameter file to be installed. /nsconfig/ssl/ is the default path. This parameter is not applicable when configuring a backend service. + */ + Dhfile string `json:"dhfile,omitempty"` + /** + * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. This parameter is not applicable when configuring a backend service. Allowed DH count values are 0 and >= 500. + */ + Dhcount uint32 `json:"dhcount,omitempty"` + /** + * This option enables the use of NIST recommended (NIST Special Publication 800-56A) bit size for private-key size. For example, for DH params of size 2048bit, the private-key size recommended is 224bits. This is rounded-up to 256bits. + */ + Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` + /** + * State of Ephemeral RSA (eRSA) key exchange. Ephemeral RSA allows clients that support only export ciphers to communicate with the secure server even if the server certificate does not support export clients. The ephemeral RSA key is automatically generated when you bind an export cipher to an SSL or TCP-based SSL virtual server or service. When you remove the export cipher, the eRSA key is not deleted. It is reused at a later date when another export cipher is bound to an SSL or TCP-based SSL virtual server or service. The eRSA key is deleted when the appliance restarts. + This parameter is not applicable when configuring a backend service. + */ + Ersa string `json:"ersa,omitempty"` + /** + * Refresh count for regeneration of RSA public-key and private-key pair. Zero (0) specifies infinite usage (no refresh). + This parameter is not applicable when configuring a backend service. + */ + Ersacount uint32 `json:"ersacount,omitempty"` + /** + * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. + */ + Sessreuse string `json:"sessreuse,omitempty"` + /** + * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. + */ + Sesstimeout uint32 `json:"sesstimeout,omitempty"` + /** + * State of Cipher Redirect. If this parameter is set to ENABLED, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. + This parameter is not applicable when configuring a backend service. + */ + Cipherredirect string `json:"cipherredirect,omitempty"` + /** + * URL of the page to which to redirect the client in case of a cipher mismatch. Typically, this page has a clear explanation of the error or an alternative location that the transaction can continue from. + This parameter is not applicable when configuring a backend service. + */ + Cipherurl string `json:"cipherurl,omitempty"` + /** + * State of SSLv2 Redirect. If this parameter is set to ENABLED, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a protocol version mismatch between the virtual server or service and the client. + This parameter is not applicable when configuring a backend service. + */ + Sslv2redirect string `json:"sslv2redirect,omitempty"` + /** + * URL of the page to which to redirect the client in case of a protocol version mismatch. Typically, this page has a clear explanation of the error or an alternative location that the transaction can continue from. + This parameter is not applicable when configuring a backend service. + */ + Sslv2url string `json:"sslv2url,omitempty"` + /** + * State of client authentication. In service-based SSL offload, the service terminates the SSL handshake if the SSL client does not provide a valid certificate. + This parameter is not applicable when configuring a backend service. + */ + Clientauth string `json:"clientauth,omitempty"` + /** + * Type of client authentication. If this parameter is set to MANDATORY, the appliance terminates the SSL handshake if the SSL client does not provide a valid certificate. With the OPTIONAL setting, the appliance requests a certificate from the SSL clients but proceeds with the SSL transaction even if the client presents an invalid certificate. + This parameter is not applicable when configuring a backend SSL service. + Caution: Define proper access control policies before changing this setting to Optional. + */ + Clientcert string `json:"clientcert,omitempty"` + /** + * State of HTTPS redirects for the SSL service. + For an SSL session, if the client browser receives a redirect message, the browser tries to connect to the new location. However, the secure SSL session breaks if the object has moved from a secure site (https://) to an unsecure site (http://). Typically, a warning message appears on the screen, prompting the user to continue or disconnect. + If SSL Redirect is ENABLED, the redirect message is automatically converted from http:// to https:// and the SSL session does not break. + This parameter is not applicable when configuring a backend service. + */ + Sslredirect string `json:"sslredirect,omitempty"` + /** + * State of the port rewrite while performing HTTPS redirect. If this parameter is set to ENABLED, and the URL from the server does not contain the standard port, the port is rewritten to the standard. + */ + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + /** + * State of SSLv2 protocol support for the SSL service. + This parameter is not applicable when configuring a backend service. + */ + Ssl2 string `json:"ssl2,omitempty"` + /** + * State of SSLv3 protocol support for the SSL service. + Note: On platforms with SSL acceleration chips, if the SSL chip does not support SSLv3, this parameter cannot be set to ENABLED. + */ + Ssl3 string `json:"ssl3,omitempty"` + /** + * State of TLSv1.0 protocol support for the SSL service. + */ + Tls1 string `json:"tls1,omitempty"` + /** + * State of TLSv1.1 protocol support for the SSL service. + */ + Tls11 string `json:"tls11,omitempty"` + /** + * State of TLSv1.2 protocol support for the SSL service. + */ + Tls12 string `json:"tls12,omitempty"` + /** + * State of TLSv1.3 protocol support for the SSL service. + */ + Tls13 string `json:"tls13,omitempty"` + /** + * State of DTLSv1.0 protocol support for the SSL service. + */ + Dtls1 string `json:"dtls1,omitempty"` + /** + * State of DTLSv1.2 protocol support for the SSL service. + */ + Dtls12 string `json:"dtls12,omitempty"` + /** + * State of the Server Name Indication (SNI) feature on the virtual server and service-based offload. SNI helps to enable SSL encryption on multiple domains on a single virtual server or service if the domains are controlled by the same organization and share the same second-level domain name. For example, *.sports.net can be used to secure domains such as login.sports.net and help.sports.net. + */ + Snienable string `json:"snienable,omitempty"` + /** + * State of OCSP stapling support on the SSL virtual server. Supported only if the protocol used is higher than SSLv3. Possible values: + ENABLED: The appliance sends a request to the OCSP responder to check the status of the server certificate and caches the response for the specified time. If the response is valid at the time of SSL handshake with the client, the OCSP-based server certificate status is sent to the client during the handshake. + DISABLED: The appliance does not check the status of the server certificate. + */ + Ocspstapling string `json:"ocspstapling,omitempty"` + /** + * State of server authentication support for the SSL service. + */ + Serverauth string `json:"serverauth,omitempty"` + /** + * Name to be checked against the CommonName (CN) field in the server certificate bound to the SSL server + */ + Commonname string `json:"commonname,omitempty"` + /** + * Trigger encryption on the basis of the PUSH flag value. Available settings function as follows: + * ALWAYS - Any PUSH packet triggers encryption. + * IGNORE - Ignore PUSH packet for triggering encryption. + * MERGE - For a consecutive sequence of PUSH packets, the last PUSH packet triggers encryption. + * TIMER - PUSH packet triggering encryption is delayed by the time defined in the set ssl parameter command or in the Change Advanced SSL Settings dialog box. + */ + Pushenctrigger string `json:"pushenctrigger,omitempty"` + /** + * Enable sending SSL Close-Notify at the end of a transaction + */ + Sendclosenotify string `json:"sendclosenotify,omitempty"` + /** + * Name of the DTLS profile that contains DTLS settings for the service. + */ + Dtlsprofilename string `json:"dtlsprofilename,omitempty"` + /** + * Name of the SSL profile that contains SSL settings for the service. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Parameter indicating to check whether peer's certificate during TLS1.2 handshake is signed with one of signature-hash combination supported by Citrix ADC + */ + Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` + + //------- Read only Parameter ---------; + + Nonfipsciphers string `json:"nonfipsciphers,omitempty"` + Service string `json:"service,omitempty"` + Skipcaname string `json:"skipcaname,omitempty"` + Dtlsflag string `json:"dtlsflag,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_binding.go new file mode 100644 index 000000000..864754e38 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslservice_binding. +*/ +type Sslservicebinding struct { + /** + * Name of the SSL service for which to show detailed information.
Minimum value = + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_certkey_binding.go new file mode 100644 index 000000000..910ab29a5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_certkey_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslservice. +*/ +type Sslservicecertkeybinding struct { + /** + * The certificate key pair binding. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The clearTextPort settings. + */ + Cleartextport int32 `json:"cleartextport,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * Rule to use for the OCSP responder associated with the CA certificate during client authentication. If MANDATORY is specified, deny all SSL clients if the OCSP check fails because of connectivity issues with the remote OCSP server, or any other reason that prevents the OCSP check. With the OPTIONAL setting, allow SSL clients even if the OCSP check fails except when the client certificate is revoked. + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The flag is used to indicate whether this particular CA certificate's CA_Name needs to be sent to the SSL client while requesting for client certificate in a SSL handshake + */ + Skipcaname bool `json:"skipcaname,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_cipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_cipher_binding.go new file mode 100644 index 000000000..465ab17b2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_cipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the cipher that can be bound to sslservice. +*/ +type Sslservicecipherbinding struct { + /** + * The cipher group/alias/individual cipher configuration. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Name of the individual cipher, user-defined cipher group, or predefined (built-in) cipher alias. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ciphersuite_binding.go new file mode 100644 index 000000000..717b82b6d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ciphersuite that can be bound to sslservice. +*/ +type Sslserviceciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ecccurve_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ecccurve_binding.go new file mode 100644 index 000000000..4221d41f3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_ecccurve_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ecccurve that can be bound to sslservice. +*/ +type Sslserviceecccurvebinding struct { + /** + * Named ECC curve bound to service/vserver. + */ + Ecccurvename string `json:"ecccurvename,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_policy_binding.go new file mode 100644 index 000000000..55281fe8b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_policy_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the policy that can be bound to sslservice. +*/ +type Sslservicepolicybinding struct { + /** + * The SSL policy binding. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policies bound to this SSL service + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Whether the bound policy is a inherited policy or not + */ + Polinherit uint32 `json:"polinherit,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. This attribute is relevant only for ADVANCED policies + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go new file mode 100644 index 000000000..132ea2963 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL service group resource. +*/ +type Sslservicegroup struct { + /** + * Name of the SSL service group for which to set advanced configuration. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Name of the SSL profile that contains SSL settings for the Service Group. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. + */ + Sessreuse string `json:"sessreuse,omitempty"` + /** + * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. + */ + Sesstimeout uint32 `json:"sesstimeout,omitempty"` + /** + * State of SSLv3 protocol support for the SSL service group. + Note: On platforms with SSL acceleration chips, if the SSL chip does not support SSLv3, this parameter cannot be set to ENABLED. + */ + Ssl3 string `json:"ssl3,omitempty"` + /** + * State of TLSv1.0 protocol support for the SSL service group. + */ + Tls1 string `json:"tls1,omitempty"` + /** + * State of TLSv1.1 protocol support for the SSL service group. + */ + Tls11 string `json:"tls11,omitempty"` + /** + * State of TLSv1.2 protocol support for the SSL service group. + */ + Tls12 string `json:"tls12,omitempty"` + /** + * State of TLSv1.3 protocol support for the SSL service group. + */ + Tls13 string `json:"tls13,omitempty"` + /** + * State of the Server Name Indication (SNI) feature on the service. SNI helps to enable SSL encryption on multiple domains on a single virtual server or service if the domains are controlled by the same organization and share the same second-level domain name. For example, *.sports.net can be used to secure domains such as login.sports.net and help.sports.net. + */ + Snienable string `json:"snienable,omitempty"` + /** + * State of OCSP stapling support on the SSL virtual server. Supported only if the protocol used is higher than SSLv3. Possible values: + ENABLED: The appliance sends a request to the OCSP responder to check the status of the server certificate and caches the response for the specified time. If the response is valid at the time of SSL handshake with the client, the OCSP-based server certificate status is sent to the client during the handshake. + DISABLED: The appliance does not check the status of the server certificate. + */ + Ocspstapling string `json:"ocspstapling,omitempty"` + /** + * State of server authentication support for the SSL service group. + */ + Serverauth string `json:"serverauth,omitempty"` + /** + * Name to be checked against the CommonName (CN) field in the server certificate bound to the SSL server + */ + Commonname string `json:"commonname,omitempty"` + /** + * Enable sending SSL Close-Notify at the end of a transaction + */ + Sendclosenotify string `json:"sendclosenotify,omitempty"` + /** + * Parameter indicating to check whether peer's certificate is signed with one of signature-hash combination supported by Citrix ADC + */ + Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` + + //------- Read only Parameter ---------; + + Dh string `json:"dh,omitempty"` + Dhfile string `json:"dhfile,omitempty"` + Dhcount string `json:"dhcount,omitempty"` + Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` + Ersa string `json:"ersa,omitempty"` + Ersacount string `json:"ersacount,omitempty"` + Cipherredirect string `json:"cipherredirect,omitempty"` + Cipherurl string `json:"cipherurl,omitempty"` + Sslv2redirect string `json:"sslv2redirect,omitempty"` + Sslv2url string `json:"sslv2url,omitempty"` + Clientauth string `json:"clientauth,omitempty"` + Clientcert string `json:"clientcert,omitempty"` + Sslredirect string `json:"sslredirect,omitempty"` + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + Nonfipsciphers string `json:"nonfipsciphers,omitempty"` + Ssl2 string `json:"ssl2,omitempty"` + Ocspcheck string `json:"ocspcheck,omitempty"` + Crlcheck string `json:"crlcheck,omitempty"` + Cleartextport string `json:"cleartextport,omitempty"` + Servicename string `json:"servicename,omitempty"` + Ca string `json:"ca,omitempty"` + Snicert string `json:"snicert,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_binding.go new file mode 100644 index 000000000..9fb02b4bb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslservicegroup_binding. +*/ +type Sslservicegroupbinding struct { + /** + * Name of the SSL service group for which to show detailed information.
Minimum value = + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_certkey_binding.go new file mode 100644 index 000000000..877bed620 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_certkey_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslservicegroup. +*/ +type Sslservicegroupcertkeybinding struct { + /** + * The name of the certificate bound to the SSL service group. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_cipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_cipher_binding.go new file mode 100644 index 000000000..58e24c85b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_cipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the cipher that can be bound to sslservicegroup. +*/ +type Sslservicegroupcipherbinding struct { + /** + * The name of the cipher group/alias/name configured for the SSL service group. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The description of the cipher. + */ + Description string `json:"description,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ciphersuite_binding.go new file mode 100644 index 000000000..b93e209f4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ciphersuite that can be bound to sslservicegroup. +*/ +type Sslservicegroupciphersuitebinding struct { + /** + * The name of the cipher group/alias/name configured for the SSL service group. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The description of the cipher. + */ + Description string `json:"description,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ecccurve_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ecccurve_binding.go new file mode 100644 index 000000000..fa2ebfdf4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_ecccurve_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ecccurve that can be bound to sslservicegroup. +*/ +type Sslservicegroupecccurvebinding struct { + /** + * Named ECC curve bound to servicegroup. + */ + Ecccurvename string `json:"ecccurvename,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go new file mode 100644 index 000000000..09564c988 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go @@ -0,0 +1,211 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for SSL virtual server resource. +*/ +type Sslvserver struct { + /** + * Name of the SSL virtual server for which to set advanced configuration. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. + */ + Cleartextport int32 `json:"cleartextport,omitempty"` + /** + * State of Diffie-Hellman (DH) key exchange. + */ + Dh string `json:"dh,omitempty"` + /** + * Name of and, optionally, path to the DH parameter file, in PEM format, to be installed. /nsconfig/ssl/ is the default path. + */ + Dhfile string `json:"dhfile,omitempty"` + /** + * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. + */ + Dhcount uint32 `json:"dhcount,omitempty"` + /** + * This option enables the use of NIST recommended (NIST Special Publication 800-56A) bit size for private-key size. For example, for DH params of size 2048bit, the private-key size recommended is 224bits. This is rounded-up to 256bits. + */ + Dhkeyexpsizelimit string `json:"dhkeyexpsizelimit,omitempty"` + /** + * State of Ephemeral RSA (eRSA) key exchange. Ephemeral RSA allows clients that support only export ciphers to communicate with the secure server even if the server certificate does not support export clients. The ephemeral RSA key is automatically generated when you bind an export cipher to an SSL or TCP-based SSL virtual server or service. When you remove the export cipher, the eRSA key is not deleted. It is reused at a later date when another export cipher is bound to an SSL or TCP-based SSL virtual server or service. The eRSA key is deleted when the appliance restarts. + */ + Ersa string `json:"ersa,omitempty"` + /** + * Refresh count for regeneration of the RSA public-key and private-key pair. Zero (0) specifies infinite usage (no refresh). + */ + Ersacount uint32 `json:"ersacount,omitempty"` + /** + * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. + */ + Sessreuse string `json:"sessreuse,omitempty"` + /** + * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. + */ + Sesstimeout uint32 `json:"sesstimeout,omitempty"` + /** + * State of Cipher Redirect. If cipher redirect is enabled, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. + */ + Cipherredirect string `json:"cipherredirect,omitempty"` + /** + * The redirect URL to be used with the Cipher Redirect feature. + */ + Cipherurl string `json:"cipherurl,omitempty"` + /** + * State of SSLv2 Redirect. If SSLv2 redirect is enabled, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a protocol version mismatch between the virtual server or service and the client. + */ + Sslv2redirect string `json:"sslv2redirect,omitempty"` + /** + * URL of the page to which to redirect the client in case of a protocol version mismatch. Typically, this page has a clear explanation of the error or an alternative location that the transaction can continue from. + */ + Sslv2url string `json:"sslv2url,omitempty"` + /** + * State of client authentication. If client authentication is enabled, the virtual server terminates the SSL handshake if the SSL client does not provide a valid certificate. + */ + Clientauth string `json:"clientauth,omitempty"` + /** + * Type of client authentication. If this parameter is set to MANDATORY, the appliance terminates the SSL handshake if the SSL client does not provide a valid certificate. With the OPTIONAL setting, the appliance requests a certificate from the SSL clients but proceeds with the SSL transaction even if the client presents an invalid certificate. + Caution: Define proper access control policies before changing this setting to Optional. + */ + Clientcert string `json:"clientcert,omitempty"` + /** + * State of HTTPS redirects for the SSL virtual server. + For an SSL session, if the client browser receives a redirect message, the browser tries to connect to the new location. However, the secure SSL session breaks if the object has moved from a secure site (https://) to an unsecure site (http://). Typically, a warning message appears on the screen, prompting the user to continue or disconnect. + If SSL Redirect is ENABLED, the redirect message is automatically converted from http:// to https:// and the SSL session does not break. + */ + Sslredirect string `json:"sslredirect,omitempty"` + /** + * State of the port rewrite while performing HTTPS redirect. If this parameter is ENABLED and the URL from the server does not contain the standard port, the port is rewritten to the standard. + */ + Redirectportrewrite string `json:"redirectportrewrite,omitempty"` + /** + * State of SSLv2 protocol support for the SSL Virtual Server. + */ + Ssl2 string `json:"ssl2,omitempty"` + /** + * State of SSLv3 protocol support for the SSL Virtual Server. + Note: On platforms with SSL acceleration chips, if the SSL chip does not support SSLv3, this parameter cannot be set to ENABLED. + */ + Ssl3 string `json:"ssl3,omitempty"` + /** + * State of TLSv1.0 protocol support for the SSL Virtual Server. + */ + Tls1 string `json:"tls1,omitempty"` + /** + * State of TLSv1.1 protocol support for the SSL Virtual Server. + */ + Tls11 string `json:"tls11,omitempty"` + /** + * State of TLSv1.2 protocol support for the SSL Virtual Server. + */ + Tls12 string `json:"tls12,omitempty"` + /** + * State of TLSv1.3 protocol support for the SSL Virtual Server. + */ + Tls13 string `json:"tls13,omitempty"` + /** + * State of DTLSv1.0 protocol support for the SSL Virtual Server. + */ + Dtls1 string `json:"dtls1,omitempty"` + /** + * State of DTLSv1.2 protocol support for the SSL Virtual Server. + */ + Dtls12 string `json:"dtls12,omitempty"` + /** + * State of the Server Name Indication (SNI) feature on the virtual server and service-based offload. SNI helps to enable SSL encryption on multiple domains on a single virtual server or service if the domains are controlled by the same organization and share the same second-level domain name. For example, *.sports.net can be used to secure domains such as login.sports.net and help.sports.net. + */ + Snienable string `json:"snienable,omitempty"` + /** + * State of OCSP stapling support on the SSL virtual server. Supported only if the protocol used is higher than SSLv3. Possible values: + ENABLED: The appliance sends a request to the OCSP responder to check the status of the server certificate and caches the response for the specified time. If the response is valid at the time of SSL handshake with the client, the OCSP-based server certificate status is sent to the client during the handshake. + DISABLED: The appliance does not check the status of the server certificate. + */ + Ocspstapling string `json:"ocspstapling,omitempty"` + /** + * Trigger encryption on the basis of the PUSH flag value. Available settings function as follows: + * ALWAYS - Any PUSH packet triggers encryption. + * IGNORE - Ignore PUSH packet for triggering encryption. + * MERGE - For a consecutive sequence of PUSH packets, the last PUSH packet triggers encryption. + * TIMER - PUSH packet triggering encryption is delayed by the time defined in the set ssl parameter command or in the Change Advanced SSL Settings dialog box. + */ + Pushenctrigger string `json:"pushenctrigger,omitempty"` + /** + * Enable sending SSL Close-Notify at the end of a transaction + */ + Sendclosenotify string `json:"sendclosenotify,omitempty"` + /** + * Name of the DTLS profile whose settings are to be applied to the virtual server. + */ + Dtlsprofilename string `json:"dtlsprofilename,omitempty"` + /** + * Name of the SSL profile that contains SSL settings for the virtual server. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * State of HSTS protocol support for the SSL Virtual Server. Using HSTS, a server can enforce the use of an HTTPS connection for all communication with a client + */ + Hsts string `json:"hsts,omitempty"` + /** + * Set the maximum time, in seconds, in the strict transport security (STS) header during which the client must send only HTTPS requests to the server + */ + Maxage uint32 `json:"maxage,omitempty"` + /** + * Enable HSTS for subdomains. If set to Yes, a client must send only HTTPS requests for subdomains. + */ + Includesubdomains string `json:"includesubdomains,omitempty"` + /** + * Flag indicates the consent of the site owner to have their domain preloaded. + */ + Preload string `json:"preload,omitempty"` + /** + * Parameter indicating to check whether peer entity certificate during TLS1.2 handshake is signed with one of signature-hash combination supported by Citrix ADC. + */ + Strictsigdigestcheck string `json:"strictsigdigestcheck,omitempty"` + /** + * State of TLS 1.3 0-RTT early data support for the SSL Virtual Server. This setting only has an effect if resumption is enabled, as early data cannot be sent along with an initial handshake. + Early application data has significantly different security properties - in particular there is no guarantee that the data cannot be replayed. + */ + Zerorttearlydata string `json:"zerorttearlydata,omitempty"` + /** + * Number of tickets the SSL Virtual Server will issue anytime TLS 1.3 is negotiated, ticket-based resumption is enabled, and either (1) a handshake completes or (2) post-handhsake client auth completes. + This value can be increased to enable clients to open multiple parallel connections using a fresh ticket for each connection. + No tickets are sent if resumption is disabled. + */ + Tls13sessionticketsperauthcontext uint32 `json:"tls13sessionticketsperauthcontext,omitempty"` + /** + * Whether or not the SSL Virtual Server will require a DHE key exchange to occur when a PSK is accepted during a TLS 1.3 resumption handshake. + A DHE key exchange ensures forward secrecy even in the event that ticket keys are compromised, at the expense of an additional round trip and resources required to carry out the DHE key exchange. + If disabled, a DHE key exchange will be performed when a PSK is accepted but only if requested by the client. + If enabled, the server will require a DHE key exchange when a PSK is accepted regardless of whether the client supports combined PSK-DHE key exchange. This setting only has an effect when resumption is enabled. + */ + Dhekeyexchangewithpsk string `json:"dhekeyexchangewithpsk,omitempty"` + + //------- Read only Parameter ---------; + + Crlcheck string `json:"crlcheck,omitempty"` + Nonfipsciphers string `json:"nonfipsciphers,omitempty"` + Service string `json:"service,omitempty"` + Ocspcheck string `json:"ocspcheck,omitempty"` + Ca string `json:"ca,omitempty"` + Snicert string `json:"snicert,omitempty"` + Skipcaname string `json:"skipcaname,omitempty"` + Dtlsflag string `json:"dtlsflag,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_binding.go new file mode 100644 index 000000000..cd277bcd6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding object which returns the resources bound to sslvserver_binding. +*/ +type Sslvserverbinding struct { + /** + * Name of the SSL virtual server for which to show detailed information.
Minimum value = + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_certkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_certkey_binding.go new file mode 100644 index 000000000..8aa610052 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_certkey_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the certkey that can be bound to sslvserver. +*/ +type Sslvservercertkeybinding struct { + /** + * The name of the certificate key pair binding. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. + */ + Cleartextport int32 `json:"cleartextport,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The flag is used to indicate whether this particular CA certificate's CA_Name needs to be sent to the SSL client while requesting for client certificate in a SSL handshake + */ + Skipcaname bool `json:"skipcaname,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_cipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_cipher_binding.go new file mode 100644 index 000000000..c98c78580 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_cipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the cipher that can be bound to sslvserver. +*/ +type Sslvservercipherbinding struct { + /** + * The name of the cipher group/alias/individual cipheri bindings. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Name of the individual cipher, user-defined cipher group, or predefined (built-in) cipher alias. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ciphersuite_binding.go new file mode 100644 index 000000000..da7dfaa45 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ciphersuite that can be bound to sslvserver. +*/ +type Sslvserverciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ecccurve_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ecccurve_binding.go new file mode 100644 index 000000000..7217a43ed --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_ecccurve_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the ecccurve that can be bound to sslvserver. +*/ +type Sslvserverecccurvebinding struct { + /** + * Named ECC curve bound to vserver/service. + */ + Ecccurvename string `json:"ecccurvename,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_policy_binding.go new file mode 100644 index 000000000..daf85f7f5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_policy_binding.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the policy that can be bound to sslvserver. +*/ +type Sslvserverpolicybinding struct { + /** + * The name of the SSL policy binding. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policies bound to this SSL service + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Bind point to which to bind the policy. Possible Values: REQUEST, INTERCEPT_REQ and CLIENTHELLO_REQ. These bindpoints mean: + 1. REQUEST: Policy evaluation will be done at appplication above SSL. This bindpoint is default and is used for actions based on clientauth and client cert. + 2. INTERCEPT_REQ: Policy evaluation will be done during SSL handshake to decide whether to intercept or not. Actions allowed with this type are: INTERCEPT, BYPASS and RESET. + 3. CLIENTHELLO_REQ: Policy evaluation will be done during handling of Client Hello Request. Action allowed with this type is: RESET, FORWARD and PICKCACERTGRP. + */ + Type string `json:"type,omitempty"` + /** + * Whether the bound policy is a inherited policy or not + */ + Polinherit uint32 `json:"polinherit,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. This attribute is relevant only for ADVANCED policies + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslwrapkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslwrapkey.go new file mode 100644 index 000000000..10ecbc202 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslwrapkey.go @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Configuration for WRAP key resource. +*/ +type Sslwrapkey struct { + /** + * Name for the wrap key. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the wrap key is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my key" or 'my key'). + */ + Wrapkeyname string `json:"wrapkeyname,omitempty"` + /** + * Password string for the wrap key. + */ + Password string `json:"password,omitempty"` + /** + * Salt string for the wrap key. + */ + Salt string `json:"salt,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemautorestorefeature.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemautorestorefeature.go new file mode 100644 index 000000000..f7ad1fd08 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemautorestorefeature.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for Enable/Disable the autorestore feature use to create restorepoint resource. +*/ +type Systemautorestorefeature struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systembackup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systembackup.go new file mode 100644 index 000000000..34794bd39 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systembackup.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for Backup Data for ns backup and restore resource. +*/ +type Systembackup struct { + /** + * Name of the backup file(*.tgz) to be restored. + */ + Filename string `json:"filename,omitempty"` + /** + * This option will create backup file with local timezone timestamp + */ + Uselocaltimezone bool `json:"uselocaltimezone,omitempty"` + /** + * Level of data to be backed up. + */ + Level string `json:"level,omitempty"` + /** + * Use this option to add kernel in the backup file + */ + Includekernel string `json:"includekernel,omitempty"` + /** + * Comment specified at the time of creation of the backup file(*.tgz). + */ + Comment string `json:"comment,omitempty"` + /** + * Use this option to skip taking backup during restore operation + */ + Skipbackup bool `json:"skipbackup,omitempty"` + + //------- Read only Parameter ---------; + + Size string `json:"size,omitempty"` + Creationtime string `json:"creationtime,omitempty"` + Version string `json:"version,omitempty"` + Createdby string `json:"createdby,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcmdpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcmdpolicy.go new file mode 100644 index 000000000..cbf260a00 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcmdpolicy.go @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for command policy resource. +*/ +type Systemcmdpolicy struct { + /** + * Name for a command policy. Must begin with a letter, number, or the underscore (_) character, and must contain only alphanumeric, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), and underscore characters. Cannot be changed after the policy is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my policy" or 'my policy'). + */ + Policyname string `json:"policyname,omitempty"` + /** + * Action to perform when a request matches the policy. + */ + Action string `json:"action,omitempty"` + /** + * Regular expression specifying the data that matches the policy. + */ + Cmdspec string `json:"cmdspec,omitempty"` + + //------- Read only Parameter ---------; + + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcollectionparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcollectionparam.go new file mode 100644 index 000000000..c7ef5083c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcollectionparam.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for collection parameter resource. +*/ +type Systemcollectionparam struct { + /** + * SNMPv1 community name for authentication. + */ + Communityname string `json:"communityname,omitempty"` + /** + * specify the log level. Possible values CRITICAL,WARNING,INFO,DEBUG1,DEBUG2 + */ + Loglevel string `json:"loglevel,omitempty"` + /** + * specify the data path to the database. + */ + Datapath string `json:"datapath,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcore.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcore.go new file mode 100644 index 000000000..f9570ee3d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcore.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for core resource. +*/ +type Systemcore struct { + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcountergroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcountergroup.go new file mode 100644 index 000000000..a261cddcd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcountergroup.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for counter group resource. +*/ +type Systemcountergroup struct { + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcounters.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcounters.go new file mode 100644 index 000000000..9ffb91b26 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemcounters.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for counters resource. +*/ +type Systemcounters struct { + /** + * Specify the (counter) group name which contains all the counters specific tot his particular group. + */ + Countergroup string `json:"countergroup,omitempty"` + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemdatasource.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemdatasource.go new file mode 100644 index 000000000..2c6a309ab --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemdatasource.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for historical datasource resource. +*/ +type Systemdatasource struct { + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go new file mode 100644 index 000000000..9f136c8cf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go @@ -0,0 +1,40 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for entity resource. +*/ +type Systementity struct { + /** + * Specify the entity type. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + /** + * Specify core ID of the PE in nCore. + */ + Core int32 `json:"core,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go new file mode 100644 index 000000000..997c2b91b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for entity data resource. +*/ +type Systementitydata struct { + /** + * Specify the entity type. + */ + Type string `json:"type,omitempty"` + /** + * Specify the entity name. + */ + Name string `json:"name,omitempty"` + /** + * Specify this if you would like to delete information about all deleted entities from the database. + */ + Alldeleted bool `json:"alldeleted,omitempty"` + /** + * Specify this if you would like to delete information about all inactive entities from the database. + */ + Allinactive bool `json:"allinactive,omitempty"` + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + /** + * Specify core ID of the PE in nCore. + */ + Core int32 `json:"core,omitempty"` + /** + * Specify the counters to be collected. + */ + Counters string `json:"counters,omitempty"` + /** + * Specify start time in mmddyyyyhhmm to start collecting values from that timestamp. + */ + Starttime string `json:"starttime,omitempty"` + /** + * Specify end time in mmddyyyyhhmm upto which values have to be collected. + */ + Endtime string `json:"endtime,omitempty"` + /** + * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. + */ + Last int32 `json:"last,omitempty"` + /** + * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. + */ + Unit string `json:"unit,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + Startupdate string `json:"startupdate,omitempty"` + Lastupdate string `json:"lastupdate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitytype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitytype.go new file mode 100644 index 000000000..9823aeeb8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitytype.go @@ -0,0 +1,32 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for entity type resource. +*/ +type Systementitytype struct { + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go new file mode 100644 index 000000000..e87a51e46 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for event history resource. +*/ +type Systemeventhistory struct { + /** + * Specify start time in mmddyyyyhhmm to start collecting values from that timestamp. + */ + Starttime string `json:"starttime,omitempty"` + /** + * Specify end time in mmddyyyyhhmm upto which values have to be collected. + */ + Endtime string `json:"endtime,omitempty"` + /** + * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. + */ + Last int32 `json:"last,omitempty"` + /** + * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. + */ + Unit string `json:"unit,omitempty"` + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go new file mode 100644 index 000000000..64b754ae0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + + +type Systemextramgmtcpu struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + + //------- Read only Parameter ---------; + + Configuredstate string `json:"configuredstate,omitempty"` + Effectivestate string `json:"effectivestate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemfile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemfile.go new file mode 100644 index 000000000..cf7569572 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemfile.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for file resource. +*/ +type Systemfile struct { + /** + * Name of the file. It should not include filepath. + */ + Filename string `json:"filename,omitempty"` + /** + * file content in Base64 format. + */ + Filecontent string `json:"filecontent,omitempty"` + /** + * location of the file on Citrix ADC. + */ + Filelocation string `json:"filelocation,omitempty"` + /** + * encoding type of the file content. + */ + Fileencoding string `json:"fileencoding,omitempty"` + + //------- Read only Parameter ---------; + + Fileaccesstime string `json:"fileaccesstime,omitempty"` + Filemodifiedtime string `json:"filemodifiedtime,omitempty"` + Filemode string `json:"filemode,omitempty"` + Filesize string `json:"filesize,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_binding.go new file mode 100644 index 000000000..8f91aea6b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding object which returns the resources bound to systemglobal_binding. +*/ +type Systemglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_ldappolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_ldappolicy_binding.go new file mode 100644 index 000000000..194bce7d8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_ldappolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the ldappolicy that can be bound to systemglobal. +*/ +type Systemgloballdappolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_localpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_localpolicy_binding.go new file mode 100644 index 000000000..75d0c5e59 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_localpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the localpolicy that can be bound to systemglobal. +*/ +type Systemgloballocalpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_nslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_nslogpolicy_binding.go new file mode 100644 index 000000000..ad1c00b3b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_nslogpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the nslogpolicy that can be bound to systemglobal. +*/ +type Systemglobalnslogpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_policy_binding.go new file mode 100644 index 000000000..1f0e70f3c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_policy_binding.go @@ -0,0 +1,50 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the policy that can be bound to systemglobal. +*/ +type Systemglobalpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. Applicable only for advanced authentication policies + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_radiuspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_radiuspolicy_binding.go new file mode 100644 index 000000000..1d43a16fa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_radiuspolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the radiuspolicy that can be bound to systemglobal. +*/ +type Systemglobalradiuspolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_syslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_syslogpolicy_binding.go new file mode 100644 index 000000000..ba7a01632 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_syslogpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the syslogpolicy that can be bound to systemglobal. +*/ +type Systemglobalsyslogpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_tacacspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_tacacspolicy_binding.go new file mode 100644 index 000000000..34f3daa5f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_tacacspolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the tacacspolicy that can be bound to systemglobal. +*/ +type Systemglobaltacacspolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go new file mode 100644 index 000000000..aad66d719 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for global counter data resource. +*/ +type Systemglobaldata struct { + /** + * Specify the counters to be collected. + */ + Counters string `json:"counters,omitempty"` + /** + * Specify the (counter) group name which contains all the counters specific to this particular group. + */ + Countergroup string `json:"countergroup,omitempty"` + /** + * Specify start time in mmddyyyyhhmm to start collecting values from that timestamp. + */ + Starttime string `json:"starttime,omitempty"` + /** + * Specify end time in mmddyyyyhhmm upto which values have to be collected. + */ + Endtime string `json:"endtime,omitempty"` + /** + * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. + */ + Last int32 `json:"last,omitempty"` + /** + * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. + */ + Unit string `json:"unit,omitempty"` + /** + * Specifies the source which contains all the stored counter values. + */ + Datasource string `json:"datasource,omitempty"` + /** + * Specify core ID of the PE in nCore. + */ + Core int32 `json:"core,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + Startupdate string `json:"startupdate,omitempty"` + Lastupdate string `json:"lastupdate,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go new file mode 100644 index 000000000..45768d958 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go @@ -0,0 +1,48 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for system group resource. +*/ +type Systemgroup struct { + /** + * Name for the group. Must begin with a letter, number, hash(#) or the underscore (_) character, and must contain only alphanumeric, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), and underscore characters. Cannot be changed after the group is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my group" or 'my group'). + */ + Groupname string `json:"groupname,omitempty"` + /** + * String to display at the command-line prompt. Can consist of letters, numbers, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), underscore (_), and the following variables: + * %u - Will be replaced by the user name. + * %h - Will be replaced by the hostname of the Citrix ADC. + * %t - Will be replaced by the current time in 12-hour format. + * %T - Will be replaced by the current time in 24-hour format. + * %d - Will be replaced by the current date. + * %s - Will be replaced by the state of the Citrix ADC. + Note: The 63-character limit for the length of the string does not apply to the characters that replace the variables. + */ + Promptstring string `json:"promptstring,omitempty"` + /** + * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument of system parameter is enabled, Timeout can have values in the range [300-86400] seconds.If Restrictedtimeout argument of system parameter is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. + */ + Timeout uint64 `json:"timeout,omitempty"` + /** + * Allowed Management interfaces of the system users in the group. By default allowed from both API and CLI interfaces. If management interface for a group is set to API, then all users under this group will not allowed to access NS through CLI. GUI interface will come under API interface + */ + Allowedmanagementinterface []string `json:"allowedmanagementinterface,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_binding.go new file mode 100644 index 000000000..115dd9182 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding object which returns the resources bound to systemgroup_binding. +*/ +type Systemgroupbinding struct { + /** + * Name of the system group about which to display information.
Minimum value = + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_cmdpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_cmdpolicy_binding.go new file mode 100644 index 000000000..62107fabd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_cmdpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the cmdpolicy that can be bound to systemgroup. +*/ +type Systemgroupcmdpolicybinding struct { + /** + * The name of command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_partition_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_partition_binding.go new file mode 100644 index 000000000..841c13146 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_partition_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the partition that can be bound to systemgroup. +*/ +type Systemgrouppartitionbinding struct { + /** + * Name of the Partition to bind to the system group. + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_user_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_user_binding.go new file mode 100644 index 000000000..a46cac721 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_user_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the user that can be bound to systemgroup. +*/ +type Systemgroupuserbinding struct { + /** + * The system user. + */ + Username string `json:"username,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemhwerror.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemhwerror.go new file mode 100644 index 000000000..a847ba16e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemhwerror.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for Hardware errors resource. +*/ +type Systemhwerror struct { + /** + * Perform only disk error checking. + */ + Diskcheck bool `json:"diskcheck,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + Hwerrorcount string `json:"hwerrorcount,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go new file mode 100644 index 000000000..acf4c1731 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go @@ -0,0 +1,118 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for system parameter resource. +*/ +type Systemparameter struct { + /** + * Enable or disable Role-Based Authentication (RBA) on responses. + */ + Rbaonresponse string `json:"rbaonresponse,omitempty"` + /** + * String to display at the command-line prompt. Can consist of letters, numbers, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), underscore (_), and the following variables: + * %u - Will be replaced by the user name. + * %h - Will be replaced by the hostname of the Citrix ADC. + * %t - Will be replaced by the current time in 12-hour format. + * %T - Will be replaced by the current time in 24-hour format. + * %d - Will be replaced by the current date. + * %s - Will be replaced by the state of the Citrix ADC. + Note: The 63-character limit for the length of the string does not apply to the characters that replace the variables. + */ + Promptstring string `json:"promptstring,omitempty"` + /** + * Flush the system if the number of Network Address Translation Protocol Control Blocks (NATPCBs) exceeds this value. + */ + Natpcbforceflushlimit uint32 `json:"natpcbforceflushlimit,omitempty"` + /** + * Send a reset signal to client and server connections when their NATPCBs time out. Avoids the buildup of idle TCP connections on both the sides. + */ + Natpcbrstontimeout string `json:"natpcbrstontimeout,omitempty"` + /** + * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument is enabled, Timeout can have values in the range [300-86400] seconds. + If Restrictedtimeout argument is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. + */ + Timeout uint64 `json:"timeout,omitempty"` + /** + * When enabled, local users can access Citrix ADC even when external authentication is configured. When disabled, local users are not allowed to access the Citrix ADC, Local users can access the Citrix ADC only when the configured external authentication servers are unavailable. This parameter is not applicable to SSH Key-based authentication + */ + Localauth string `json:"localauth,omitempty"` + /** + * Minimum length of system user password. When strong password is enabled default minimum length is 4. User entered value can be greater than or equal to 4. Default mininum value is 1 when strong password is disabled. Maximum value is 127 in both cases. + */ + Minpasswordlen uint32 `json:"minpasswordlen,omitempty"` + /** + * After enabling strong password (enableall / enablelocal - not included in exclude list), all the passwords / sensitive information must have - Atleast 1 Lower case character, Atleast 1 Upper case character, Atleast 1 numeric character, Atleast 1 special character ( ~, `, !, @, #, $, %, ^, &, *, -, _, =, +, {, }, [, ], |, \, :, <, >, /, ., ,, " "). Exclude list in case of enablelocal is - NS_FIPS, NS_CRL, NS_RSAKEY, NS_PKCS12, NS_PKCS8, NS_LDAP, NS_TACACS, NS_TACACSACTION, NS_RADIUS, NS_RADIUSACTION, NS_ENCRYPTION_PARAMS. So no Strong Password checks will be performed on these ObjectType commands for enablelocal case. + */ + Strongpassword string `json:"strongpassword,omitempty"` + /** + * Enable/Disable the restricted timeout behaviour. When enabled, timeout cannot be configured beyond admin configured timeout and also it will have the [minimum - maximum] range check. When disabled, timeout will have the old behaviour. By default the value is disabled + */ + Restrictedtimeout string `json:"restrictedtimeout,omitempty"` + /** + * Use this option to set the FIPS mode for key user-land processes. When enabled, these user-land processes will operate in FIPS mode. In this mode, theses processes will use FIPS 140-2 Level-1 certified crypto algorithms. Default is disabled, wherein, these user-land processes will not operate in FIPS mode. + */ + Fipsusermode string `json:"fipsusermode,omitempty"` + /** + * Enable or disable Doppler + */ + Doppler string `json:"doppler,omitempty"` + /** + * Enable or disable Google analytics + */ + Googleanalytics string `json:"googleanalytics,omitempty"` + /** + * Total time a request can take for authentication/authorization + */ + Totalauthtimeout uint32 `json:"totalauthtimeout,omitempty"` + /** + * Audit log level, which specifies the types of events to log for cli executed commands. + Available values function as follows: + * EMERGENCY - Events that indicate an immediate crisis on the server. + * ALERT - Events that might require action. + * CRITICAL - Events that indicate an imminent server crisis. + * ERROR - Events that indicate some type of error. + * WARNING - Events that require action in the near future. + * NOTICE - Events that the administrator should know about. + * INFORMATIONAL - All but low-level events. + * DEBUG - All events, in extreme detail. + */ + Cliloglevel string `json:"cliloglevel,omitempty"` + /** + * Enable or disable force password change for nsroot user + */ + Forcepasswordchange string `json:"forcepasswordchange,omitempty"` + /** + * Enable or disable basic authentication for Nitro API. + */ + Basicauth string `json:"basicauth,omitempty"` + /** + * Enable or disable External user reauthentication when authentication parameter changes + */ + Reauthonauthparamchange string `json:"reauthonauthparamchange,omitempty"` + /** + * Use this option to remove the sensitive files from the system like authorise keys, public keys etc. The commands which will remove sensitive files when this system paramter is enabled are rm cluster instance, rm cluster node, rm ha node, clear config full, join cluster and add cluster instance. + */ + Removesensitivefiles string `json:"removesensitivefiles,omitempty"` + + //------- Read only Parameter ---------; + + Maxclient string `json:"maxclient,omitempty"` + Allowdefaultpartition string `json:"allowdefaultpartition,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemrestorepoint.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemrestorepoint.go new file mode 100644 index 000000000..20200500c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemrestorepoint.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for Setting restorepoints for auto restore resource. +*/ +type Systemrestorepoint struct { + /** + * Name of the restore point. + */ + Filename string `json:"filename,omitempty"` + + //------- Read only Parameter ---------; + + Backupfilename string `json:"backupfilename,omitempty"` + Techsuprtname string `json:"techsuprtname,omitempty"` + Creationtime string `json:"creationtime,omitempty"` + Version string `json:"version,omitempty"` + Createdby string `json:"createdby,omitempty"` + Ipaddress string `json:"ipaddress,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go new file mode 100644 index 000000000..a757298ff --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for system session resource. +*/ +type Systemsession struct { + /** + * ID of the system session about which to display information. + */ + Sid uint32 `json:"sid,omitempty"` + /** + * Terminate all the system sessions except the current session. + */ + All bool `json:"all,omitempty"` + + //------- Read only Parameter ---------; + + Username string `json:"username,omitempty"` + Logintime string `json:"logintime,omitempty"` + Logintimelocal string `json:"logintimelocal,omitempty"` + Lastactivitytime string `json:"lastactivitytime,omitempty"` + Lastactivitytimelocal string `json:"lastactivitytimelocal,omitempty"` + Expirytime string `json:"expirytime,omitempty"` + Numofconnections string `json:"numofconnections,omitempty"` + Currentconn string `json:"currentconn,omitempty"` + Clienttype string `json:"clienttype,omitempty"` + Partitionname string `json:"partitionname,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsshkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsshkey.go new file mode 100644 index 000000000..2e88a059a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsshkey.go @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + + +type Systemsshkey struct { + /** + * URL \(protocol, host, path, and file name\) from where the location file will be imported. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Name string `json:"name,omitempty"` + /** + * The type of the ssh key whether public or private key + */ + Sshkeytype string `json:"sshkeytype,omitempty"` + /** + * URL \(protocol, host, path, and file name\) from where the location file will be imported. + NOTE: The import fails if the object to be imported is on an HTTPS server that requires client certificate authentication for access. + */ + Src string `json:"src,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go new file mode 100644 index 000000000..ff2ed3ab1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Configuration for system user resource. +*/ +type Systemuser struct { + /** + * Name for a user. Must begin with a letter, number, or the underscore (_) character, and must contain only alphanumeric, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), and underscore characters. Cannot be changed after the user is added. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my user" or 'my user'). + */ + Username string `json:"username,omitempty"` + /** + * Password for the system user. Can include any ASCII character. + */ + Password string `json:"password,omitempty"` + /** + * Whether to use external authentication servers for the system user authentication or not + */ + Externalauth string `json:"externalauth,omitempty"` + /** + * String to display at the command-line prompt. Can consist of letters, numbers, hyphen (-), period (.), hash (#), space ( ), at (@), equal (=), colon (:), underscore (_), and the following variables: + * %u - Will be replaced by the user name. + * %h - Will be replaced by the hostname of the Citrix ADC. + * %t - Will be replaced by the current time in 12-hour format. + * %T - Will be replaced by the current time in 24-hour format. + * %d - Will be replaced by the current date. + * %s - Will be replaced by the state of the Citrix ADC. + Note: The 63-character limit for the length of the string does not apply to the characters that replace the variables. + */ + Promptstring string `json:"promptstring,omitempty"` + /** + * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument of system parameter is enabled, Timeout can have values in the range [300-86400] seconds. If Restrictedtimeout argument of system parameter is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. + */ + Timeout uint64 `json:"timeout,omitempty"` + /** + * Users logging privilege + */ + Logging string `json:"logging,omitempty"` + /** + * Maximum number of client connection allowed per user + */ + Maxsession uint32 `json:"maxsession,omitempty"` + /** + * Allowed Management interfaces to the system user. By default user is allowed from both API and CLI interfaces. If management interface for a user is set to API, then user is not allowed to access NS through CLI. GUI interface will come under API interface + */ + Allowedmanagementinterface []string `json:"allowedmanagementinterface,omitempty"` + + //------- Read only Parameter ---------; + + Encrypted string `json:"encrypted,omitempty"` + Hashmethod string `json:"hashmethod,omitempty"` + Promptinheritedfrom string `json:"promptinheritedfrom,omitempty"` + Timeoutkind string `json:"timeoutkind,omitempty"` + Allowedmanagementinterfacekind string `json:"allowedmanagementinterfacekind,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_binding.go new file mode 100644 index 000000000..c403a99d3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding object which returns the resources bound to systemuser_binding. +*/ +type Systemuserbinding struct { + /** + * Name of a system user about whom to display information.
Minimum value = + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_cmdpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_cmdpolicy_binding.go new file mode 100644 index 000000000..6cb1783df --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_cmdpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the cmdpolicy that can be bound to systemuser. +*/ +type Systemusercmdpolicybinding struct { + /** + * The name of command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_group_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_group_binding.go new file mode 100644 index 000000000..38a142602 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_group_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the group that can be bound to systemuser. +*/ +type Systemusergroupbinding struct { + /** + * The system group. + */ + Groupname string `json:"groupname,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_partition_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_partition_binding.go new file mode 100644 index 000000000..d50605cac --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_partition_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the partition that can be bound to systemuser. +*/ +type Systemuserpartitionbinding struct { + /** + * Name of the Partition to bind to the system user. + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go new file mode 100644 index 000000000..af26759c0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Configuration for transform action resource. +*/ +type Transformaction struct { + /** + * Name for the URL transformation action. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the URL Transformation action is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform action^A" or ^A'my transform action). + */ + Name string `json:"name,omitempty"` + /** + * Name of the URL Transformation profile with which to associate this action. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Positive integer specifying the priority of the action within the profile. A lower number specifies a higher priority. Must be unique within the list of actions bound to the profile. Policies are evaluated in the order of their priority numbers, and the first policy that matches is applied. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enable or disable this action. + */ + State string `json:"state,omitempty"` + /** + * PCRE-format regular expression that describes the request URL pattern to be transformed. + */ + Requrlfrom string `json:"requrlfrom,omitempty"` + /** + * PCRE-format regular expression that describes the transformation to be performed on URLs that match the reqUrlFrom pattern. + */ + Requrlinto string `json:"requrlinto,omitempty"` + /** + * PCRE-format regular expression that describes the response URL pattern to be transformed. + */ + Resurlfrom string `json:"resurlfrom,omitempty"` + /** + * PCRE-format regular expression that describes the transformation to be performed on URLs that match the resUrlFrom pattern. + */ + Resurlinto string `json:"resurlinto,omitempty"` + /** + * Pattern that matches the domain to be transformed in Set-Cookie headers. + */ + Cookiedomainfrom string `json:"cookiedomainfrom,omitempty"` + /** + * PCRE-format regular expression that describes the transformation to be performed on cookie domains that match the cookieDomainFrom pattern. + NOTE: The cookie domain to be transformed is extracted from the request. + */ + Cookiedomaininto string `json:"cookiedomaininto,omitempty"` + /** + * Any comments to preserve information about this URL Transformation action. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Continuematching string `json:"continuematching,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_binding.go new file mode 100644 index 000000000..b3e6b57d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_binding.go @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding object which returns the resources bound to transformglobal_binding. +*/ +type Transformglobalbinding struct { + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_policy_binding.go new file mode 100644 index 000000000..f600e35d5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_policy_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the policy that can be bound to transformglobal. +*/ +type Transformglobalpolicybinding struct { + /** + * Name of the transform policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the bind point to which to bind the policy. Available settings function as follows: + * REQ_OVERRIDE. Request override. Binds the policy to the priority request queue. + * REQ_DEFAULT. Binds the policy to the default request queue. + * HTTPQUIC_REQ_OVERRIDE - Binds the policy to the HTTP_QUIC override request queue. + * HTTPQUIC_REQ_DEFAULT - Binds the policy to the HTTP_QUIC default request queue. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forwards the request or response to the specified virtual server or evaluates the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Send the request to the specified request virtual server. + * resvserver - Send the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and the label type is Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol uint32 `json:"numpol,omitempty"` + /** + * flowtype of the bound transform policy. + */ + Flowtype uint32 `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy.go new file mode 100644 index 000000000..fa97f0d62 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Configuration for URL Transformation policy resource. +*/ +type Transformpolicy struct { + /** + * Name for the URL Transformation policy. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the URL Transformation policy is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform policy^A" or ^A'my transform policy). + */ + Name string `json:"name,omitempty"` + /** + * Expression, or name of a named expression, against which to evaluate traffic. + The following requirements apply only to the Citrix ADC CLI: + * If the expression includes blank spaces, the entire expression must be enclosed in double quotation marks. + * If the expression itself includes double quotation marks, you must escape the quotations by using the \ character. + * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks. + */ + Rule string `json:"rule,omitempty"` + /** + * Name of the URL Transformation profile to use to transform requests and responses that match the policy. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Any comments to preserve information about this URL Transformation policy. + */ + Comment string `json:"comment,omitempty"` + /** + * Log server to use to log connections that match this policy. + */ + Logaction string `json:"logaction,omitempty"` + /** + * New name for the policy. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform policy^A" or ^A'my transform policy). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Hits string `json:"hits,omitempty"` + Isdefault string `json:"isdefault,omitempty"` + Builtin string `json:"builtin,omitempty"` + Feature string `json:"feature,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_binding.go new file mode 100644 index 000000000..cbeb2da94 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding object which returns the resources bound to transformpolicy_binding. +*/ +type Transformpolicybinding struct { + /** + * Name of the URL Transformation policy.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_global_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_global_binding.go new file mode 100644 index 000000000..9d12200b3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_global_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the global that can be bound to transformpolicy. +*/ +type Transformpolicyglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_policylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_policylabel_binding.go new file mode 100644 index 000000000..86b054c32 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_policylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the policylabel that can be bound to transformpolicy. +*/ +type Transformpolicypolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_vserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_vserver_binding.go new file mode 100644 index 000000000..f726aadcd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_vserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the vserver that can be bound to transformpolicy. +*/ +type Transformpolicyvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int32 `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel.go new file mode 100644 index 000000000..72862e250 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel.go @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Configuration for transform policy label resource. +*/ +type Transformpolicylabel struct { + /** + * Name for the policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the URL Transformation policy label is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform policylabel^A" or ^A'my transform policylabel). + */ + Labelname string `json:"labelname,omitempty"` + /** + * Types of transformations allowed by the policies bound to the label. For URL transformation, always http_req (HTTP Request). + */ + Policylabeltype string `json:"policylabeltype,omitempty"` + /** + * New name for the policy label. + Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform policylabel^A" or ^A'my transform policylabel). + */ + Newname string `json:"newname,omitempty"` + + //------- Read only Parameter ---------; + + Numpol string `json:"numpol,omitempty"` + Hits string `json:"hits,omitempty"` + Priority string `json:"priority,omitempty"` + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Labeltype string `json:"labeltype,omitempty"` + Invokelabelname string `json:"invoke_labelname,omitempty"` + Description string `json:"description,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_binding.go new file mode 100644 index 000000000..1db831d3a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_binding.go @@ -0,0 +1,31 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding object which returns the resources bound to transformpolicylabel_binding. +*/ +type Transformpolicylabelbinding struct { + /** + * Name for the policy label. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Can be changed after the URL Transformation policy label is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform policylabel^A" or ^A'my transform policylabel). + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policy_binding.go new file mode 100644 index 000000000..dfb90c883 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the policy that can be bound to transformpolicylabel. +*/ +type Transformpolicylabelpolicybinding struct { + /** + * Name of the URL Transformation policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the URL Transformation policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go new file mode 100644 index 000000000..a5d4022d9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the policybinding that can be bound to transformpolicylabel. +*/ +type Transformpolicylabelpolicybindingbinding struct { + /** + * Name of the URL Transformation policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the URL Transformation policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile.go new file mode 100644 index 000000000..12d92780d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile.go @@ -0,0 +1,51 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Configuration for URL Transformation profile resource. +*/ +type Transformprofile struct { + /** + * Name for the URL transformation profile. Must begin with a letter, number, or the underscore character (_), and must contain only letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at (@), equals (=), colon (:), and underscore characters. Cannot be changed after the URL transformation profile is added. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, ^A"my transform profile^A" or ^A'my transform profile^A'). + */ + Name string `json:"name,omitempty"` + /** + * Type of transformation. Always URL for URL Transformation profiles. + */ + Type string `json:"type,omitempty"` + /** + * In the HTTP body, transform only absolute URLs. Relative URLs are ignored. + */ + Onlytransformabsurlinbody string `json:"onlytransformabsurlinbody,omitempty"` + /** + * Any comments to preserve information about this URL Transformation profile. + */ + Comment string `json:"comment,omitempty"` + + //------- Read only Parameter ---------; + + Regexforfindingurlinjavascript string `json:"regexforfindingurlinjavascript,omitempty"` + Regexforfindingurlincss string `json:"regexforfindingurlincss,omitempty"` + Regexforfindingurlinxcomponent string `json:"regexforfindingurlinxcomponent,omitempty"` + Regexforfindingurlinxml string `json:"regexforfindingurlinxml,omitempty"` + Additionalreqheaderslist string `json:"additionalreqheaderslist,omitempty"` + Additionalrespheaderslist string `json:"additionalrespheaderslist,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_action_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_action_binding.go new file mode 100644 index 000000000..9790f216d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_action_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the action that can be bound to transformprofile. +*/ +type Transformprofileactionbinding struct { + /** + * URL Transformation action name. + */ + Actionname string `json:"actionname,omitempty"` + /** + * Priority of the Action within the Profile. + */ + Priority uint32 `json:"priority,omitempty"` + /** + * Enabled flag. + */ + State string `json:"state,omitempty"` + /** + * URL Transformation profile name. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Pattern of original request URLs. It corresponds to the way external users view the server, and acts as a source for request transformations. + */ + Requrlfrom string `json:"requrlfrom,omitempty"` + /** + * Pattern of transformed request URLs. It corresponds to internal addresses and indicates how they are created. + */ + Requrlinto string `json:"requrlinto,omitempty"` + /** + * Pattern of original response URLs. It corresponds to the way external users view the server, and acts as a source for response transformations. + */ + Resurlfrom string `json:"resurlfrom,omitempty"` + /** + * Pattern of transformed response URLs. It corresponds to internal addresses and indicates how they are created. + */ + Resurlinto string `json:"resurlinto,omitempty"` + /** + * Pattern of the original domain in Set-Cookie headers. + */ + Cookiedomainfrom string `json:"cookiedomainfrom,omitempty"` + /** + * Pattern of the transformed domain in Set-Cookie headers. + */ + Cookiedomaininto string `json:"cookiedomaininto,omitempty"` + /** + * Comments. + */ + Actioncomment string `json:"actioncomment,omitempty"` + /** + * Name of the profile. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_binding.go new file mode 100644 index 000000000..a5499b11c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding object which returns the resources bound to transformprofile_binding. +*/ +type Transformprofilebinding struct { + /** + * Name of the profile.
Minimum value = + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go new file mode 100644 index 000000000..691672ad4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + +/** +* Configuration for callhome resource. +*/ +type Callhome struct { + /** + * Unique number that identifies the cluster node. + */ + Nodeid uint32 `json:"nodeid,omitempty"` + /** + * CallHome mode of operation + */ + Mode string `json:"mode,omitempty"` + /** + * Email address of the contact administrator. + */ + Emailaddress string `json:"emailaddress,omitempty"` + /** + * Interval (in days) between CallHome heartbeats + */ + Hbcustominterval uint32 `json:"hbcustominterval,omitempty"` + /** + * Enables or disables the proxy mode. The proxy server can be set by either specifying the IP address of the server or the name of the service representing the proxy server. + */ + Proxymode string `json:"proxymode,omitempty"` + /** + * IP address of the proxy server. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the service that represents the proxy server. + */ + Proxyauthservice string `json:"proxyauthservice,omitempty"` + /** + * HTTP port on the Proxy server. This is a mandatory parameter for both IP address and service name based configuration. + */ + Port int32 `json:"port,omitempty"` + + //------- Read only Parameter ---------; + + Sslcardfirstfailure string `json:"sslcardfirstfailure,omitempty"` + Sslcardlatestfailure string `json:"sslcardlatestfailure,omitempty"` + Powfirstfail string `json:"powfirstfail,omitempty"` + Powlatestfailure string `json:"powlatestfailure,omitempty"` + Hddfirstfail string `json:"hddfirstfail,omitempty"` + Hddlatestfailure string `json:"hddlatestfailure,omitempty"` + Flashfirstfail string `json:"flashfirstfail,omitempty"` + Flashlatestfailure string `json:"flashlatestfailure,omitempty"` + Rlfirsthighdrop string `json:"rlfirsthighdrop,omitempty"` + Rllatesthighdrop string `json:"rllatesthighdrop,omitempty"` + Restartlatestfail string `json:"restartlatestfail,omitempty"` + Memthrefirstanomaly string `json:"memthrefirstanomaly,omitempty"` + Memthrelatestanomaly string `json:"memthrelatestanomaly,omitempty"` + Callhomestatus string `json:"callhomestatus,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/install.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/install.go new file mode 100644 index 000000000..ce4b0cd77 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/install.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + + +type Install struct { + /** + * Url for the build file. Must be in the following formats: + http://[user]:[password]@host/path/to/file + https://[user]:[password]@host/path/to/file + sftp://[user]:[password]@host/path/to/file + scp://[user]:[password]@host/path/to/file + ftp://[user]:[password]@host/path/to/file + file://path/to/file + */ + Url string `json:"url,omitempty"` + /** + * Do not prompt for yes/no before rebooting. + */ + Y bool `json:"y,omitempty"` + /** + * Use this flag to enable callhome. + */ + L bool `json:"l,omitempty"` + /** + * Use this flag to enable Citrix ADM Service Connect. This feature helps you discover your Citrix ADC instances effortlessly on Citrix ADM service and get insights and curated machine learning based recommendations for applications and Citrix ADC infrastructure. This feature lets the Citrix ADC instance automatically send system, usage and telemetry data to Citrix ADM service. View here [https://docs.citrix.com/en-us/citrix-adc/13/data-governance.html] to learn more about this feature. Use of this feature is subject to the Citrix End User ServiceAgreement. View here [https://www.citrix.com/buy/licensing/agreements.html]. + */ + A bool `json:"a,omitempty"` + /** + * Use this flag for upgrading from/to enhancement mode. + */ + Enhancedupgrade bool `json:"enhancedupgrade,omitempty"` + /** + * Use this flag to change swap size on ONLY 64bit nCore/MCNS/VMPE systems NON-VPX systems. + */ + Resizeswapvar bool `json:"resizeswapvar,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go new file mode 100644 index 000000000..99de7b020 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + + +type Ping struct { + /** + * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. + */ + C uint32 `json:"c,omitempty"` + /** + * Waiting time, in seconds. The default value is 1 second. + */ + I uint32 `json:"i,omitempty"` + /** + * Network interface on which to ping, if you have multiple interfaces. + */ + I_ string `json:"I,omitempty"` + /** + * Numeric output only. No name resolution. + */ + N bool `json:"n,omitempty"` + /** + * Pattern to fill in packets. Can be up to 16 bytes, useful for diagnosing data-dependent problems. + */ + P string `json:"p,omitempty"` + /** + * Quiet output. Only the summary is printed. For Nitro API, this flag is set by default. + */ + Q bool `json:"q,omitempty"` + /** + * Data size, in bytes. The default value is 56. + */ + S uint32 `json:"s,omitempty"` + /** + * Source IP address to be used in the outgoing query packets. If the IP addrESS does not belongs to this appliance, an error is returned and nothing is sent. + */ + S_ string `json:"S,omitempty"` + /** + * Traffic Domain Id + */ + T uint32 `json:"T,omitempty"` + /** + * Time-out, in seconds, before ping exits. + */ + T_ uint32 `json:"t,omitempty"` + /** + * Address of host to ping. + */ + HostName string `json:"hostName,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go new file mode 100644 index 000000000..d637b6995 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + + +type Ping6 struct { + /** + * Set socket buffer size. If used, should be used with roughly +100 then the datalen (-s option). The default value is 8192. + */ + B uint32 `json:"b,omitempty"` + /** + * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. + */ + C uint32 `json:"c,omitempty"` + /** + * Waiting time, in seconds. The default value is 1 second. + */ + I uint32 `json:"i,omitempty"` + /** + * Network interface on which to ping, if you have multiple interfaces. + */ + I_ string `json:"I,omitempty"` + /** + * By default, ping6 asks the kernel to fragment packets to fit into the minimum IPv6 MTU.The -m option will suppress the behavior for unicast packets. + */ + M bool `json:"m,omitempty"` + /** + * Numeric output only. No name resolution. + */ + N bool `json:"n,omitempty"` + /** + * Pattern to fill in packets. Can be up to 16 bytes, useful for diagnosing data-dependent problems. + */ + P string `json:"p,omitempty"` + /** + * Quiet output. Only summary is printed. For Nitro API, this flag is set by default + */ + Q bool `json:"q,omitempty"` + /** + * Data size, in bytes. The default value is 32. + */ + S uint32 `json:"s,omitempty"` + /** + * VLAN ID for link local address. + */ + V uint32 `json:"V,omitempty"` + /** + * Source IP address to be used in the outgoing query packets. + */ + S_ string `json:"S,omitempty"` + /** + * Traffic Domain Id + */ + T uint32 `json:"T,omitempty"` + /** + * Timeout in seconds before ping6 exits + */ + T_ uint32 `json:"t,omitempty"` + /** + * Address of host to ping. + */ + HostName string `json:"hostName,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/raid.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/raid.go new file mode 100644 index 000000000..3f65a51c0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/raid.go @@ -0,0 +1,24 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + +/** +* Configuration for raid support resource. +*/ +type Raid struct { + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/techsupport.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/techsupport.go new file mode 100644 index 000000000..ba0666ecb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/techsupport.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + +/** +* Configuration for tech support resource. +*/ +type Techsupport struct { + /** + * Use this option to gather data on the present node, all cluster nodes, or for the specified partitions. The CLUSTER scope generates smaller abbreviated archives for all nodes. The PARTITION scope collects the admin partition in addition to those specified. The partitionName option is only required for the PARTITION scope. + */ + Scope string `json:"scope,omitempty"` + /** + * Name of the partition + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Securely upload the collector archive to Citrix Technical Support using SSL. MyCitrix credentials will be required. If used with the -file option, no new collector archive is generated. Instead, the specified archive is uploaded. Note that the upload operation time depends on the size of the archive file, and the connection bandwidth. + */ + Upload bool `json:"upload,omitempty"` + /** + * Specifies the proxy server to be used when uploading a collector archive. Use this parameter if the Citrix ADC does not have direct internet connectivity. The basic format of the proxy string is: "proxy_IP:" (without quotes). If the proxy requires authentication the format is: "username:password@proxy_IP:" + */ + Proxy string `json:"proxy,omitempty"` + /** + * Specifies the associated case or service request number if it has already been opened with Citrix Technical Support. + */ + Casenumber string `json:"casenumber,omitempty"` + /** + * Specifies the name (with full path) of the collector archive file to be uploaded. If this is specified, no new collector archive is generated. + */ + File string `json:"file,omitempty"` + /** + * Provides a text description for the the upload, and can be used for logging purposes. + */ + Description string `json:"description,omitempty"` + /** + * Specifies My Citrix user name, which is used to login to Citrix upload server + */ + Username string `json:"username,omitempty"` + /** + * Specifies My Citrix password, which is used to login to Citrix upload server + */ + Password string `json:"password,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + Servername string `json:"servername,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go new file mode 100644 index 000000000..d44ee0986 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + + +type Traceroute struct { + /** + * Print a summary of how many probes were not answered for each hop. + */ + S bool `json:"S,omitempty"` + /** + * Print hop addresses numerically instead of symbolically and numerically. + */ + N bool `json:"n,omitempty"` + /** + * Bypass normal routing tables and send directly to a host on an attached network. If the host is not on a directly attached network, an error is returned. + */ + R bool `json:"r,omitempty"` + /** + * Verbose output. List received ICMP packets other than TIME_EXCEEDED and UNREACHABLE. + */ + V bool `json:"v,omitempty"` + /** + * Minimum TTL value used in outgoing probe packets. + */ + M uint32 `json:"M,omitempty"` + /** + * Maximum TTL value used in outgoing probe packets. For Nitro API, default value is taken as 10. + */ + M_ int32 `json:"m,omitempty"` + /** + * Send packets of specified IP protocol. The currently supported protocols are UDP and ICMP. + */ + P string `json:"P,omitempty"` + /** + * Base port number used in probes. + */ + P_ int32 `json:"p,omitempty"` + /** + * Number of queries per hop. For Nitro API, defalut value is taken as 1. + */ + Q int32 `json:"q,omitempty"` + /** + * Source IP address to use in the outgoing query packets. If the IP address does not belong to this appliance, an error is returned and nothing is sent. + */ + S_ string `json:"s,omitempty"` + /** + * Traffic Domain Id + */ + T uint32 `json:"T,omitempty"` + /** + * Type-of-service in query packets. + */ + T_ int32 `json:"t,omitempty"` + /** + * Time (in seconds) to wait for a response to a query. For Nitro API, defalut value is set to 3. + */ + W int32 `json:"w,omitempty"` + /** + * Destination host IP address or name. + */ + Host string `json:"host,omitempty"` + /** + * Length (in bytes) of the query packets. + */ + Packetlen int32 `json:"packetlen,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go new file mode 100644 index 000000000..7a6c296d7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package utility + + +type Traceroute6 struct { + /** + * Print hop addresses numerically rather than symbolically and numerically. + */ + N bool `json:"n,omitempty"` + /** + * Use ICMP ECHO for probes. + */ + I bool `json:"I,omitempty"` + /** + * Bypass normal routing tables and send directly to a host on an attached network. If the host is not on a directly attached network, an error is returned. + */ + R bool `json:"r,omitempty"` + /** + * Verbose output. List received ICMP packets other than TIME_EXCEEDED and UNREACHABLE. + */ + V bool `json:"v,omitempty"` + /** + * Maximum hop value for outgoing probe packets. For Nitro API, default value is taken as 10. + */ + M int32 `json:"m,omitempty"` + /** + * Base port number used in probes. + */ + P int32 `json:"p,omitempty"` + /** + * Number of probes per hop. For Nitro API, default value is taken as 1. + */ + Q int32 `json:"q,omitempty"` + /** + * Source IP address to use in the outgoing query packets. If the IP address does not belong to this appliance, an error is returned and nothing is sent. + */ + S string `json:"s,omitempty"` + /** + * Traffic Domain Id + */ + T uint32 `json:"T,omitempty"` + /** + * Time (in seconds) to wait for a response to a query. For Nitro API, defalut value is set to 3. + */ + W int32 `json:"w,omitempty"` + /** + * Destination host IP address or name. + */ + Host string `json:"host,omitempty"` + /** + * Length (in bytes) of the query packets. + */ + Packetlen int32 `json:"packetlen,omitempty"` + + //------- Read only Parameter ---------; + + Response string `json:"response,omitempty"` + +} diff --git a/vendor/github.com/chiradeep/go-nitro/netscaler/client.go b/vendor/github.com/citrix/adc-nitro-go/service/client.go similarity index 73% rename from vendor/github.com/chiradeep/go-nitro/netscaler/client.go rename to vendor/github.com/citrix/adc-nitro-go/service/client.go index ca61afa78..89ccc7baf 100644 --- a/vendor/github.com/chiradeep/go-nitro/netscaler/client.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/client.go @@ -1,5 +1,5 @@ /* -Copyright 2016 Citrix Systems, Inc, All rights reserved. +Copyright 2021 Citrix Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,32 +14,37 @@ See the License for the specific language governing permissions and limitations under the License. */ -package netscaler +package service import ( "crypto/tls" "crypto/x509" "fmt" + "io/ioutil" + "log" "net/http" "net/url" "os" "strconv" "strings" "sync" - "io/ioutil" + + "github.com/hashicorp/go-hclog" ) //NitroParams encapsulates options to create a NitroClient type NitroParams struct { - Url string - Username string - Password string - ProxiedNs string - SslVerify bool - Timeout int - RootCAPath string - ServerName string - Headers map[string]string + Url string + Username string + Password string + ProxiedNs string + SslVerify bool + Timeout int + RootCAPath string + ServerName string + Headers map[string]string + LogLevel string + JSONLogFormat bool } //NitroClient has methods to configure the NetScaler @@ -55,6 +60,7 @@ type NitroClient struct { sessionid string timeout int headers map[string]string + logger hclog.Logger } //NewNitroClient returns a usable NitroClient. Does not check validity of supplied parameters @@ -91,10 +97,10 @@ func NewNitroClientFromParams(params NitroParams) (*NitroClient, error) { c.sessionid = "" c.timeout = params.Timeout if params.SslVerify { - if( len(params.RootCAPath) > 0 ){ + if len(params.RootCAPath) > 0 { caCert, err := ioutil.ReadFile(params.RootCAPath) if err != nil { - return nil, fmt.Errorf("Unable to read certificate file: %v", err) + return nil, fmt.Errorf("Unable to read certificate file: %v", err) } caCertPool := x509.NewCertPool() if ok := caCertPool.AppendCertsFromPEM(caCert); !ok { @@ -102,7 +108,7 @@ func NewNitroClientFromParams(params NitroParams) (*NitroClient, error) { } tr := &http.Transport{ TLSClientConfig: &tls.Config{ - RootCAs: caCertPool, + RootCAs: caCertPool, ServerName: params.ServerName, }, } @@ -116,6 +122,27 @@ func NewNitroClientFromParams(params NitroParams) (*NitroClient, error) { } c.client = &http.Client{Transport: tr} } + level := hclog.LevelFromString(params.LogLevel) + if level == hclog.NoLevel { + level = hclog.Off + } + logLevel, ok := os.LookupEnv("NS_LOG") + if ok { + lvl := hclog.LevelFromString(logLevel) + if lvl != hclog.NoLevel { + level = lvl + } else { + log.Printf("nitro-go: NS_LOG not set to a valid log level (%s), defaulting to %d", logLevel, level) + } + } + //c.logger = hclog.Default() + c.logger = hclog.New(&hclog.LoggerOptions{ + Name: "nitro-go", + Level: level, + Color: hclog.AutoColor, + JSONFormat: params.JSONLogFormat, + IncludeLocation: true, + }) return c, nil } @@ -127,7 +154,7 @@ func NewNitroClientFromEnv() (*NitroClient, error) { username := os.Getenv("NS_LOGIN") password := os.Getenv("NS_PASSWORD") if url == "" || username == "" || password == "" { - return nil, fmt.Errorf("Could not completely determine login parameters from env: NS_URL, NS_LOGIN, NS_PASSWORD") + return nil, fmt.Errorf("could not completely determine login parameters from env: NS_URL, NS_LOGIN, NS_PASSWORD") } proxiedNs := os.Getenv("_MPS_API_PROXY_MANAGED_INSTANCE_IP") sslverifyStr := os.Getenv("NS_SSLVERIFY") @@ -136,7 +163,7 @@ func NewNitroClientFromEnv() (*NitroClient, error) { var err error sslVerify, err = strconv.ParseBool(sslverifyStr) if err != nil { - return nil, fmt.Errorf("Could not parse env variable NS_SSLVERIFY: valid values are true and false") + return nil, fmt.Errorf("could not parse env variable NS_SSLVERIFY: valid values are true and false") } } timeoutStr := os.Getenv("NS_TIMEOUT") @@ -145,16 +172,17 @@ func NewNitroClientFromEnv() (*NitroClient, error) { var err error timeout, err = strconv.Atoi(timeoutStr) if err != nil { - return nil, fmt.Errorf("Could not parse env variable NS_TIMEOUT: integer value is expected") + return nil, fmt.Errorf("could not parse env variable NS_TIMEOUT: integer value is expected") } } nitroParams := NitroParams{ - Url: url, - Username: username, - Password: password, - ProxiedNs: proxiedNs, - SslVerify: sslVerify, - Timeout: timeout, + Url: url, + Username: username, + Password: password, + ProxiedNs: proxiedNs, + SslVerify: sslVerify, + Timeout: timeout, + JSONLogFormat: false, } return NewNitroClientFromParams(nitroParams) } diff --git a/vendor/github.com/chiradeep/go-nitro/netscaler/config.go b/vendor/github.com/citrix/adc-nitro-go/service/config.go similarity index 71% rename from vendor/github.com/chiradeep/go-nitro/netscaler/config.go rename to vendor/github.com/citrix/adc-nitro-go/service/config.go index 82393c30a..80172cf42 100644 --- a/vendor/github.com/chiradeep/go-nitro/netscaler/config.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/config.go @@ -1,5 +1,5 @@ /* -Copyright 2016 Citrix Systems, Inc. All rights reserved. +Copyright 2021 Citrix Systems, Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package netscaler +package service import ( "bytes" @@ -23,6 +23,8 @@ import ( "log" "sort" "strings" + + "github.com/hashicorp/go-hclog" ) // https://stackoverflow.com/questions/28595664/how-to-stop-json-marshal-from-escaping-and/28596225#28596225 @@ -52,6 +54,10 @@ type login struct { type logout struct { } +func (c *NitroClient) SetLogLevel(level string) { + c.logger.SetLevel(hclog.LevelFromString(level)) +} + func (c *NitroClient) updateSessionid(sessionid string) { c.sessionidMux.Lock() c.sessionid = sessionid @@ -92,11 +98,11 @@ func constructQueryMapString(prefix string, queryMap map[string]string) string { // Make it deterministic for testing's sake sort.Strings(keys) lastIndex := len(keys) - 1 - log.Printf("[DEBUG] lastindex %v", lastIndex) + //c.logger.Printf("lastindex %v", lastIndex) for i, k := range keys { v := queryMap[k] - log.Printf("i %v", i) + //c.logger.Printf("i %v", i) if i < lastIndex { queryBuilder.WriteString(fmt.Sprintf("%s:%s,", k, v)) } else { @@ -185,11 +191,11 @@ func (c *NitroClient) AddResourceReturnBody(resourceType string, name string, re var doNotPrintResources = []string{"systemfile", "login", "logout"} if !contains(doNotPrintResources, resourceType) { - log.Printf("[TRACE] go-nitro: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("AddResourceReturnBody", "resourceJSON", string(resourceJSON)) } body, err := c.createResource(resourceType, resourceJSON) if err != nil { - return body, fmt.Errorf("[ERROR] go-nitro: Failed to create resource of type %s, name=%s, err=%s", resourceType, name, err) + return body, fmt.Errorf("[ERROR] nitro-go: Failed to create resource of type %s, name=%s, err=%s", resourceType, name, err) } return body, nil } @@ -204,11 +210,11 @@ func (c *NitroClient) AddResource(resourceType string, name string, resourceStru var doNotPrintResources = []string{"systemfile", "login", "logout"} if !contains(doNotPrintResources, resourceType) { - log.Printf("[TRACE] go-nitro: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("AddResource", "resourceJSON", string(resourceJSON)) } body, err := c.createResource(resourceType, resourceJSON) if err != nil { - return "", fmt.Errorf("[ERROR] go-nitro: Failed to create resource of type %s, name=%s, err=%s", resourceType, name, err) + return "", fmt.Errorf("[ERROR] nitro-go: Failed to create resource of type %s, name=%s, err=%s", resourceType, name, err) } _ = body @@ -223,11 +229,11 @@ func (c *NitroClient) ApplyResource(resourceType string, resourceStruct interfac resourceJSON, err := JSONMarshal(nsResource) - log.Printf("[TRACE] go-nitro: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("ApplyResource ", "resourceJSON", string(resourceJSON)) body, err := c.applyResource(resourceType, resourceJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to apply resource of type %s, err=%s", resourceType, err) + return fmt.Errorf("[ERROR] nitro-go: Failed to apply resource of type %s, err=%s", resourceType, err) } _ = body @@ -242,11 +248,11 @@ func (c *NitroClient) ActOnResource(resourceType string, resourceStruct interfac resourceJSON, err := JSONMarshal(nsResource) - log.Printf("[TRACE] go-nitro: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("Resourcejson is ", "resourceJSON", string(resourceJSON)) _, err = c.actOnResource(resourceType, resourceJSON, action) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to apply action on resource of type %s, action=%s err=%s", resourceType, action, err) + return fmt.Errorf("[ERROR] nitro-go: Failed to apply action on resource of type %s, action=%s err=%s", resourceType, action, err) } return nil @@ -260,11 +266,11 @@ func (c *NitroClient) UpdateResource(resourceType string, name string, resourceS nsResource[resourceType] = resourceStruct resourceJSON, err := JSONMarshal(nsResource) - log.Printf("[DEBUG] go-nitro: UpdateResource: Resourcejson is " + string(resourceJSON)) + c.logger.Debug("UpdateResource", "resourceJSON", string(resourceJSON)) body, err := c.updateResource(resourceType, name, resourceJSON) if err != nil { - return "", fmt.Errorf("[ERROR] go-nitro: Failed to update resource of type %s, name=%s err=%s", resourceType, name, err) + return "", fmt.Errorf("[ERROR] nitro-go: Failed to update resource of type %s, name=%s err=%s", resourceType, name, err) } _ = body } @@ -279,11 +285,11 @@ func (c *NitroClient) UpdateUnnamedResource(resourceType string, resourceStruct nsResource[resourceType] = resourceStruct resourceJSON, err := JSONMarshal(nsResource) - log.Printf("[DEBUG] go-nitro: UpdateResource: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("UpdateResource", "resourcejson", string(resourceJSON)) body, err := c.updateUnnamedResource(resourceType, resourceJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to update resource of type %s, err=%s", resourceType, err) + return fmt.Errorf("[ERROR] nitro-go: Failed to update resource of type %s, err=%s", resourceType, err) } _ = body @@ -298,11 +304,11 @@ func (c *NitroClient) ChangeResource(resourceType string, name string, resourceS nsResource[resourceType] = resourceStruct resourceJSON, err := json.Marshal(nsResource) - log.Printf("[DEBUG] go-nitro: ChangeResource: Resourcejson is " + string(resourceJSON)) + c.logger.Trace("ChangeResource:", "resourcejson", string(resourceJSON)) body, err := c.changeResource(resourceType, name, resourceJSON) if err != nil { - return "", fmt.Errorf("[ERROR] go-nitro: Failed to change resource of type %s, name=%s err=%s", resourceType, name, err) + return "", fmt.Errorf("[ERROR] nitro-go: Failed to change resource of type %s, name=%s err=%s", resourceType, name, err) } _ = body } @@ -315,14 +321,14 @@ func (c *NitroClient) DeleteResource(resourceType string, resourceName string) e _, err := c.listResource(resourceType, resourceName) if err == nil { // resource exists - log.Printf("[DEBUG] go-nitro: DeleteResource Found resource of type %s: %s", resourceType, resourceName) + c.logger.Trace("DeleteResource Found resource ", "resourceType", resourceType, "resourceName", resourceName) _, err = c.deleteResource(resourceType, resourceName) if err != nil { - log.Printf("[ERROR] go-nitro: Failed to delete resourceType %s: %s, err=%s", resourceType, resourceName, err) + c.logger.Warn("Failed to delete resource", "resourceType", resourceType, "resourceName", resourceName, "error", err) return err } } else { - log.Printf("[INFO] go-nitro: DeleteResource: Resource %s already deleted ", resourceName) + c.logger.Info("DeleteResource: Resource already deleted ", "resourceType", resourceType, "resourceName", resourceName) } return nil } @@ -333,14 +339,14 @@ func (c *NitroClient) DeleteResourceWithArgs(resourceType string, resourceName s _, err := c.listResourceWithArgs(resourceType, resourceName, args) if err == nil { // resource exists - log.Printf("[INFO] go-nitro: DeleteResource found resource of type %s: %s", resourceType, resourceName) + c.logger.Trace("DeleteResource Found resource ", "resourceType", resourceType, "resourceName", resourceName) _, err = c.deleteResourceWithArgs(resourceType, resourceName, args) if err != nil { - log.Printf("[ERROR] go-nitro: Failed to delete resourceType %s: %s, err=%s", resourceType, resourceName, err) + c.logger.Warn("Failed to delete resource", "resourceType", resourceType, "resourceName", resourceName, "error", err) return err } } else { - log.Printf("[INFO] go-nitro: Resource %s already deleted ", resourceName) + c.logger.Info("DeleteResource: Resource already deleted ", "resourceType", resourceType, "resourceName", resourceName) } return nil } @@ -350,36 +356,38 @@ func (c *NitroClient) DeleteResourceWithArgsMap(resourceType string, resourceNam _, err := c.listResourceWithArgsMap(resourceType, resourceName, args) if err == nil { // resource exists - log.Printf("[INFO] go-nitro: DeleteResource found resource of type %s: %s", resourceType, resourceName) + c.logger.Trace("DeleteResource Found resource ", "resourceType", resourceType, "resourceName", resourceName) + _, err = c.deleteResourceWithArgsMap(resourceType, resourceName, args) if err != nil { - log.Printf("[ERROR] go-nitro: Failed to delete resourceType %s: %s, err=%s", resourceType, resourceName, err) + c.logger.Warn("Failed to delete resource", "resourceType", resourceType, "resourceName", resourceName, "error", err) + return err } } else { - log.Printf("[INFO] go-nitro: Resource %s already deleted ", resourceName) + c.logger.Info(" Resource already deleted ", "resourceType", resourceType, "resourceName", resourceName) } return nil } //BindResource binds the 'bindingResourceName' to the 'bindToResourceName'. func (c *NitroClient) BindResource(bindToResourceType string, bindToResourceName string, bindingResourceType string, bindingResourceName string, bindingStruct interface{}) error { - if c.ResourceExists(bindToResourceType, bindToResourceName) == false { - return fmt.Errorf("[ERROR] go-nitro: BindTo Resource %s of type %s does not exist", bindToResourceType, bindToResourceName) + if !c.ResourceExists(bindToResourceType, bindToResourceName) { + return fmt.Errorf("[ERROR] nitro-go: BindTo Resource %s of type %s does not exist", bindToResourceType, bindToResourceName) } - if c.ResourceExists(bindingResourceType, bindingResourceName) == false { - return fmt.Errorf("[ERROR] go-nitro: Binding Resource %s of type %s does not exist", bindingResourceType, bindingResourceName) + if !c.ResourceExists(bindingResourceType, bindingResourceName) { + return fmt.Errorf("[ERROR] nitro-go: Binding Resource %s of type %s does not exist", bindingResourceType, bindingResourceName) } bindingName := bindToResourceType + "_" + bindingResourceType + "_binding" nsBinding := make(map[string]interface{}) nsBinding[bindingName] = bindingStruct - resourceJSON, err := JSONMarshal(nsBinding) + resourceJSON, _ := JSONMarshal(nsBinding) body, err := c.createResource(bindingName, resourceJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to bind resource %s to resource %s, err=%s", bindToResourceName, bindingResourceName, err) + return fmt.Errorf("[ERROR] nitro-go: Failed to bind resource %s to resource %s, err=%s", bindToResourceName, bindingResourceName, err) } _ = body return nil @@ -388,19 +396,19 @@ func (c *NitroClient) BindResource(bindToResourceType string, bindToResourceName //UnbindResource unbinds 'boundResourceName' from 'boundToResource' func (c *NitroClient) UnbindResource(boundToResourceType string, boundToResourceName string, boundResourceType string, boundResourceName string, bindingFilterName string) error { - if c.ResourceExists(boundToResourceType, boundToResourceName) == false { - log.Printf("[INFO] go-nitro: Unbind: BoundTo Resource %s of type %s does not exist", boundToResourceType, boundToResourceName) + if !c.ResourceExists(boundToResourceType, boundToResourceName) { + c.logger.Info(" Unbind: BoundTo Resource does not exist", "boundToResourceType", boundToResourceType, "boundToResourceName", boundToResourceName) return nil } - if c.ResourceExists(boundResourceType, boundResourceName) == false { - log.Printf("[INFO] go-nitro: Unbind: Bound Resource %s of type %s does not exist", boundResourceType, boundResourceName) + if !c.ResourceExists(boundResourceType, boundResourceName) { + c.logger.Info(" Unbind: Bound Resource does not exist", "boundResourceType", boundResourceType, "boundResourceName", boundResourceName) return nil } _, err := c.unbindResource(boundToResourceType, boundToResourceName, boundResourceType, boundResourceName, bindingFilterName) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to unbind %s:%s from %s:%s, err=%s", boundResourceType, boundResourceName, boundToResourceType, boundToResourceName, err) + return fmt.Errorf("[ERROR] Failed to unbind %s:%s from %s:%s, err=%s", boundResourceType, boundResourceName, boundToResourceType, boundToResourceName, err) } return nil @@ -410,10 +418,10 @@ func (c *NitroClient) UnbindResource(boundToResourceType string, boundToResource func (c *NitroClient) ResourceExists(resourceType string, resourceName string) bool { _, err := c.listResource(resourceType, resourceName) if err != nil { - log.Printf("[INFO] go-nitro: No %s %s found", resourceType, resourceName) + c.logger.Debug("ResourceExists: No resource found", "resourceType", resourceType, "resourceName", resourceName) return false } - log.Printf("[INFO] go-nitro: %s %s is already present", resourceType, resourceName) + c.logger.Debug("ResourceExists: resource is already present", "resourceType", resourceType, "resourceName", resourceName) return true } @@ -422,17 +430,17 @@ func (c *NitroClient) FindResourceArray(resourceType string, resourceName string var data map[string]interface{} result, err := c.listResource(resourceType, resourceName) if err != nil { - log.Printf("[WARN] go-nitro: FindResourceArray: No %s %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindResourceArray: No resource %s of type %s found", resourceName, resourceType) + c.logger.Warn("FindResourceArray: No resources found", "resourceType", resourceType, "resourceName", resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindResourceArray: No resource %s of type %s found", resourceName, resourceType) } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindResourceArray: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArray: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) + c.logger.Error("FindResourceArray: Failed to unmarshal Netscaler Response!", "resourceType", resourceType, "resourceName", resourceName) + return nil, fmt.Errorf("[ERROR] nitro-go: FindResourceArray: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) } rsrcs, ok := data[resourceType] if !ok || rsrcs == nil { - log.Printf("[WARN] go-nitro: FindResourceArray No %s type with name %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindResourceArray: No resource %s of type %s found", resourceName, resourceType) + c.logger.Warn("FindResourceArray No resource found", "resourceType", resourceType, "resourceName", resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindResourceArray: No resource %s of type %s found", resourceName, resourceType) } resources := data[resourceType].([]interface{}) ret := make([]map[string]interface{}, len(resources), len(resources)) @@ -447,17 +455,17 @@ func (c *NitroClient) FindFilteredResourceArray(resourceType string, filter map[ var data map[string]interface{} result, err := c.listFilteredResource(resourceType, filter) if err != nil { - log.Printf("[WARN] go-nitro: FindFilteredResourceArray: No %s found matching filter %s", resourceType, filter) - return nil, fmt.Errorf("[INFO] go-nitro: FindFilteredResourceArray: No resource of type %s found matching filter %s", resourceType, filter) + c.logger.Warn("FindFilteredResourceArray: No resource found matching filter", "resourceType", resourceType, "filter", filter) + return nil, fmt.Errorf("[INFO] nitro-go: FindFilteredResourceArray: No resource of type %s found matching filter %s", resourceType, filter) } if err = json.Unmarshal(result, &data); err != nil { - log.Println("[ERROR] go-nitro: FindFilteredResourceArray: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindFilteredResourceArray: Failed to unmarshal Netscaler Response:resource of type %s matching filter %s", resourceType, filter) + c.logger.Error("FindFilteredResourceArray: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindFilteredResourceArray: Failed to unmarshal Netscaler Response:resource of type %s matching filter %s", resourceType, filter) } rsrcs, ok := data[resourceType] if !ok || rsrcs == nil { - log.Printf("[WARN] go-nitro: FindFilteredResourceArray No %s type matching filter %s found", resourceType, filter) - return nil, fmt.Errorf("[INFO] go-nitro: FindFilteredResourceArray: No resource type %s matching filter %s found", filter, resourceType) + c.logger.Warn("FindFilteredResourceArray No resource matching filter found", "resourceType", resourceType, "filter", filter) + return nil, fmt.Errorf("[INFO] nitro-go: FindFilteredResourceArray: No resource type %s matching filter %s found", filter, resourceType) } resources := data[resourceType].([]interface{}) ret := make([]map[string]interface{}, len(resources), len(resources)) @@ -472,17 +480,17 @@ func (c *NitroClient) FindResource(resourceType string, resourceName string) (ma var data map[string]interface{} result, err := c.listResource(resourceType, resourceName) if err != nil { - log.Printf("[WARN] go-nitro: FindResource: No %s %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindResource: No resource %s of type %s found", resourceName, resourceType) + c.logger.Warn("FindResource: No resource found", "resourceType", resourceType, "resourceName", resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindResource: No resource %s of type %s found", resourceName, resourceType) } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindResource: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindResource: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) + c.logger.Error("FindResource: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindResource: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) } rsrc, ok := data[resourceType] if !ok || rsrc == nil { - log.Printf("[WARN] go-nitro: FindResource No %s type with name %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindResource: No resource %s of type %s found", resourceName, resourceType) + c.logger.Warn("FindResource No resource found", "resourceType", resourceType, "resourceName", resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindResource: No resource %s of type %s found", resourceName, resourceType) } switch result := data[resourceType].(type) { @@ -491,8 +499,8 @@ func (c *NitroClient) FindResource(resourceType string, resourceName string) (ma case []interface{}: return result[0].(map[string]interface{}), nil default: - log.Printf("[WARN] go-nitro: FindResource Unable to determine type of response") - return nil, fmt.Errorf("[INFO] go-nitro: FindResource: Unable to determine type of response") + c.logger.Warn("FindResource Unable to determine type of response") + return nil, fmt.Errorf("[INFO] nitro-go: FindResource: Unable to determine type of response") } } @@ -522,10 +530,9 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ url := urlBuilder.String() - log.Printf("[TRACE] go-nitro: FindResourceArrayWithParams: url is %s", url) + c.logger.Trace("FindResourceArrayWithParams: url is", "url", url) result, httpErr := c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) - log.Printf("[TRACE] go-nitro: FindResourceArrayWithParams: HTTP GET result: %v", string(result)) - log.Printf("[TRACE] go-nitro: FindResourceArrayWithParams: HTTP GET error: %v", httpErr) + c.logger.Trace("FindResourceArrayWithParams: HTTP GET result", "result", string(result), "error", httpErr) // Ignore 404. // We need to parse the NITRO errorcode value to determine if this is an actual error @@ -533,7 +540,7 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ if !strings.Contains(httpErr.Error(), "404") { return nil, httpErr } else { - log.Printf("[DEBUG] go-nitro: FindResourceArrayWithParams: Ignoring 404 http status. %s", httpErr.Error()) + c.logger.Debug("FindResourceArrayWithParams: Ignoring 404 http status", "error", httpErr.Error()) } } @@ -541,18 +548,18 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ err := json.Unmarshal(result, &jsonData) if err != nil { - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArrayWithParams: JSON unmarshal error: %s", err.Error()) + return nil, fmt.Errorf("[ERROR] nitro-go: FindResourceArrayWithParams: JSON unmarshal error %v", err.Error()) } nitroData, ok := jsonData.(map[string]interface{}) if !ok { - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArrayWithParams: Type assertion map[string]interface{} does not hold. Actual type %T", jsonData) + return nil, fmt.Errorf("[ERROR] nitro-go: FindResourceArrayWithParams: Type assertion map[string]interface{} does not hold. Actual type %T", jsonData) } // Get error code from nitro resource errorcode, errok := nitroData["errorcode"] if !errok { - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArrayWithParams: there is no error code in nitro response") + return nil, fmt.Errorf("[ERROR] nitro-go: FindResourceArrayWithParams: there is no error code in nitro response") } errorcode = int(errorcode.(float64)) @@ -562,13 +569,13 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ // Resource missing errorcode returned missingErrcode := findParams.ResourceMissingErrorCode if missingErrcode != 0 && missingErrcode == errorcode { - log.Printf("[DEBUG] go-nitro: FindResourceArrayWithParams: resource missing error code returned %d", errorcode) + c.logger.Debug("FindResourceArrayWithParams: resource missing error code returned", "errorcode", errorcode) return emptyRetval, nil } // Fallthrough if errorcode != 0 { - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArrayWithParams: non zero errorcode %d", errorcode) + return nil, fmt.Errorf("[ERROR] FindResourceArrayWithParams: non zero errorcode %d", errorcode) } // Fallthrough @@ -576,12 +583,12 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ resourceData, ok := nitroData[findParams.ResourceType] if !ok { // Since errorcode is 0 we persume this is the expected behavior for a missing resource - log.Printf("[DEBUG] go-nitro: FindResourceArrayWithParams: resource key missing %s.", findParams.ResourceType) + c.logger.Debug("FindResourceArrayWithParams: resource key missing", "resourceType", findParams.ResourceType) return emptyRetval, nil } // Falthrough - log.Printf("[DEBUG] go-nitro: FindResourceArrayWithParams: retrieved NITRO object: %v", resourceData) + c.logger.Trace("FindResourceArrayWithParams: retrieved NITRO object", "resourceData", resourceData) // resource data assertion resourceArray, arrayOk := resourceData.([]interface{}) @@ -603,7 +610,7 @@ func (c *NitroClient) FindResourceArrayWithParams(findParams FindParams) ([]map[ } // Fallthrough to error condition - return nil, fmt.Errorf("[ERROR] go-nitro: FindResourceArrayWithParams: Cannot handle returned NITRO resource data type %T", resourceData) + return nil, fmt.Errorf("[ERROR] nitro-go: FindResourceArrayWithParams: Cannot handle returned NITRO resource data type %T", resourceData) } @@ -612,16 +619,16 @@ func (c *NitroClient) FindAllResources(resourceType string) ([]map[string]interf var data map[string]interface{} result, err := c.listResource(resourceType, "") if err != nil { - log.Printf("[INFO] go-nitro: FindAllResources: No %s objects found", resourceType) + c.logger.Trace(" FindAllResources: No objects found", "resourceType", resourceType) return make([]map[string]interface{}, 0, 0), nil } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindAllResources: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindAllResources: Failed to unmarshal Netscaler Response: of type %s", resourceType) + c.logger.Error("FindAllResources: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindAllResources: Failed to unmarshal Netscaler Response: of type %s", resourceType) } rsrcs, ok := data[resourceType] if !ok || rsrcs == nil { - log.Printf("[INFO] go-nitro: FindAllResources: No %s found", resourceType) + c.logger.Trace(" FindAllResources: resource not found", "resourceType", resourceType) return make([]map[string]interface{}, 0, 0), nil } resources := data[resourceType].([]interface{}) @@ -638,13 +645,13 @@ func (c *NitroClient) FindAllResources(resourceType string) ([]map[string]interf func (c *NitroClient) ResourceBindingExists(resourceType string, resourceName string, boundResourceType string, boundResourceFilterName string, boundResourceFilterValue string) bool { result, err := c.listBoundResources(resourceName, resourceType, boundResourceType, boundResourceFilterName, boundResourceFilterValue) if err != nil { - log.Printf("[INFO] go-nitro: ResourceBindingExists: No %s %s to %s %s binding found", resourceType, resourceName, boundResourceType, boundResourceFilterValue) + c.logger.Trace("ResourceBindingExists: No bound resource to found", "resourceType", resourceType, "name", resourceName, "boundResourceType", boundResourceType, "boundResourceFilterValue", boundResourceFilterValue) return false } var data map[string]interface{} if err := json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: ResourceBindingExists: Failed to unmarshal Netscaler Response!") + c.logger.Error("ResourceBindingExists: Failed to unmarshal Netscaler Response!") return false } binding := fmt.Sprintf("%s_%s_binding", resourceType, boundResourceType) @@ -653,7 +660,7 @@ func (c *NitroClient) ResourceBindingExists(resourceType string, resourceName st return false } - log.Printf("[INFO] go-nitro: ResourceBindingExists: %s of type %s is bound to %s type and name %s", resourceType, resourceName, boundResourceType, boundResourceFilterValue) + c.logger.Trace("ResourceBindingExists: of type is bound to type and name ", "resourceType", resourceType, "resourceName", resourceName, "boundResourceType", boundResourceType, "boundResourceFilterValue", boundResourceFilterValue) return true } @@ -661,19 +668,19 @@ func (c *NitroClient) ResourceBindingExists(resourceType string, resourceName st func (c *NitroClient) FindBoundResource(resourceType string, resourceName string, boundResourceType string, boundResourceFilterName string, boundResourceFilterValue string) (map[string]interface{}, error) { result, err := c.listBoundResources(resourceName, resourceType, boundResourceType, boundResourceFilterName, boundResourceFilterValue) if err != nil { - log.Printf("[INFO] go-nitro: FindBoundResource: No %s %s to %s %s binding found", resourceType, resourceName, boundResourceType, boundResourceFilterValue) - return nil, fmt.Errorf("[INFO] go-nitro: No %s %s to %s %s binding found, err=%s", resourceType, resourceName, boundResourceType, boundResourceFilterValue, err) + c.logger.Info(" FindBoundResource: No binding found", "resourceType", resourceType, "resourceName", "resourceName", resourceName, "boundResourceType", boundResourceType, "boundResourceFilterValue", boundResourceFilterValue) + return nil, fmt.Errorf("[INFO] nitro-go: No %s %s to %s %s binding found, err=%s", resourceType, resourceName, boundResourceType, boundResourceFilterValue, err) } var data map[string]interface{} if err := json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindBoundResource: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindBoundResource: Failed to unmarshal Netscaler Response!, err=%s", err) + c.logger.Error("FindBoundResource: Failed to unmarshal Netscaler Response!", "error", err) + return nil, fmt.Errorf("[ERROR] nitro-go: FindBoundResource: Failed to unmarshal Netscaler Response!, err=%s", err) } bindingType := fmt.Sprintf("%s_%s_binding", resourceType, boundResourceType) rsrc, ok := data[bindingType] if !ok || rsrc == nil { - return nil, fmt.Errorf("[WARN] go-nitro: FindBoundResource: No %s %s to %s %s binding found", resourceType, resourceName, boundResourceType, boundResourceFilterValue) + return nil, fmt.Errorf("[WARN] nitro-go: FindBoundResource: No %s %s to %s %s binding found", resourceType, resourceName, boundResourceType, boundResourceFilterValue) } resource := data[bindingType].([]interface{})[0] //only one resource obviously @@ -685,14 +692,14 @@ func (c *NitroClient) FindBoundResource(resourceType string, resourceName string func (c *NitroClient) FindAllBoundResources(resourceType string, resourceName string, boundResourceType string) ([]map[string]interface{}, error) { result, err := c.listBoundResources(resourceName, resourceType, boundResourceType, "", "") if err != nil { - log.Printf("[INFO] go-nitro: FindAllBoundResources: No %s %s to %s binding found", resourceType, resourceName, boundResourceType) - return nil, fmt.Errorf("[ERROR] go-nitro: No %s %s to %s binding found, err=%s", resourceType, resourceName, boundResourceType, err) + c.logger.Info("FindAllBoundResources: No binding found", "resourceType", resourceType, "resourceName", "resourceName", resourceName, "boundResourceType", boundResourceType) + return nil, fmt.Errorf("[ERROR] nitro-go: No %s %s to %s binding found, err=%s", resourceType, resourceName, boundResourceType, err) } var data map[string]interface{} if err := json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindAllBoundResources: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindAllBoundResources: Failed to unmarshal Netscaler Response!, err=%s", err) + c.logger.Error("FindAllBoundResources: Failed to unmarshal Netscaler Response!", "error", err) + return nil, fmt.Errorf("[ERROR] nitro-go: FindAllBoundResources: Failed to unmarshal Netscaler Response!, err=%s", err) } bindingType := fmt.Sprintf("%s_%s_binding", resourceType, boundResourceType) binding, ok := data[bindingType] @@ -725,13 +732,13 @@ func (c *NitroClient) EnableFeatures(featureNames []string) error { featureJSON, err := JSONMarshal(featureStruct) if err != nil { - log.Printf("[ERROR] go-nitro: EnableFeatures: Failed to marshal features to JSON") - return fmt.Errorf("[ERROR] go-nitro: Failed to marshal features to JSON") + c.logger.Error("EnableFeatures: Failed to marshal features to JSON", "error", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to marshal features to JSON") } _, err = c.enableFeatures(featureJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to enable feature %v", err) + return fmt.Errorf("[ERROR] Failed to enable feature %v", err) } return nil } @@ -751,13 +758,13 @@ func (c *NitroClient) DisableFeatures(featureNames []string) error { featureJSON, err := JSONMarshal(featureStruct) if err != nil { - log.Printf("[ERROR] go-nitro: DisableFeatures: Failed to marshal features to JSON") - return fmt.Errorf("[ERROR] go-nitro: Failed to marshal features to JSON") + c.logger.Error("DisableFeatures: Failed to marshal features to JSON", "error", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to marshal features to JSON") } _, err = c.disableFeatures(featureJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to disable feature %v", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to disable feature %v", err) } return nil } @@ -767,17 +774,17 @@ func (c *NitroClient) ListEnabledFeatures() ([]string, error) { bytes, err := c.listEnabledFeatures() if err != nil { - return []string{}, fmt.Errorf("[ERROR] go-nitro: Failed to list features %v", err) + return []string{}, fmt.Errorf("[ERROR] nitro-go: Failed to list features %v", err) } var data map[string]interface{} if err = json.Unmarshal(bytes, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindAllBoundResources: Failed to unmarshal Netscaler Response!") - return []string{}, fmt.Errorf("[ERROR] go-nitro: Failed to unmarshal Netscaler Response to list Features") + c.logger.Error("ListEnabledFeatures: Failed to unmarshal Netscaler Response!", "error", err) + return []string{}, fmt.Errorf("[ERROR] nitro-go: Failed to unmarshal Netscaler Response to list Features") } feat, ok := data["nsfeature"] if !ok || feat == nil { - log.Printf("No features found") - return []string{}, fmt.Errorf("[ERROR] go-nitro: No features found") + c.logger.Error("ListEnabledFeatures: No features found") + return []string{}, fmt.Errorf("[ERROR] nitro-go: No features found") } features := data["nsfeature"].(map[string]interface{}) @@ -810,13 +817,13 @@ func (c *NitroClient) EnableModes(modeNames []string) error { modeJSON, err := JSONMarshal(modeStruct) if err != nil { - log.Printf("[ERROR] go-nitro: EnableModes: Failed to marshal modes to JSON") - return fmt.Errorf("[ERROR] go-nitro: Failed to marshal modes to JSON") + c.logger.Error("EnableModes: Failed to marshal modes to JSON", "error", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to marshal modes to JSON") } _, err = c.enableModes(modeJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to enable mode %v", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to enable mode %v", err) } return nil } @@ -826,17 +833,17 @@ func (c *NitroClient) ListEnabledModes() ([]string, error) { bytes, err := c.listEnabledModes() if err != nil { - return []string{}, fmt.Errorf("[ERROR] go-nitro: Failed to list modes %v", err) + return []string{}, fmt.Errorf("[ERROR] nitro-go: Failed to list modes %v", err) } var data map[string]interface{} if err = json.Unmarshal(bytes, &data); err != nil { - log.Printf("[ERROR] go-nitro: ListEnabledModes: Failed to unmarshal Netscaler Response!") - return []string{}, fmt.Errorf("[ERROR] go-nitro: Failed to unmarshal Netscaler Response to list Modes") + c.logger.Error("ListEnabledModes: Failed to unmarshal Netscaler Response!", "error", err) + return []string{}, fmt.Errorf("[ERROR] nitro-go: Failed to unmarshal Netscaler Response to list Modes") } mode, ok := data["nsmode"] if !ok || mode == nil { - log.Printf("No modes found") - return []string{}, fmt.Errorf("[ERROR] go-nitro: No modes found") + c.logger.Error("ListEnabledModes: No modes found") + return []string{}, fmt.Errorf("[ERROR] No modes found") } modes := data["nsmode"].(map[string]interface{}) @@ -865,14 +872,14 @@ func (c *NitroClient) SaveConfig() error { saveJSON, err := JSONMarshal(saveStruct) if err != nil { - log.Printf("[ERROR] go-nitro: SaveConfig: Failed to marshal save config to JSON") - return fmt.Errorf("[ERROR] go-nitro: Failed to marshal save config to JSON") + c.logger.Error("SaveConfig: Failed to marshal save config to JSON", "error", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to marshal save config to JSON") } - log.Printf("saveJSON is " + string(saveJSON)) + c.logger.Debug("saveJSON", "json", string(saveJSON)) err = c.saveConfig(saveJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to save config %v", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to save config %v", err) } return nil } @@ -891,14 +898,14 @@ func (c *NitroClient) ClearConfig() error { clearJSON, err := JSONMarshal(clearStruct) if err != nil { - log.Printf("[ERROR] go-nitro: ClearConfig: Failed to marshal clear config to JSON") - return fmt.Errorf("[ERROR] go-nitro: Failed to marshal clear config to JSON") + c.logger.Error("ClearConfig: Failed to marshal clear config to JSON", "error", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to marshal clear config to JSON") } - log.Printf("clearJSON is " + string(clearJSON)) + c.logger.Trace("clearJSON is ", "text", string(clearJSON)) err = c.clearConfig(clearJSON) if err != nil { - return fmt.Errorf("[ERROR] go-nitro: Failed to clear config %v", err) + return fmt.Errorf("[ERROR] nitro-go: Failed to clear config %v", err) } return nil } diff --git a/vendor/github.com/chiradeep/go-nitro/netscaler/netscaler_resource.go b/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go similarity index 78% rename from vendor/github.com/chiradeep/go-nitro/netscaler/netscaler_resource.go rename to vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go index 4d023961b..c258699cc 100644 --- a/vendor/github.com/chiradeep/go-nitro/netscaler/netscaler_resource.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go @@ -1,5 +1,5 @@ /* -Copyright 2016 Citrix Systems, Inc, All rights reserved. +Copyright 2021 Citrix Systems, Inc, All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package netscaler +package service import ( "bytes" @@ -22,10 +22,11 @@ import ( "errors" "fmt" "io/ioutil" - "log" "net/http" "net/url" "strings" + + "github.com/hashicorp/go-hclog" ) // Idempotent flag can't be added for these resources @@ -45,9 +46,9 @@ func contains(slice []string, val string) bool { return false } -type responseHandlerFunc func(resp *http.Response) ([]byte, error) +type responseHandlerFunc func(resp *http.Response, logger hclog.Logger) ([]byte, error) -func createResponseHandler(resp *http.Response) ([]byte, error) { +func createResponseHandler(resp *http.Response, logger hclog.Logger) ([]byte, error) { switch resp.Status { case "201 Created", "200 OK": body, _ := ioutil.ReadAll(resp.Body) @@ -64,7 +65,7 @@ func createResponseHandler(resp *http.Response) ([]byte, error) { "404 Not Found", "405 Method Not Allowed", "406 Not Acceptable", "503 Service Unavailable", "599 Netscaler specific error": body, _ := ioutil.ReadAll(resp.Body) - log.Println("[INFO] go-nitro: error = " + string(body)) + logger.Info("error = ", "body", string(body)) return body, errors.New("failed: " + resp.Status + " (" + string(body) + ")") default: body, err := ioutil.ReadAll(resp.Body) @@ -73,7 +74,7 @@ func createResponseHandler(resp *http.Response) ([]byte, error) { } } -func deleteResponseHandler(resp *http.Response) ([]byte, error) { +func deleteResponseHandler(resp *http.Response, logger hclog.Logger) ([]byte, error) { switch resp.Status { case "200 OK", "404 Not Found": body, _ := ioutil.ReadAll(resp.Body) @@ -83,7 +84,7 @@ func deleteResponseHandler(resp *http.Response) ([]byte, error) { "405 Method Not Allowed", "406 Not Acceptable", "409 Conflict", "503 Service Unavailable", "599 Netscaler specific error": body, _ := ioutil.ReadAll(resp.Body) - log.Println("[INFO] go-nitro: delete: error = " + string(body)) + logger.Info("delete: error = ", "body", string(body)) return body, errors.New("[INFO] delete failed: " + resp.Status + " (" + string(body) + ")") default: body, err := ioutil.ReadAll(resp.Body) @@ -92,24 +93,24 @@ func deleteResponseHandler(resp *http.Response) ([]byte, error) { } } -func readResponseHandler(resp *http.Response) ([]byte, error) { +func readResponseHandler(resp *http.Response, logger hclog.Logger) ([]byte, error) { switch resp.Status { case "200 OK": body, _ := ioutil.ReadAll(resp.Body) return body, nil case "404 Not Found": body, _ := ioutil.ReadAll(resp.Body) - log.Println("[DEBUG] go-nitro: read: 404 not found") - return body, errors.New("go-nitro: read: 404 not found: ") + logger.Debug("readResponseHandler: 404 not found") + return body, errors.New("read: 404 not found: ") case "400 Bad Request", "401 Unauthorized", "403 Forbidden", "405 Method Not Allowed", "406 Not Acceptable", "409 Conflict", "503 Service Unavailable", "599 Netscaler specific error": body, _ := ioutil.ReadAll(resp.Body) - log.Println("[INFO] go-nitro: read: error = " + string(body)) - return body, errors.New("[INFO] go-nitro: failed read: " + resp.Status + " (" + string(body) + ")") + logger.Info("read: error = ", "body", string(body)) + return body, errors.New("[INFO] failed read: " + resp.Status + " (" + string(body) + ")") default: body, err := ioutil.ReadAll(resp.Body) - log.Println("[INFO] go-nitro: read error = " + string(body)) + logger.Info("read error = ", "body", string(body)) return body, err } @@ -169,12 +170,9 @@ func maskHeaders(headers http.Header) http.Header { func (c *NitroClient) doHTTPRequest(method string, urlstr string, bytes *bytes.Buffer, respHandler responseHandlerFunc) ([]byte, error) { req, err := c.createHTTPRequest(method, urlstr, bytes) - log.Printf("[TRACE] go-nitro: doHTTPRequest HTTP method: %v", method) - log.Printf("[TRACE] go-nitro: doHTTPRequest HTTP url: %v", urlstr) - log.Printf("[TRACE] go-nitro: doHTTPRequest HTTP body: %v", bytes.String()) maskedHeaders := maskHeaders(req.Header) - log.Printf("[TRACE] go-nitro: doHTTPRequest HTTP request headers: %v", maskedHeaders) + c.logger.Trace("doHTTPRequest HTTP method", "method", method, "url", urlstr, "body", bytes.String(), "headers", maskedHeaders) resp, err := c.client.Do(req) if resp != nil { @@ -183,8 +181,8 @@ func (c *NitroClient) doHTTPRequest(method string, urlstr string, bytes *bytes.B if err != nil { return []byte{}, err } - log.Println("[DEBUG] go-nitro: response Status:", resp.Status) - body, err := respHandler(resp) + c.logger.Trace("response Status:", "status", resp.Status) + body, err := respHandler(resp, c.logger) // Clear sessionid in case of session-expiry if resp.Status == "401 Unauthorized" { var data map[string]interface{} @@ -203,31 +201,31 @@ func (c *NitroClient) doHTTPRequest(method string, urlstr string, bytes *bytes.B } func (c *NitroClient) createResource(resourceType string, resourceJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Creating resource of type ", resourceType) + c.logger.Trace("Creating ", "resourceType", resourceType) url := c.url + resourceType if !strings.HasSuffix(resourceType, "_binding") && !contains(idempotentInvalidResources, resourceType) { url = url + "?idempotent=yes" } - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("createResource", "url", url) return c.doHTTPRequest("POST", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) applyResource(resourceType string, resourceJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Applying resource of type ", resourceType) + c.logger.Trace("Applying", "resourceType", resourceType) url := c.url + resourceType + "?action=apply" - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("url is ", "url", url) return c.doHTTPRequest("POST", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) actOnResource(resourceType string, resourceJSON []byte, action string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: changing resource of type ", resourceType) + c.logger.Trace("acting on resource", "resourceType", resourceType) var url string if action == "" { @@ -235,58 +233,58 @@ func (c *NitroClient) actOnResource(resourceType string, resourceJSON []byte, ac } else { url = c.url + fmt.Sprintf("%s?action=%s", resourceType, action) } - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("actOnResource ", "url", url) return c.doHTTPRequest("POST", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) changeResource(resourceType string, resourceName string, resourceJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro: changing resource of type ", resourceType) + c.logger.Trace("changing resource", "resourceType", resourceType) url := c.url + resourceType + "/" + resourceName + "?action=update" - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("changeResource", "url", url) return c.doHTTPRequest("POST", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) updateResource(resourceType string, resourceName string, resourceJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Updating resource of type ", resourceType) + c.logger.Trace("Updating resource ", "resourceType", resourceType) url := c.url + resourceType + "/" + resourceName - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("updateResource ", "url", url) return c.doHTTPRequest("PUT", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) updateUnnamedResource(resourceType string, resourceJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Updating resource of type ", resourceType) + c.logger.Trace("Updating unnamed resource", "resourceType", resourceType) url := c.url + resourceType - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("updateUnnamedResource", "url", url) return c.doHTTPRequest("PUT", url, bytes.NewBuffer(resourceJSON), createResponseHandler) } func (c *NitroClient) deleteResource(resourceType string, resourceName string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Deleting resource of type ", resourceType) + c.logger.Trace("Deleting resource", "resourceType", resourceType) var url string if resourceName != "" { url = c.url + fmt.Sprintf("%s/%s", resourceType, resourceName) } else { url = c.url + fmt.Sprintf("%s", resourceType) } - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("deleteResource", "url", url) return c.doHTTPRequest("DELETE", url, bytes.NewBuffer([]byte{}), deleteResponseHandler) } func (c *NitroClient) deleteResourceWithArgs(resourceType string, resourceName string, args []string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Deleting resource of type ", resourceType, "with args ", args) + c.logger.Trace("Deleting resource with args", "resourceType", resourceType, "args ", args) var url string if resourceName != "" { url = c.url + fmt.Sprintf("%s/%s?args=", resourceType, resourceName) @@ -294,7 +292,7 @@ func (c *NitroClient) deleteResourceWithArgs(resourceType string, resourceName s url = c.url + fmt.Sprintf("%s?args=", resourceType) } url = url + strings.Join(args, ",") - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("deleteResourceWithArgs ", "url", url) return c.doHTTPRequest("DELETE", url, bytes.NewBuffer([]byte{}), deleteResponseHandler) @@ -312,7 +310,7 @@ func (c *NitroClient) deleteResourceWithArgsMap(resourceType string, resourceNam } func (c *NitroClient) unbindResource(resourceType string, resourceName string, boundResourceType string, boundResource string, bindingFilterName string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: Unbinding resource of type ", resourceType, " name", resourceName) + c.logger.Trace("Unbinding resource", "resourceType", resourceType, "resourceName", resourceName) bindingName := resourceType + "_" + boundResourceType + "_binding" url := c.url + "/" + bindingName + "/" + resourceName + "?args=" + bindingFilterName + ":" + boundResource @@ -322,7 +320,7 @@ func (c *NitroClient) unbindResource(resourceType string, resourceName string, b } func (c *NitroClient) listBoundResources(resourceName string, resourceType string, boundResourceType string, boundResourceFilterName string, boundResourceFilterValue string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing bound resources of type ", resourceType, ": ", resourceName) + c.logger.Trace("listing bound resources of type ", "resourceType", resourceType, "resourceName", resourceName) var url string if boundResourceFilterName == "" { url = c.url + fmt.Sprintf("%s_%s_binding/%s", resourceType, boundResourceType, resourceName) @@ -335,7 +333,7 @@ func (c *NitroClient) listBoundResources(resourceName string, resourceType strin } func (c *NitroClient) listFilteredResource(resourceType string, filter map[string]string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing resource of type ", resourceType, ", filter: ", filter) + c.logger.Trace("listing filtered resource of type ", "resourceType", resourceType, "filter: ", filter) var filter_strings []string for key, value := range filter { @@ -351,20 +349,20 @@ func (c *NitroClient) listFilteredResource(resourceType string, filter map[strin } func (c *NitroClient) listResource(resourceType string, resourceName string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing resource of type ", resourceType, ", name: ", resourceName) + c.logger.Trace("listing resource of type ", "resourceType", resourceType, "name", resourceName) url := c.url + resourceType if resourceName != "" { url = c.url + fmt.Sprintf("%s/%s", resourceType, resourceName) } - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("listResource", "url", url) return c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) } func (c *NitroClient) listResourceWithArgs(resourceType string, resourceName string, args []string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing resource of type ", resourceType, ", name: ", resourceName, ", args:", args) + c.logger.Trace("listing resource with args ", "resourceType", resourceType, "name", resourceName, "args", args) var url string if resourceName != "" { @@ -374,12 +372,13 @@ func (c *NitroClient) listResourceWithArgs(resourceType string, resourceName str } strArgs := strings.Join(args, ",") url2 := url + "?args=" + strArgs - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("listResourceWithArgs", "url", url) data, err := c.doHTTPRequest("GET", url2, bytes.NewBuffer([]byte{}), readResponseHandler) if err != nil { - log.Println("[DEBUG] go-nitro: error listing with args, trying filter") + c.logger.Trace("listResourceWithArgs: error listing with args, trying filter", "error", err) url2 = url + "?filter=" + strArgs + c.logger.Trace("listResourceWithArgs", "url2", url2) return c.doHTTPRequest("GET", url2, bytes.NewBuffer([]byte{}), readResponseHandler) } return data, err @@ -398,7 +397,7 @@ func (c *NitroClient) listResourceWithArgsMap(resourceType string, resourceName } func (c *NitroClient) enableFeatures(featureJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro Enabling features") + c.logger.Trace("Enabling features") url := c.url + "nsfeature?action=enable" return c.doHTTPRequest("POST", url, bytes.NewBuffer(featureJSON), createResponseHandler) @@ -406,7 +405,7 @@ func (c *NitroClient) enableFeatures(featureJSON []byte) ([]byte, error) { } func (c *NitroClient) disableFeatures(featureJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro Disabling features") + c.logger.Trace("Disabling features") url := c.url + "nsfeature?action=disable" return c.doHTTPRequest("POST", url, bytes.NewBuffer(featureJSON), createResponseHandler) @@ -414,7 +413,7 @@ func (c *NitroClient) disableFeatures(featureJSON []byte) ([]byte, error) { } func (c *NitroClient) listEnabledFeatures() ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing features") + c.logger.Trace("listing features") url := c.url + "nsfeature" return c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) @@ -422,7 +421,7 @@ func (c *NitroClient) listEnabledFeatures() ([]byte, error) { } func (c *NitroClient) enableModes(modeJSON []byte) ([]byte, error) { - log.Println("[DEBUG] go-nitro Enabling modes") + c.logger.Trace("Enabling modes") url := c.url + "nsmode?action=enable" return c.doHTTPRequest("POST", url, bytes.NewBuffer(modeJSON), createResponseHandler) @@ -430,7 +429,7 @@ func (c *NitroClient) enableModes(modeJSON []byte) ([]byte, error) { } func (c *NitroClient) listEnabledModes() ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing modes") + c.logger.Trace("listing modes") url := c.url + "nsmode" return c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) @@ -438,7 +437,7 @@ func (c *NitroClient) listEnabledModes() ([]byte, error) { } func (c *NitroClient) saveConfig(saveJSON []byte) error { - log.Println("[DEBUG] go-nitro: Saving config") + c.logger.Trace("Saving config") url := c.url + "nsconfig?action=save" _, err := c.doHTTPRequest("POST", url, bytes.NewBuffer(saveJSON), createResponseHandler) @@ -447,7 +446,7 @@ func (c *NitroClient) saveConfig(saveJSON []byte) error { } func (c *NitroClient) clearConfig(clearJSON []byte) error { - log.Println("[DEBUG] go-nitro: Clearing config") + c.logger.Trace("Clearing config") url := c.url + "nsconfig?action=clear" _, err := c.doHTTPRequest("POST", url, bytes.NewBuffer(clearJSON), createResponseHandler) @@ -455,20 +454,20 @@ func (c *NitroClient) clearConfig(clearJSON []byte) error { } func (c *NitroClient) listStat(resourceType, resourceName string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing resource of type ", resourceType, ", name: ", resourceName) + c.logger.Trace("listing stat of type ", "resourceType", resourceType, "name", resourceName) url := c.statsURL + resourceType if resourceName != "" { url = c.statsURL + fmt.Sprintf("%s/%s", resourceType, resourceName) } - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("listStat", "url", url) return c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) } func (c *NitroClient) listStatWithArgs(resourceType string, resourceName string, args []string) ([]byte, error) { - log.Println("[DEBUG] go-nitro: listing stat of type ", resourceType, ", name: ", resourceName, ", args:", args) + c.logger.Trace("listing stat ", "resourceType", resourceType, "name", resourceName, "args", args) var url string if len(resourceName) > 0 { @@ -478,7 +477,7 @@ func (c *NitroClient) listStatWithArgs(resourceType string, resourceName string, } strArgs := strings.Join(args, ",") url = url + "?args=" + strArgs - log.Println("[TRACE] go-nitro: url is ", url) + c.logger.Trace("listStatWithArgs", "url", url) return c.doHTTPRequest("GET", url, bytes.NewBuffer([]byte{}), readResponseHandler) } diff --git a/vendor/github.com/chiradeep/go-nitro/netscaler/resources.go b/vendor/github.com/citrix/adc-nitro-go/service/resources.go similarity index 99% rename from vendor/github.com/chiradeep/go-nitro/netscaler/resources.go rename to vendor/github.com/citrix/adc-nitro-go/service/resources.go index 5fee1010c..034709630 100644 --- a/vendor/github.com/chiradeep/go-nitro/netscaler/resources.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/resources.go @@ -1,5 +1,5 @@ /* -Copyright 2016 Citrix Systems, Inc, All rights reserved. +Copyright 2021 Citrix Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package netscaler +package service type Enum interface { Type() string diff --git a/vendor/github.com/chiradeep/go-nitro/netscaler/stats.go b/vendor/github.com/citrix/adc-nitro-go/service/stats.go similarity index 57% rename from vendor/github.com/chiradeep/go-nitro/netscaler/stats.go rename to vendor/github.com/citrix/adc-nitro-go/service/stats.go index 3dc65296c..f8e3b8fa8 100644 --- a/vendor/github.com/chiradeep/go-nitro/netscaler/stats.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/stats.go @@ -1,4 +1,20 @@ -package netscaler +/* +Copyright 2021 Citrix Systems, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package service import ( "log" @@ -11,17 +27,17 @@ func (c *NitroClient) FindAllStats(resourceType string) ([]map[string]interface{ var data map[string]interface{} result, err := c.listStat(resourceType, "") if err != nil { - log.Printf("[WARN] go-nitro: FindStats: No %s found", resourceType) - return nil, fmt.Errorf("[INFO] go-nitro: FindStats: No type %s found", resourceType) + log.Printf("[WARN] nitro-go: FindStats: No %s found", resourceType) + return nil, fmt.Errorf("[INFO] nitro-go: FindStats: No type %s found", resourceType) } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindStats: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindStats: Failed to unmarshal Netscaler Response: type %s", resourceType) + log.Printf("[ERROR] nitro-go: FindStats: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindStats: Failed to unmarshal Netscaler Response: type %s", resourceType) } rsrcs, ok := data[resourceType] if !ok || rsrcs == nil { - log.Printf("[WARN] go-nitro: FindStats No %s type found", resourceType) - return nil, fmt.Errorf("[INFO] go-nitro: FindStats: No type of %s found", resourceType) + log.Printf("[WARN] nitro-go: FindStats No %s type found", resourceType) + return nil, fmt.Errorf("[INFO] nitro-go: FindStats: No type of %s found", resourceType) } resources := data[resourceType].([]interface{}) ret := make([]map[string]interface{}, len(resources), len(resources)) @@ -36,17 +52,17 @@ func (c *NitroClient) FindStat(resourceType string, resourceName string) (map[st var data map[string]interface{} result, err := c.listStat(resourceType, resourceName) if err != nil { - log.Printf("[WARN] go-nitro: FindStat: No %s %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindStat: No resource %s of type %s found", resourceName, resourceType) + log.Printf("[WARN] nitro-go: FindStat: No %s %s found", resourceType, resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindStat: No resource %s of type %s found", resourceName, resourceType) } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindStat: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindStat: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) + log.Printf("[ERROR] nitro-go: FindStat: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindStat: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) } rsrc, ok := data[resourceType] if !ok || rsrc == nil { - log.Printf("[WARN] go-nitro: FindStat No %s type with name %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindStat: No resource %s of type %s found", resourceName, resourceType) + log.Printf("[WARN] nitro-go: FindStat No %s type with name %s found", resourceType, resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindStat: No resource %s of type %s found", resourceName, resourceType) } resource := data[resourceType].([]interface{})[0] //only one resource obviously @@ -58,17 +74,17 @@ func (c *NitroClient) FindStatWithArgs(resourceType string, resourceName string, var data map[string]interface{} result, err := c.listStatWithArgs(resourceType, resourceName, args) if err != nil { - log.Printf("[WARN] go-nitro: FindStatWithArgs: No %s %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindStatWithArgs: No resource %s of type %s found", resourceName, resourceType) + log.Printf("[WARN] nitro-go: FindStatWithArgs: No %s %s found", resourceType, resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindStatWithArgs: No resource %s of type %s found", resourceName, resourceType) } if err = json.Unmarshal(result, &data); err != nil { - log.Printf("[ERROR] go-nitro: FindStatWithArgs: Failed to unmarshal Netscaler Response!") - return nil, fmt.Errorf("[ERROR] go-nitro: FindStatWithArgs: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) + log.Printf("[ERROR] nitro-go: FindStatWithArgs: Failed to unmarshal Netscaler Response!") + return nil, fmt.Errorf("[ERROR] nitro-go: FindStatWithArgs: Failed to unmarshal Netscaler Response:resource %s of type %s", resourceName, resourceType) } rsrc, ok := data[resourceType] if !ok || rsrc == nil { - log.Printf("[WARN] go-nitro: FindStatWithArgs No %s type with name %s found", resourceType, resourceName) - return nil, fmt.Errorf("[INFO] go-nitro: FindStatWithArgs: No resource %s of type %s found", resourceName, resourceType) + log.Printf("[WARN] nitro-go: FindStatWithArgs No %s type with name %s found", resourceType, resourceName) + return nil, fmt.Errorf("[INFO] nitro-go: FindStatWithArgs: No resource %s of type %s found", resourceName, resourceType) } switch result := data[resourceType].(type) { case map[string]interface{}: @@ -76,7 +92,7 @@ func (c *NitroClient) FindStatWithArgs(resourceType string, resourceName string, case []interface{}: return result[0].(map[string]interface{}), nil default: - log.Printf("[WARN] go-nitro: FindStatWithArgs Unable to determine type of response") - return nil, fmt.Errorf("[INFO] go-nitro: FindStatWithArgs: Unable to determine type of response") + log.Printf("[WARN] nitro-go: FindStatWithArgs Unable to determine type of response") + return nil, fmt.Errorf("[INFO] nitro-go: FindStatWithArgs: Unable to determine type of response") } } diff --git a/vendor/github.com/hashicorp/go-hclog/README.md b/vendor/github.com/hashicorp/go-hclog/README.md index 9b6845e98..5d56f4b59 100644 --- a/vendor/github.com/hashicorp/go-hclog/README.md +++ b/vendor/github.com/hashicorp/go-hclog/README.md @@ -132,7 +132,7 @@ Alternatively, you may configure the system-wide logger: ```go // log the standard logger from 'import "log"' -log.SetOutput(appLogger.Writer(&hclog.StandardLoggerOptions{InferLevels: true})) +log.SetOutput(appLogger.StandardWriter(&hclog.StandardLoggerOptions{InferLevels: true})) log.SetPrefix("") log.SetFlags(0) diff --git a/vendor/github.com/hashicorp/go-hclog/colorize_unix.go b/vendor/github.com/hashicorp/go-hclog/colorize_unix.go new file mode 100644 index 000000000..44aa9bf2c --- /dev/null +++ b/vendor/github.com/hashicorp/go-hclog/colorize_unix.go @@ -0,0 +1,27 @@ +// +build !windows + +package hclog + +import ( + "github.com/mattn/go-isatty" +) + +// setColorization will mutate the values of this logger +// to approperately configure colorization options. It provides +// a wrapper to the output stream on Windows systems. +func (l *intLogger) setColorization(opts *LoggerOptions) { + switch opts.Color { + case ColorOff: + fallthrough + case ForceColor: + return + case AutoColor: + fi := l.checkWriterIsFile() + isUnixTerm := isatty.IsTerminal(fi.Fd()) + isCygwinTerm := isatty.IsCygwinTerminal(fi.Fd()) + isTerm := isUnixTerm || isCygwinTerm + if !isTerm { + l.writer.color = ColorOff + } + } +} diff --git a/vendor/github.com/hashicorp/go-hclog/colorize_windows.go b/vendor/github.com/hashicorp/go-hclog/colorize_windows.go new file mode 100644 index 000000000..23486b6d7 --- /dev/null +++ b/vendor/github.com/hashicorp/go-hclog/colorize_windows.go @@ -0,0 +1,33 @@ +// +build windows + +package hclog + +import ( + "os" + + colorable "github.com/mattn/go-colorable" + "github.com/mattn/go-isatty" +) + +// setColorization will mutate the values of this logger +// to approperately configure colorization options. It provides +// a wrapper to the output stream on Windows systems. +func (l *intLogger) setColorization(opts *LoggerOptions) { + switch opts.Color { + case ColorOff: + return + case ForceColor: + fi := l.checkWriterIsFile() + l.writer.w = colorable.NewColorable(fi) + case AutoColor: + fi := l.checkWriterIsFile() + isUnixTerm := isatty.IsTerminal(os.Stdout.Fd()) + isCygwinTerm := isatty.IsCygwinTerminal(os.Stdout.Fd()) + isTerm := isUnixTerm || isCygwinTerm + if !isTerm { + l.writer.color = ColorOff + return + } + l.writer.w = colorable.NewColorable(fi) + } +} diff --git a/vendor/github.com/hashicorp/go-hclog/exclude.go b/vendor/github.com/hashicorp/go-hclog/exclude.go new file mode 100644 index 000000000..cfd4307a8 --- /dev/null +++ b/vendor/github.com/hashicorp/go-hclog/exclude.go @@ -0,0 +1,71 @@ +package hclog + +import ( + "regexp" + "strings" +) + +// ExcludeByMessage provides a simple way to build a list of log messages that +// can be queried and matched. This is meant to be used with the Exclude +// option on Options to suppress log messages. This does not hold any mutexs +// within itself, so normal usage would be to Add entries at setup and none after +// Exclude is going to be called. Exclude is called with a mutex held within +// the Logger, so that doesn't need to use a mutex. Example usage: +// +// f := new(ExcludeByMessage) +// f.Add("Noisy log message text") +// appLogger.Exclude = f.Exclude +type ExcludeByMessage struct { + messages map[string]struct{} +} + +// Add a message to be filtered. Do not call this after Exclude is to be called +// due to concurrency issues. +func (f *ExcludeByMessage) Add(msg string) { + if f.messages == nil { + f.messages = make(map[string]struct{}) + } + + f.messages[msg] = struct{}{} +} + +// Return true if the given message should be included +func (f *ExcludeByMessage) Exclude(level Level, msg string, args ...interface{}) bool { + _, ok := f.messages[msg] + return ok +} + +// ExcludeByPrefix is a simple type to match a message string that has a common prefix. +type ExcludeByPrefix string + +// Matches an message that starts with the prefix. +func (p ExcludeByPrefix) Exclude(level Level, msg string, args ...interface{}) bool { + return strings.HasPrefix(msg, string(p)) +} + +// ExcludeByRegexp takes a regexp and uses it to match a log message string. If it matches +// the log entry is excluded. +type ExcludeByRegexp struct { + Regexp *regexp.Regexp +} + +// Exclude the log message if the message string matches the regexp +func (e ExcludeByRegexp) Exclude(level Level, msg string, args ...interface{}) bool { + return e.Regexp.MatchString(msg) +} + +// ExcludeFuncs is a slice of functions that will called to see if a log entry +// should be filtered or not. It stops calling functions once at least one returns +// true. +type ExcludeFuncs []func(level Level, msg string, args ...interface{}) bool + +// Calls each function until one of them returns true +func (ff ExcludeFuncs) Exclude(level Level, msg string, args ...interface{}) bool { + for _, f := range ff { + if f(level, msg, args...) { + return true + } + } + + return false +} diff --git a/vendor/github.com/hashicorp/go-hclog/global.go b/vendor/github.com/hashicorp/go-hclog/global.go index 3efc54c12..22ebc57d8 100644 --- a/vendor/github.com/hashicorp/go-hclog/global.go +++ b/vendor/github.com/hashicorp/go-hclog/global.go @@ -20,6 +20,13 @@ var ( // Default returns a globally held logger. This can be a good starting // place, and then you can use .With() and .Name() to create sub-loggers // to be used in more specific contexts. +// The value of the Default logger can be set via SetDefault() or by +// changing the options in DefaultOptions. +// +// This method is goroutine safe, returning a global from memory, but +// cause should be used if SetDefault() is called it random times +// in the program as that may result in race conditions and an unexpected +// Logger being returned. func Default() Logger { protect.Do(func() { // If SetDefault was used before Default() was called, we need to @@ -41,6 +48,13 @@ func L() Logger { // to the one given. This allows packages to use the default logger // and have higher level packages change it to match the execution // environment. It returns any old default if there is one. +// +// NOTE: This is expected to be called early in the program to setup +// a default logger. As such, it does not attempt to make itself +// not racy with regard to the value of the default logger. Ergo +// if it is called in goroutines, you may experience race conditions +// with other goroutines retrieving the default logger. Basically, +// don't do that. func SetDefault(log Logger) Logger { old := def def = log diff --git a/vendor/github.com/hashicorp/go-hclog/go.mod b/vendor/github.com/hashicorp/go-hclog/go.mod index 0d079a654..b6698c083 100644 --- a/vendor/github.com/hashicorp/go-hclog/go.mod +++ b/vendor/github.com/hashicorp/go-hclog/go.mod @@ -2,6 +2,11 @@ module github.com/hashicorp/go-hclog require ( github.com/davecgh/go-spew v1.1.1 // indirect + github.com/fatih/color v1.7.0 + github.com/mattn/go-colorable v0.1.4 + github.com/mattn/go-isatty v0.0.10 github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/testify v1.2.2 ) + +go 1.13 diff --git a/vendor/github.com/hashicorp/go-hclog/go.sum b/vendor/github.com/hashicorp/go-hclog/go.sum index e03ee77d9..3a656dfd9 100644 --- a/vendor/github.com/hashicorp/go-hclog/go.sum +++ b/vendor/github.com/hashicorp/go-hclog/go.sum @@ -1,6 +1,18 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/vendor/github.com/hashicorp/go-hclog/interceptlogger.go b/vendor/github.com/hashicorp/go-hclog/interceptlogger.go new file mode 100644 index 000000000..631baf2f0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-hclog/interceptlogger.go @@ -0,0 +1,203 @@ +package hclog + +import ( + "io" + "log" + "sync" + "sync/atomic" +) + +var _ Logger = &interceptLogger{} + +type interceptLogger struct { + Logger + + mu *sync.Mutex + sinkCount *int32 + Sinks map[SinkAdapter]struct{} +} + +func NewInterceptLogger(opts *LoggerOptions) InterceptLogger { + l := newLogger(opts) + if l.callerOffset > 0 { + // extra frames for interceptLogger.{Warn,Info,Log,etc...}, and interceptLogger.log + l.callerOffset += 2 + } + intercept := &interceptLogger{ + Logger: l, + mu: new(sync.Mutex), + sinkCount: new(int32), + Sinks: make(map[SinkAdapter]struct{}), + } + + atomic.StoreInt32(intercept.sinkCount, 0) + + return intercept +} + +func (i *interceptLogger) Log(level Level, msg string, args ...interface{}) { + i.log(level, msg, args...) +} + +// log is used to make the caller stack frame lookup consistent. If Warn,Info,etc +// all called Log then direct calls to Log would have a different stack frame +// depth. By having all the methods call the same helper we ensure the stack +// frame depth is the same. +func (i *interceptLogger) log(level Level, msg string, args ...interface{}) { + i.Logger.Log(level, msg, args...) + if atomic.LoadInt32(i.sinkCount) == 0 { + return + } + + i.mu.Lock() + defer i.mu.Unlock() + for s := range i.Sinks { + s.Accept(i.Name(), level, msg, i.retrieveImplied(args...)...) + } +} + +// Emit the message and args at TRACE level to log and sinks +func (i *interceptLogger) Trace(msg string, args ...interface{}) { + i.log(Trace, msg, args...) +} + +// Emit the message and args at DEBUG level to log and sinks +func (i *interceptLogger) Debug(msg string, args ...interface{}) { + i.log(Debug, msg, args...) +} + +// Emit the message and args at INFO level to log and sinks +func (i *interceptLogger) Info(msg string, args ...interface{}) { + i.log(Info, msg, args...) +} + +// Emit the message and args at WARN level to log and sinks +func (i *interceptLogger) Warn(msg string, args ...interface{}) { + i.log(Warn, msg, args...) +} + +// Emit the message and args at ERROR level to log and sinks +func (i *interceptLogger) Error(msg string, args ...interface{}) { + i.log(Error, msg, args...) +} + +func (i *interceptLogger) retrieveImplied(args ...interface{}) []interface{} { + top := i.Logger.ImpliedArgs() + + cp := make([]interface{}, len(top)+len(args)) + copy(cp, top) + copy(cp[len(top):], args) + + return cp +} + +// Create a new sub-Logger that a name descending from the current name. +// This is used to create a subsystem specific Logger. +// Registered sinks will subscribe to these messages as well. +func (i *interceptLogger) Named(name string) Logger { + return i.NamedIntercept(name) +} + +// Create a new sub-Logger with an explicit name. This ignores the current +// name. This is used to create a standalone logger that doesn't fall +// within the normal hierarchy. Registered sinks will subscribe +// to these messages as well. +func (i *interceptLogger) ResetNamed(name string) Logger { + return i.ResetNamedIntercept(name) +} + +// Create a new sub-Logger that a name decending from the current name. +// This is used to create a subsystem specific Logger. +// Registered sinks will subscribe to these messages as well. +func (i *interceptLogger) NamedIntercept(name string) InterceptLogger { + var sub interceptLogger + + sub = *i + sub.Logger = i.Logger.Named(name) + return &sub +} + +// Create a new sub-Logger with an explicit name. This ignores the current +// name. This is used to create a standalone logger that doesn't fall +// within the normal hierarchy. Registered sinks will subscribe +// to these messages as well. +func (i *interceptLogger) ResetNamedIntercept(name string) InterceptLogger { + var sub interceptLogger + + sub = *i + sub.Logger = i.Logger.ResetNamed(name) + return &sub +} + +// Return a sub-Logger for which every emitted log message will contain +// the given key/value pairs. This is used to create a context specific +// Logger. +func (i *interceptLogger) With(args ...interface{}) Logger { + var sub interceptLogger + + sub = *i + + sub.Logger = i.Logger.With(args...) + + return &sub +} + +// RegisterSink attaches a SinkAdapter to interceptLoggers sinks. +func (i *interceptLogger) RegisterSink(sink SinkAdapter) { + i.mu.Lock() + defer i.mu.Unlock() + + i.Sinks[sink] = struct{}{} + + atomic.AddInt32(i.sinkCount, 1) +} + +// DeregisterSink removes a SinkAdapter from interceptLoggers sinks. +func (i *interceptLogger) DeregisterSink(sink SinkAdapter) { + i.mu.Lock() + defer i.mu.Unlock() + + delete(i.Sinks, sink) + + atomic.AddInt32(i.sinkCount, -1) +} + +func (i *interceptLogger) StandardLoggerIntercept(opts *StandardLoggerOptions) *log.Logger { + return i.StandardLogger(opts) +} + +func (i *interceptLogger) StandardLogger(opts *StandardLoggerOptions) *log.Logger { + if opts == nil { + opts = &StandardLoggerOptions{} + } + + return log.New(i.StandardWriter(opts), "", 0) +} + +func (i *interceptLogger) StandardWriterIntercept(opts *StandardLoggerOptions) io.Writer { + return i.StandardWriter(opts) +} + +func (i *interceptLogger) StandardWriter(opts *StandardLoggerOptions) io.Writer { + return &stdlogAdapter{ + log: i, + inferLevels: opts.InferLevels, + forceLevel: opts.ForceLevel, + } +} + +func (i *interceptLogger) ResetOutput(opts *LoggerOptions) error { + if or, ok := i.Logger.(OutputResettable); ok { + return or.ResetOutput(opts) + } else { + return nil + } +} + +func (i *interceptLogger) ResetOutputWithFlush(opts *LoggerOptions, flushable Flushable) error { + if or, ok := i.Logger.(OutputResettable); ok { + return or.ResetOutputWithFlush(opts, flushable) + } else { + return nil + } +} diff --git a/vendor/github.com/hashicorp/go-hclog/intlogger.go b/vendor/github.com/hashicorp/go-hclog/intlogger.go index 219656c4c..6099e6726 100644 --- a/vendor/github.com/hashicorp/go-hclog/intlogger.go +++ b/vendor/github.com/hashicorp/go-hclog/intlogger.go @@ -4,9 +4,11 @@ import ( "bytes" "encoding" "encoding/json" + "errors" "fmt" "io" "log" + "os" "reflect" "runtime" "sort" @@ -15,12 +17,18 @@ import ( "sync" "sync/atomic" "time" + + "github.com/fatih/color" ) -// TimeFormat to use for logging. This is a version of RFC3339 that contains -// contains millisecond precision +// TimeFormat is the time format to use for plain (non-JSON) output. +// This is a version of RFC3339 that contains millisecond precision. const TimeFormat = "2006-01-02T15:04:05.000Z0700" +// TimeFormatJSON is the time format to use for JSON output. +// This is a version of RFC3339 that contains microsecond precision. +const TimeFormatJSON = "2006-01-02T15:04:05.000000Z07:00" + // errJsonUnsupportedTypeMsg is included in log json entries, if an arg cannot be serialized to json const errJsonUnsupportedTypeMsg = "logging contained values that don't serialize to json" @@ -32,6 +40,14 @@ var ( Warn: "[WARN] ", Error: "[ERROR]", } + + _levelToColor = map[Level]*color.Color{ + Debug: color.New(color.FgHiWhite), + Trace: color.New(color.FgHiGreen), + Info: color.New(color.FgHiBlue), + Warn: color.New(color.FgHiYellow), + Error: color.New(color.FgHiRed), + } ) // Make sure that intLogger is a Logger @@ -40,22 +56,43 @@ var _ Logger = &intLogger{} // intLogger is an internal logger implementation. Internal in that it is // defined entirely by this package. type intLogger struct { - json bool - caller bool - name string - timeFormat string + json bool + callerOffset int + name string + timeFormat string + disableTime bool - // This is a pointer so that it's shared by any derived loggers, since + // This is an interface so that it's shared by any derived loggers, since // those derived loggers share the bufio.Writer as well. - mutex *sync.Mutex + mutex Locker writer *writer level *int32 implied []interface{} + + exclude func(level Level, msg string, args ...interface{}) bool + + // create subloggers with their own level setting + independentLevels bool } // New returns a configured logger. func New(opts *LoggerOptions) Logger { + return newLogger(opts) +} + +// NewSinkAdapter returns a SinkAdapter with configured settings +// defined by LoggerOptions +func NewSinkAdapter(opts *LoggerOptions) SinkAdapter { + l := newLogger(opts) + if l.callerOffset > 0 { + // extra frames for interceptLogger.{Warn,Info,Log,etc...}, and SinkAdapter.Accept + l.callerOffset += 2 + } + return l +} + +func newLogger(opts *LoggerOptions) *intLogger { if opts == nil { opts = &LoggerOptions{} } @@ -76,27 +113,41 @@ func New(opts *LoggerOptions) Logger { } l := &intLogger{ - json: opts.JSONFormat, - caller: opts.IncludeLocation, - name: opts.Name, - timeFormat: TimeFormat, - mutex: mutex, - writer: newWriter(output), - level: new(int32), + json: opts.JSONFormat, + name: opts.Name, + timeFormat: TimeFormat, + disableTime: opts.DisableTime, + mutex: mutex, + writer: newWriter(output, opts.Color), + level: new(int32), + exclude: opts.Exclude, + independentLevels: opts.IndependentLevels, + } + if opts.IncludeLocation { + l.callerOffset = offsetIntLogger + opts.AdditionalLocationOffset } + if l.json { + l.timeFormat = TimeFormatJSON + } if opts.TimeFormat != "" { l.timeFormat = opts.TimeFormat } + l.setColorization(opts) + atomic.StoreInt32(l.level, int32(level)) return l } +// offsetIntLogger is the stack frame offset in the call stack for the caller to +// one of the Warn,Info,Log,etc methods. +const offsetIntLogger = 3 + // Log a message and a set of key/value pairs if the given level is at // or more severe that the threshold configured in the Logger. -func (l *intLogger) Log(level Level, msg string, args ...interface{}) { +func (l *intLogger) log(name string, level Level, msg string, args ...interface{}) { if level < Level(atomic.LoadInt32(l.level)) { return } @@ -106,10 +157,14 @@ func (l *intLogger) Log(level Level, msg string, args ...interface{}) { l.mutex.Lock() defer l.mutex.Unlock() + if l.exclude != nil && l.exclude(level, msg, args...) { + return + } + if l.json { - l.logJSON(t, level, msg, args...) + l.logJSON(t, name, level, msg, args...) } else { - l.log(t, level, msg, args...) + l.logPlain(t, name, level, msg, args...) } l.writer.Flush(level) @@ -145,9 +200,12 @@ func trimCallerPath(path string) string { } // Non-JSON logging format function -func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{}) { - l.writer.WriteString(t.Format(l.timeFormat)) - l.writer.WriteByte(' ') +func (l *intLogger) logPlain(t time.Time, name string, level Level, msg string, args ...interface{}) { + + if !l.disableTime { + l.writer.WriteString(t.Format(l.timeFormat)) + l.writer.WriteByte(' ') + } s, ok := _levelToBracket[level] if ok { @@ -156,8 +214,8 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ l.writer.WriteString("[?????]") } - if l.caller { - if _, file, line, ok := runtime.Caller(3); ok { + if l.callerOffset > 0 { + if _, file, line, ok := runtime.Caller(l.callerOffset); ok { l.writer.WriteByte(' ') l.writer.WriteString(trimCallerPath(file)) l.writer.WriteByte(':') @@ -168,8 +226,8 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ l.writer.WriteByte(' ') - if l.name != "" { - l.writer.WriteString(l.name) + if name != "" { + l.writer.WriteString(name) l.writer.WriteString(": ") } @@ -186,7 +244,8 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ args = args[:len(args)-1] stacktrace = cs } else { - args = append(args, "") + extra := args[len(args)-1] + args = append(args[:len(args)-1], MissingKey, extra) } } @@ -202,6 +261,9 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ switch st := args[i+1].(type) { case string: val = st + if st == "" { + val = `""` + } case int: val = strconv.FormatInt(int64(st), 10) case int64: @@ -222,6 +284,12 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ val = strconv.FormatUint(uint64(st), 10) case uint8: val = strconv.FormatUint(uint64(st), 10) + case Hex: + val = "0x" + strconv.FormatUint(uint64(st), 16) + case Octal: + val = "0" + strconv.FormatUint(uint64(st), 8) + case Binary: + val = "0b" + strconv.FormatUint(uint64(st), 2) case CapturedStacktrace: stacktrace = st continue FOR @@ -237,15 +305,32 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ } } - l.writer.WriteByte(' ') - l.writer.WriteString(args[i].(string)) - l.writer.WriteByte('=') + var key string + + switch st := args[i].(type) { + case string: + key = st + default: + key = fmt.Sprintf("%s", st) + } - if !raw && strings.ContainsAny(val, " \t\n\r") { + if strings.Contains(val, "\n") { + l.writer.WriteString("\n ") + l.writer.WriteString(key) + l.writer.WriteString("=\n") + writeIndent(l.writer, val, " | ") + l.writer.WriteString(" ") + } else if !raw && strings.ContainsAny(val, " \t") { + l.writer.WriteByte(' ') + l.writer.WriteString(key) + l.writer.WriteByte('=') l.writer.WriteByte('"') l.writer.WriteString(val) l.writer.WriteByte('"') } else { + l.writer.WriteByte(' ') + l.writer.WriteString(key) + l.writer.WriteByte('=') l.writer.WriteString(val) } } @@ -255,6 +340,26 @@ func (l *intLogger) log(t time.Time, level Level, msg string, args ...interface{ if stacktrace != "" { l.writer.WriteString(string(stacktrace)) + l.writer.WriteString("\n") + } +} + +func writeIndent(w *writer, str string, indent string) { + for { + nl := strings.IndexByte(str, "\n"[0]) + if nl == -1 { + if str != "" { + w.WriteString(indent) + w.WriteString(str) + w.WriteString("\n") + } + return + } + + w.WriteString(indent) + w.WriteString(str[:nl]) + w.WriteString("\n") + str = str[nl+1:] } } @@ -274,22 +379,19 @@ func (l *intLogger) renderSlice(v reflect.Value) string { switch sv.Kind() { case reflect.String: - val = sv.String() + val = strconv.Quote(sv.String()) case reflect.Int, reflect.Int16, reflect.Int32, reflect.Int64: val = strconv.FormatInt(sv.Int(), 10) case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64: val = strconv.FormatUint(sv.Uint(), 10) default: val = fmt.Sprintf("%v", sv.Interface()) + if strings.ContainsAny(val, " \t\n\r") { + val = strconv.Quote(val) + } } - if strings.ContainsAny(val, " \t\n\r") { - buf.WriteByte('"') - buf.WriteString(val) - buf.WriteByte('"') - } else { - buf.WriteString(val) - } + buf.WriteString(val) } buf.WriteRune(']') @@ -298,8 +400,8 @@ func (l *intLogger) renderSlice(v reflect.Value) string { } // JSON logging function -func (l *intLogger) logJSON(t time.Time, level Level, msg string, args ...interface{}) { - vals := l.jsonMapEntry(t, level, msg) +func (l *intLogger) logJSON(t time.Time, name string, level Level, msg string, args ...interface{}) { + vals := l.jsonMapEntry(t, name, level, msg) args = append(l.implied, args...) if args != nil && len(args) > 0 { @@ -309,16 +411,12 @@ func (l *intLogger) logJSON(t time.Time, level Level, msg string, args ...interf args = args[:len(args)-1] vals["stacktrace"] = cs } else { - args = append(args, "") + extra := args[len(args)-1] + args = append(args[:len(args)-1], MissingKey, extra) } } for i := 0; i < len(args); i = i + 2 { - if _, ok := args[i].(string); !ok { - // As this is the logging function not much we can do here - // without injecting into logs... - continue - } val := args[i+1] switch sv := val.(type) { case error: @@ -334,14 +432,22 @@ func (l *intLogger) logJSON(t time.Time, level Level, msg string, args ...interf val = fmt.Sprintf(sv[0].(string), sv[1:]...) } - vals[args[i].(string)] = val + var key string + + switch st := args[i].(type) { + case string: + key = st + default: + key = fmt.Sprintf("%s", st) + } + vals[key] = val } } err := json.NewEncoder(l.writer).Encode(vals) if err != nil { if _, ok := err.(*json.UnsupportedTypeError); ok { - plainVal := l.jsonMapEntry(t, level, msg) + plainVal := l.jsonMapEntry(t, name, level, msg) plainVal["@warn"] = errJsonUnsupportedTypeMsg json.NewEncoder(l.writer).Encode(plainVal) @@ -349,10 +455,12 @@ func (l *intLogger) logJSON(t time.Time, level Level, msg string, args ...interf } } -func (l intLogger) jsonMapEntry(t time.Time, level Level, msg string) map[string]interface{} { +func (l intLogger) jsonMapEntry(t time.Time, name string, level Level, msg string) map[string]interface{} { vals := map[string]interface{}{ - "@message": msg, - "@timestamp": t.Format("2006-01-02T15:04:05.000000Z07:00"), + "@message": msg, + } + if !l.disableTime { + vals["@timestamp"] = t.Format(l.timeFormat) } var levelStr string @@ -373,41 +481,46 @@ func (l intLogger) jsonMapEntry(t time.Time, level Level, msg string) map[string vals["@level"] = levelStr - if l.name != "" { - vals["@module"] = l.name + if name != "" { + vals["@module"] = name } - if l.caller { - if _, file, line, ok := runtime.Caller(4); ok { + if l.callerOffset > 0 { + if _, file, line, ok := runtime.Caller(l.callerOffset + 1); ok { vals["@caller"] = fmt.Sprintf("%s:%d", file, line) } } return vals } +// Emit the message and args at the provided level +func (l *intLogger) Log(level Level, msg string, args ...interface{}) { + l.log(l.Name(), level, msg, args...) +} + // Emit the message and args at DEBUG level func (l *intLogger) Debug(msg string, args ...interface{}) { - l.Log(Debug, msg, args...) + l.log(l.Name(), Debug, msg, args...) } // Emit the message and args at TRACE level func (l *intLogger) Trace(msg string, args ...interface{}) { - l.Log(Trace, msg, args...) + l.log(l.Name(), Trace, msg, args...) } // Emit the message and args at INFO level func (l *intLogger) Info(msg string, args ...interface{}) { - l.Log(Info, msg, args...) + l.log(l.Name(), Info, msg, args...) } // Emit the message and args at WARN level func (l *intLogger) Warn(msg string, args ...interface{}) { - l.Log(Warn, msg, args...) + l.log(l.Name(), Warn, msg, args...) } // Emit the message and args at ERROR level func (l *intLogger) Error(msg string, args ...interface{}) { - l.Log(Error, msg, args...) + l.log(l.Name(), Error, msg, args...) } // Indicate that the logger would emit TRACE level logs @@ -435,15 +548,20 @@ func (l *intLogger) IsError() bool { return Level(atomic.LoadInt32(l.level)) <= Error } +const MissingKey = "EXTRA_VALUE_AT_END" + // Return a sub-Logger for which every emitted log message will contain // the given key/value pairs. This is used to create a context specific // Logger. func (l *intLogger) With(args ...interface{}) Logger { + var extra interface{} + if len(args)%2 != 0 { - panic("With() call requires paired arguments") + extra = args[len(args)-1] + args = args[:len(args)-1] } - sl := *l + sl := l.copy() result := make(map[string]interface{}, len(l.implied)+len(args)) keys := make([]string, 0, len(l.implied)+len(args)) @@ -473,13 +591,17 @@ func (l *intLogger) With(args ...interface{}) Logger { sl.implied = append(sl.implied, result[k]) } - return &sl + if extra != nil { + sl.implied = append(sl.implied, MissingKey, extra) + } + + return sl } // Create a new sub-Logger that a name decending from the current name. // This is used to create a subsystem specific Logger. func (l *intLogger) Named(name string) Logger { - sl := *l + sl := l.copy() if sl.name != "" { sl.name = sl.name + "." + name @@ -487,18 +609,53 @@ func (l *intLogger) Named(name string) Logger { sl.name = name } - return &sl + return sl } // Create a new sub-Logger with an explicit name. This ignores the current // name. This is used to create a standalone logger that doesn't fall // within the normal hierarchy. func (l *intLogger) ResetNamed(name string) Logger { - sl := *l + sl := l.copy() sl.name = name - return &sl + return sl +} + +func (l *intLogger) ResetOutput(opts *LoggerOptions) error { + if opts.Output == nil { + return errors.New("given output is nil") + } + + l.mutex.Lock() + defer l.mutex.Unlock() + + return l.resetOutput(opts) +} + +func (l *intLogger) ResetOutputWithFlush(opts *LoggerOptions, flushable Flushable) error { + if opts.Output == nil { + return errors.New("given output is nil") + } + if flushable == nil { + return errors.New("flushable is nil") + } + + l.mutex.Lock() + defer l.mutex.Unlock() + + if err := flushable.Flush(); err != nil { + return err + } + + return l.resetOutput(opts) +} + +func (l *intLogger) resetOutput(opts *LoggerOptions) error { + l.writer = newWriter(opts.Output, opts.Color) + l.setColorization(opts) + return nil } // Update the logging level on-the-fly. This will affect all subloggers as @@ -519,9 +676,54 @@ func (l *intLogger) StandardLogger(opts *StandardLoggerOptions) *log.Logger { } func (l *intLogger) StandardWriter(opts *StandardLoggerOptions) io.Writer { + newLog := *l + if l.callerOffset > 0 { + // the stack is + // logger.printf() -> l.Output() ->l.out.writer(hclog:stdlogAdaptor.write) -> hclog:stdlogAdaptor.dispatch() + // So plus 4. + newLog.callerOffset = l.callerOffset + 4 + } return &stdlogAdapter{ - log: l, + log: &newLog, inferLevels: opts.InferLevels, forceLevel: opts.ForceLevel, } } + +// checks if the underlying io.Writer is a file, and +// panics if not. For use by colorization. +func (l *intLogger) checkWriterIsFile() *os.File { + fi, ok := l.writer.w.(*os.File) + if !ok { + panic("Cannot enable coloring of non-file Writers") + } + return fi +} + +// Accept implements the SinkAdapter interface +func (i *intLogger) Accept(name string, level Level, msg string, args ...interface{}) { + i.log(name, level, msg, args...) +} + +// ImpliedArgs returns the loggers implied args +func (i *intLogger) ImpliedArgs() []interface{} { + return i.implied +} + +// Name returns the loggers name +func (i *intLogger) Name() string { + return i.name +} + +// copy returns a shallow copy of the intLogger, replacing the level pointer +// when necessary +func (l *intLogger) copy() *intLogger { + sl := *l + + if l.independentLevels { + sl.level = new(int32) + *sl.level = *l.level + } + + return &sl +} diff --git a/vendor/github.com/hashicorp/go-hclog/logger.go b/vendor/github.com/hashicorp/go-hclog/logger.go index 080ed7999..7f36b1fd2 100644 --- a/vendor/github.com/hashicorp/go-hclog/logger.go +++ b/vendor/github.com/hashicorp/go-hclog/logger.go @@ -5,7 +5,6 @@ import ( "log" "os" "strings" - "sync" ) var ( @@ -39,6 +38,9 @@ const ( // Error information about unrecoverable events. Error Level = 5 + + // Off disables all logging output. + Off Level = 6 ) // Format is a simple convience type for when formatting is required. When @@ -53,6 +55,33 @@ func Fmt(str string, args ...interface{}) Format { return append(Format{str}, args...) } +// A simple shortcut to format numbers in hex when displayed with the normal +// text output. For example: L.Info("header value", Hex(17)) +type Hex int + +// A simple shortcut to format numbers in octal when displayed with the normal +// text output. For example: L.Info("perms", Octal(17)) +type Octal int + +// A simple shortcut to format numbers in binary when displayed with the normal +// text output. For example: L.Info("bits", Binary(17)) +type Binary int + +// ColorOption expresses how the output should be colored, if at all. +type ColorOption uint8 + +const ( + // ColorOff is the default coloration, and does not + // inject color codes into the io.Writer. + ColorOff ColorOption = iota + // AutoColor checks if the io.Writer is a tty, + // and if so enables coloring. + AutoColor + // ForceColor will enable coloring, regardless of whether + // the io.Writer is a tty or not. + ForceColor +) + // LevelFromString returns a Level type for the named log level, or "NoLevel" if // the level string is invalid. This facilitates setting the log level via // config or environment variable by name in a predictable way. @@ -70,16 +99,42 @@ func LevelFromString(levelStr string) Level { return Warn case "error": return Error + case "off": + return Off default: return NoLevel } } +func (l Level) String() string { + switch l { + case Trace: + return "trace" + case Debug: + return "debug" + case Info: + return "info" + case Warn: + return "warn" + case Error: + return "error" + case NoLevel: + return "none" + case Off: + return "off" + default: + return "unknown" + } +} + // Logger describes the interface that must be implemeted by all loggers. type Logger interface { // Args are alternating key, val pairs // keys must be strings // vals can be any type, but display is implementation specific + // Emit a message and key/value pairs at a provided log level + Log(level Level, msg string, args ...interface{}) + // Emit a message and key/value pairs at the TRACE level Trace(msg string, args ...interface{}) @@ -111,9 +166,15 @@ type Logger interface { // Indicate if ERROR logs would be emitted. This and the other Is* guards IsError() bool + // ImpliedArgs returns With key/value pairs + ImpliedArgs() []interface{} + // Creates a sublogger that will always have the given key/value pairs With(args ...interface{}) Logger + // Returns the Name of the logger + Name() string + // Create a logger that will prepend the name string on the front of all messages. // If the logger already has a name, the new value will be appended to the current // name. That way, a major subsystem can use this to decorate all it's own logs @@ -125,7 +186,8 @@ type Logger interface { // the current name as well. ResetNamed(name string) Logger - // Updates the level. This should affect all sub-loggers as well. If an + // Updates the level. This should affect all related loggers as well, + // unless they were created with IndependentLevels. If an // implementation cannot update the level on the fly, it should no-op. SetLevel(level Level) @@ -162,8 +224,10 @@ type LoggerOptions struct { // Where to write the logs to. Defaults to os.Stderr if nil Output io.Writer - // An optional mutex pointer in case Output is shared - Mutex *sync.Mutex + // An optional Locker in case Output is shared. This can be a sync.Mutex or + // a NoopLocker if the caller wants control over output, e.g. for batching + // log lines. + Mutex Locker // Control if the output should be in JSON. JSONFormat bool @@ -171,6 +235,111 @@ type LoggerOptions struct { // Include file and line information in each log line IncludeLocation bool + // AdditionalLocationOffset is the number of additional stack levels to skip + // when finding the file and line information for the log line + AdditionalLocationOffset int + // The time format to use instead of the default TimeFormat string + + // Control whether or not to display the time at all. This is required + // because setting TimeFormat to empty assumes the default format. + DisableTime bool + + // Color the output. On Windows, colored logs are only avaiable for io.Writers that + // are concretely instances of *os.File. + Color ColorOption + + // A function which is called with the log information and if it returns true the value + // should not be logged. + // This is useful when interacting with a system that you wish to suppress the log + // message for (because it's too noisy, etc) + Exclude func(level Level, msg string, args ...interface{}) bool + + // IndependentLevels causes subloggers to be created with an independent + // copy of this logger's level. This means that using SetLevel on this + // logger will not effect any subloggers, and SetLevel on any subloggers + // will not effect the parent or sibling loggers. + IndependentLevels bool +} + +// InterceptLogger describes the interface for using a logger +// that can register different output sinks. +// This is useful for sending lower level log messages +// to a different output while keeping the root logger +// at a higher one. +type InterceptLogger interface { + // Logger is the root logger for an InterceptLogger + Logger + + // RegisterSink adds a SinkAdapter to the InterceptLogger + RegisterSink(sink SinkAdapter) + + // DeregisterSink removes a SinkAdapter from the InterceptLogger + DeregisterSink(sink SinkAdapter) + + // Create a interceptlogger that will prepend the name string on the front of all messages. + // If the logger already has a name, the new value will be appended to the current + // name. That way, a major subsystem can use this to decorate all it's own logs + // without losing context. + NamedIntercept(name string) InterceptLogger + + // Create a interceptlogger that will prepend the name string on the front of all messages. + // This sets the name of the logger to the value directly, unlike Named which honor + // the current name as well. + ResetNamedIntercept(name string) InterceptLogger + + // Deprecated: use StandardLogger + StandardLoggerIntercept(opts *StandardLoggerOptions) *log.Logger + + // Deprecated: use StandardWriter + StandardWriterIntercept(opts *StandardLoggerOptions) io.Writer +} + +// SinkAdapter describes the interface that must be implemented +// in order to Register a new sink to an InterceptLogger +type SinkAdapter interface { + Accept(name string, level Level, msg string, args ...interface{}) +} + +// Flushable represents a method for flushing an output buffer. It can be used +// if Resetting the log to use a new output, in order to flush the writes to +// the existing output beforehand. +type Flushable interface { + Flush() error +} + +// OutputResettable provides ways to swap the output in use at runtime +type OutputResettable interface { + // ResetOutput swaps the current output writer with the one given in the + // opts. Color options given in opts will be used for the new output. + ResetOutput(opts *LoggerOptions) error + + // ResetOutputWithFlush swaps the current output writer with the one given + // in the opts, first calling Flush on the given Flushable. Color options + // given in opts will be used for the new output. + ResetOutputWithFlush(opts *LoggerOptions, flushable Flushable) error } + +// Locker is used for locking output. If not set when creating a logger, a +// sync.Mutex will be used internally. +type Locker interface { + // Lock is called when the output is going to be changed or written to + Lock() + + // Unlock is called when the operation that called Lock() completes + Unlock() +} + +// NoopLocker implements locker but does nothing. This is useful if the client +// wants tight control over locking, in order to provide grouping of log +// entries or other functionality. +type NoopLocker struct{} + +// Lock does nothing +func (n NoopLocker) Lock() {} + +// Unlock does nothing +func (n NoopLocker) Unlock() {} + +var _ Locker = (*NoopLocker)(nil) diff --git a/vendor/github.com/hashicorp/go-hclog/nulllogger.go b/vendor/github.com/hashicorp/go-hclog/nulllogger.go index 7ad6b351e..bc14f7708 100644 --- a/vendor/github.com/hashicorp/go-hclog/nulllogger.go +++ b/vendor/github.com/hashicorp/go-hclog/nulllogger.go @@ -15,6 +15,8 @@ func NewNullLogger() Logger { type nullLogger struct{} +func (l *nullLogger) Log(level Level, msg string, args ...interface{}) {} + func (l *nullLogger) Trace(msg string, args ...interface{}) {} func (l *nullLogger) Debug(msg string, args ...interface{}) {} @@ -35,8 +37,12 @@ func (l *nullLogger) IsWarn() bool { return false } func (l *nullLogger) IsError() bool { return false } +func (l *nullLogger) ImpliedArgs() []interface{} { return []interface{}{} } + func (l *nullLogger) With(args ...interface{}) Logger { return l } +func (l *nullLogger) Name() string { return "" } + func (l *nullLogger) Named(name string) Logger { return l } func (l *nullLogger) ResetNamed(name string) Logger { return l } diff --git a/vendor/github.com/hashicorp/go-hclog/stdlog.go b/vendor/github.com/hashicorp/go-hclog/stdlog.go index 044a46960..f35d875d3 100644 --- a/vendor/github.com/hashicorp/go-hclog/stdlog.go +++ b/vendor/github.com/hashicorp/go-hclog/stdlog.go @@ -2,6 +2,7 @@ package hclog import ( "bytes" + "log" "strings" ) @@ -25,36 +26,10 @@ func (s *stdlogAdapter) Write(data []byte) (int, error) { _, str := s.pickLevel(str) // Log at the forced level - switch s.forceLevel { - case Trace: - s.log.Trace(str) - case Debug: - s.log.Debug(str) - case Info: - s.log.Info(str) - case Warn: - s.log.Warn(str) - case Error: - s.log.Error(str) - default: - s.log.Info(str) - } + s.dispatch(str, s.forceLevel) } else if s.inferLevels { level, str := s.pickLevel(str) - switch level { - case Trace: - s.log.Trace(str) - case Debug: - s.log.Debug(str) - case Info: - s.log.Info(str) - case Warn: - s.log.Warn(str) - case Error: - s.log.Error(str) - default: - s.log.Info(str) - } + s.dispatch(str, level) } else { s.log.Info(str) } @@ -62,6 +37,23 @@ func (s *stdlogAdapter) Write(data []byte) (int, error) { return len(data), nil } +func (s *stdlogAdapter) dispatch(str string, level Level) { + switch level { + case Trace: + s.log.Trace(str) + case Debug: + s.log.Debug(str) + case Info: + s.log.Info(str) + case Warn: + s.log.Warn(str) + case Error: + s.log.Error(str) + default: + s.log.Info(str) + } +} + // Detect, based on conventions, what log level this is. func (s *stdlogAdapter) pickLevel(str string) (Level, string) { switch { @@ -81,3 +73,23 @@ func (s *stdlogAdapter) pickLevel(str string) (Level, string) { return Info, str } } + +type logWriter struct { + l *log.Logger +} + +func (l *logWriter) Write(b []byte) (int, error) { + l.l.Println(string(bytes.TrimRight(b, " \n\t"))) + return len(b), nil +} + +// Takes a standard library logger and returns a Logger that will write to it +func FromStandardLogger(l *log.Logger, opts *LoggerOptions) Logger { + var dl LoggerOptions = *opts + + // Use the time format that log.Logger uses + dl.DisableTime = true + dl.Output = &logWriter{l} + + return New(&dl) +} diff --git a/vendor/github.com/hashicorp/go-hclog/writer.go b/vendor/github.com/hashicorp/go-hclog/writer.go index 7e8ec729d..421a1f06c 100644 --- a/vendor/github.com/hashicorp/go-hclog/writer.go +++ b/vendor/github.com/hashicorp/go-hclog/writer.go @@ -6,19 +6,27 @@ import ( ) type writer struct { - b bytes.Buffer - w io.Writer + b bytes.Buffer + w io.Writer + color ColorOption } -func newWriter(w io.Writer) *writer { - return &writer{w: w} +func newWriter(w io.Writer, color ColorOption) *writer { + return &writer{w: w, color: color} } func (w *writer) Flush(level Level) (err error) { + var unwritten = w.b.Bytes() + + if w.color != ColorOff { + color := _levelToColor[level] + unwritten = []byte(color.Sprintf("%s", unwritten)) + } + if lw, ok := w.w.(LevelWriter); ok { - _, err = lw.LevelWrite(level, w.b.Bytes()) + _, err = lw.LevelWrite(level, unwritten) } else { - _, err = w.w.Write(w.b.Bytes()) + _, err = w.w.Write(unwritten) } w.b.Reset() return err diff --git a/vendor/github.com/mattn/go-colorable/colorable_appengine.go b/vendor/github.com/mattn/go-colorable/colorable_appengine.go index 1f28d773d..0b0aef837 100644 --- a/vendor/github.com/mattn/go-colorable/colorable_appengine.go +++ b/vendor/github.com/mattn/go-colorable/colorable_appengine.go @@ -9,7 +9,7 @@ import ( _ "github.com/mattn/go-isatty" ) -// NewColorable return new instance of Writer which handle escape sequence. +// NewColorable returns new instance of Writer which handles escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") @@ -18,12 +18,12 @@ func NewColorable(file *os.File) io.Writer { return file } -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. +// NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. func NewColorableStdout() io.Writer { return os.Stdout } -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. +// NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. func NewColorableStderr() io.Writer { return os.Stderr } diff --git a/vendor/github.com/mattn/go-colorable/colorable_others.go b/vendor/github.com/mattn/go-colorable/colorable_others.go index 887f203dc..3fb771dcc 100644 --- a/vendor/github.com/mattn/go-colorable/colorable_others.go +++ b/vendor/github.com/mattn/go-colorable/colorable_others.go @@ -10,7 +10,7 @@ import ( _ "github.com/mattn/go-isatty" ) -// NewColorable return new instance of Writer which handle escape sequence. +// NewColorable returns new instance of Writer which handles escape sequence. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") @@ -19,12 +19,12 @@ func NewColorable(file *os.File) io.Writer { return file } -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. +// NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. func NewColorableStdout() io.Writer { return os.Stdout } -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. +// NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. func NewColorableStderr() io.Writer { return os.Stderr } diff --git a/vendor/github.com/mattn/go-colorable/colorable_windows.go b/vendor/github.com/mattn/go-colorable/colorable_windows.go index 404e10ca0..1bd628f25 100644 --- a/vendor/github.com/mattn/go-colorable/colorable_windows.go +++ b/vendor/github.com/mattn/go-colorable/colorable_windows.go @@ -81,7 +81,7 @@ var ( procCreateConsoleScreenBuffer = kernel32.NewProc("CreateConsoleScreenBuffer") ) -// Writer provide colorable Writer to the console +// Writer provides colorable Writer to the console type Writer struct { out io.Writer handle syscall.Handle @@ -91,7 +91,7 @@ type Writer struct { rest bytes.Buffer } -// NewColorable return new instance of Writer which handle escape sequence from File. +// NewColorable returns new instance of Writer which handles escape sequence from File. func NewColorable(file *os.File) io.Writer { if file == nil { panic("nil passed instead of *os.File to NewColorable()") @@ -106,12 +106,12 @@ func NewColorable(file *os.File) io.Writer { return file } -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. +// NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. func NewColorableStdout() io.Writer { return NewColorable(os.Stdout) } -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. +// NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. func NewColorableStderr() io.Writer { return NewColorable(os.Stderr) } @@ -414,7 +414,15 @@ func doTitleSequence(er *bytes.Reader) error { return nil } -// Write write data on console +// returns Atoi(s) unless s == "" in which case it returns def +func atoiWithDefault(s string, def int) (int, error) { + if s == "" { + return def, nil + } + return strconv.Atoi(s) +} + +// Write writes data on console func (w *Writer) Write(data []byte) (n int, err error) { var csbi consoleScreenBufferInfo procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) @@ -500,7 +508,7 @@ loop: switch m { case 'A': - n, err = strconv.Atoi(buf.String()) + n, err = atoiWithDefault(buf.String(), 1) if err != nil { continue } @@ -508,7 +516,7 @@ loop: csbi.cursorPosition.y -= short(n) procSetConsoleCursorPosition.Call(uintptr(handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) case 'B': - n, err = strconv.Atoi(buf.String()) + n, err = atoiWithDefault(buf.String(), 1) if err != nil { continue } @@ -516,7 +524,7 @@ loop: csbi.cursorPosition.y += short(n) procSetConsoleCursorPosition.Call(uintptr(handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) case 'C': - n, err = strconv.Atoi(buf.String()) + n, err = atoiWithDefault(buf.String(), 1) if err != nil { continue } @@ -524,7 +532,7 @@ loop: csbi.cursorPosition.x += short(n) procSetConsoleCursorPosition.Call(uintptr(handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) case 'D': - n, err = strconv.Atoi(buf.String()) + n, err = atoiWithDefault(buf.String(), 1) if err != nil { continue } @@ -557,6 +565,9 @@ loop: if err != nil { continue } + if n < 1 { + n = 1 + } procGetConsoleScreenBufferInfo.Call(uintptr(handle), uintptr(unsafe.Pointer(&csbi))) csbi.cursorPosition.x = short(n - 1) procSetConsoleCursorPosition.Call(uintptr(handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) @@ -635,6 +646,20 @@ loop: } procFillConsoleOutputCharacter.Call(uintptr(handle), uintptr(' '), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) procFillConsoleOutputAttribute.Call(uintptr(handle), uintptr(csbi.attributes), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) + case 'X': + n := 0 + if buf.Len() > 0 { + n, err = strconv.Atoi(buf.String()) + if err != nil { + continue + } + } + procGetConsoleScreenBufferInfo.Call(uintptr(handle), uintptr(unsafe.Pointer(&csbi))) + var cursor coord + var written dword + cursor = coord{x: csbi.cursorPosition.x, y: csbi.cursorPosition.y} + procFillConsoleOutputCharacter.Call(uintptr(handle), uintptr(' '), uintptr(n), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) + procFillConsoleOutputAttribute.Call(uintptr(handle), uintptr(csbi.attributes), uintptr(n), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) case 'm': procGetConsoleScreenBufferInfo.Call(uintptr(handle), uintptr(unsafe.Pointer(&csbi))) attr := csbi.attributes diff --git a/vendor/github.com/mattn/go-colorable/go.mod b/vendor/github.com/mattn/go-colorable/go.mod index 9d9f42485..ef3ca9d4c 100644 --- a/vendor/github.com/mattn/go-colorable/go.mod +++ b/vendor/github.com/mattn/go-colorable/go.mod @@ -1,3 +1,3 @@ module github.com/mattn/go-colorable -require github.com/mattn/go-isatty v0.0.5 +require github.com/mattn/go-isatty v0.0.8 diff --git a/vendor/github.com/mattn/go-colorable/noncolorable.go b/vendor/github.com/mattn/go-colorable/noncolorable.go index 9721e16f4..95f2c6be2 100644 --- a/vendor/github.com/mattn/go-colorable/noncolorable.go +++ b/vendor/github.com/mattn/go-colorable/noncolorable.go @@ -5,17 +5,17 @@ import ( "io" ) -// NonColorable hold writer but remove escape sequence. +// NonColorable holds writer but removes escape sequence. type NonColorable struct { out io.Writer } -// NewNonColorable return new instance of Writer which remove escape sequence from Writer. +// NewNonColorable returns new instance of Writer which removes escape sequence from Writer. func NewNonColorable(w io.Writer) io.Writer { return &NonColorable{out: w} } -// Write write data on console +// Write writes data on console func (w *NonColorable) Write(data []byte) (n int, err error) { er := bytes.NewReader(data) var bw [1]byte diff --git a/vendor/github.com/mattn/go-isatty/go.mod b/vendor/github.com/mattn/go-isatty/go.mod index f310320c3..a8ddf404f 100644 --- a/vendor/github.com/mattn/go-isatty/go.mod +++ b/vendor/github.com/mattn/go-isatty/go.mod @@ -1,3 +1,5 @@ module github.com/mattn/go-isatty -require golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 +require golang.org/x/sys v0.0.0-20191008105621-543471e840be + +go 1.14 diff --git a/vendor/github.com/mattn/go-isatty/go.sum b/vendor/github.com/mattn/go-isatty/go.sum index 426c8973c..c141fc53a 100644 --- a/vendor/github.com/mattn/go-isatty/go.sum +++ b/vendor/github.com/mattn/go-isatty/go.sum @@ -1,2 +1,4 @@ -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/vendor/github.com/mattn/go-isatty/isatty_android.go b/vendor/github.com/mattn/go-isatty/isatty_android.go new file mode 100644 index 000000000..d3567cb5b --- /dev/null +++ b/vendor/github.com/mattn/go-isatty/isatty_android.go @@ -0,0 +1,23 @@ +// +build android + +package isatty + +import ( + "syscall" + "unsafe" +) + +const ioctlReadTermios = syscall.TCGETS + +// IsTerminal return true if the file descriptor is terminal. +func IsTerminal(fd uintptr) bool { + var termios syscall.Termios + _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) + return err == 0 +} + +// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 +// terminal. This is also always false on this environment. +func IsCygwinTerminal(fd uintptr) bool { + return false +} diff --git a/vendor/github.com/mattn/go-isatty/isatty_others.go b/vendor/github.com/mattn/go-isatty/isatty_others.go index f02849c56..ff714a376 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_others.go +++ b/vendor/github.com/mattn/go-isatty/isatty_others.go @@ -1,4 +1,4 @@ -// +build appengine js +// +build appengine js nacl package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_plan9.go b/vendor/github.com/mattn/go-isatty/isatty_plan9.go new file mode 100644 index 000000000..bc0a70920 --- /dev/null +++ b/vendor/github.com/mattn/go-isatty/isatty_plan9.go @@ -0,0 +1,22 @@ +// +build plan9 + +package isatty + +import ( + "syscall" +) + +// IsTerminal returns true if the given file descriptor is a terminal. +func IsTerminal(fd uintptr) bool { + path, err := syscall.Fd2path(fd) + if err != nil { + return false + } + return path == "/dev/cons" || path == "/mnt/term/dev/cons" +} + +// IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 +// terminal. This is also always false on this environment. +func IsCygwinTerminal(fd uintptr) bool { + return false +} diff --git a/vendor/github.com/mattn/go-isatty/isatty_linux.go b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go similarity index 91% rename from vendor/github.com/mattn/go-isatty/isatty_linux.go rename to vendor/github.com/mattn/go-isatty/isatty_tcgets.go index e004038ee..453b025d0 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_linux.go +++ b/vendor/github.com/mattn/go-isatty/isatty_tcgets.go @@ -1,5 +1,6 @@ -// +build linux +// +build linux aix // +build !appengine +// +build !android package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_windows.go b/vendor/github.com/mattn/go-isatty/isatty_windows.go index af51cbcaa..1fa869154 100644 --- a/vendor/github.com/mattn/go-isatty/isatty_windows.go +++ b/vendor/github.com/mattn/go-isatty/isatty_windows.go @@ -4,6 +4,7 @@ package isatty import ( + "errors" "strings" "syscall" "unicode/utf16" @@ -11,15 +12,18 @@ import ( ) const ( - fileNameInfo uintptr = 2 - fileTypePipe = 3 + objectNameInfo uintptr = 1 + fileNameInfo = 2 + fileTypePipe = 3 ) var ( kernel32 = syscall.NewLazyDLL("kernel32.dll") + ntdll = syscall.NewLazyDLL("ntdll.dll") procGetConsoleMode = kernel32.NewProc("GetConsoleMode") procGetFileInformationByHandleEx = kernel32.NewProc("GetFileInformationByHandleEx") procGetFileType = kernel32.NewProc("GetFileType") + procNtQueryObject = ntdll.NewProc("NtQueryObject") ) func init() { @@ -45,7 +49,10 @@ func isCygwinPipeName(name string) bool { return false } - if token[0] != `\msys` && token[0] != `\cygwin` { + if token[0] != `\msys` && + token[0] != `\cygwin` && + token[0] != `\Device\NamedPipe\msys` && + token[0] != `\Device\NamedPipe\cygwin` { return false } @@ -68,11 +75,35 @@ func isCygwinPipeName(name string) bool { return true } +// getFileNameByHandle use the undocomented ntdll NtQueryObject to get file full name from file handler +// since GetFileInformationByHandleEx is not avilable under windows Vista and still some old fashion +// guys are using Windows XP, this is a workaround for those guys, it will also work on system from +// Windows vista to 10 +// see https://stackoverflow.com/a/18792477 for details +func getFileNameByHandle(fd uintptr) (string, error) { + if procNtQueryObject == nil { + return "", errors.New("ntdll.dll: NtQueryObject not supported") + } + + var buf [4 + syscall.MAX_PATH]uint16 + var result int + r, _, e := syscall.Syscall6(procNtQueryObject.Addr(), 5, + fd, objectNameInfo, uintptr(unsafe.Pointer(&buf)), uintptr(2*len(buf)), uintptr(unsafe.Pointer(&result)), 0) + if r != 0 { + return "", e + } + return string(utf16.Decode(buf[4 : 4+buf[0]/2])), nil +} + // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 // terminal. func IsCygwinTerminal(fd uintptr) bool { if procGetFileInformationByHandleEx == nil { - return false + name, err := getFileNameByHandle(fd) + if err != nil { + return false + } + return isCygwinPipeName(name) } // Cygwin/msys's pty is a pipe. diff --git a/vendor/golang.org/x/sys/cpu/byteorder.go b/vendor/golang.org/x/sys/cpu/byteorder.go index da6b9e436..ed8da8dea 100644 --- a/vendor/golang.org/x/sys/cpu/byteorder.go +++ b/vendor/golang.org/x/sys/cpu/byteorder.go @@ -5,26 +5,56 @@ package cpu import ( - "encoding/binary" "runtime" ) +// byteOrder is a subset of encoding/binary.ByteOrder. +type byteOrder interface { + Uint32([]byte) uint32 + Uint64([]byte) uint64 +} + +type littleEndian struct{} +type bigEndian struct{} + +func (littleEndian) Uint32(b []byte) uint32 { + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 +} + +func (littleEndian) Uint64(b []byte) uint64 { + _ = 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 +} + +func (bigEndian) Uint32(b []byte) uint32 { + _ = b[3] // bounds check hint to compiler; see golang.org/issue/14808 + return uint32(b[3]) | uint32(b[2])<<8 | uint32(b[1])<<16 | uint32(b[0])<<24 +} + +func (bigEndian) Uint64(b []byte) uint64 { + _ = 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 +} + // hostByteOrder returns binary.LittleEndian on little-endian machines and // binary.BigEndian on big-endian machines. -func hostByteOrder() binary.ByteOrder { +func hostByteOrder() byteOrder { switch runtime.GOARCH { case "386", "amd64", "amd64p32", "arm", "arm64", "mipsle", "mips64le", "mips64p32le", "ppc64le", "riscv", "riscv64": - return binary.LittleEndian + return littleEndian{} case "armbe", "arm64be", "mips", "mips64", "mips64p32", "ppc", "ppc64", "s390", "s390x", "sparc", "sparc64": - return binary.BigEndian + return bigEndian{} } panic("unknown architecture") } diff --git a/vendor/golang.org/x/sys/cpu/cpu.go b/vendor/golang.org/x/sys/cpu/cpu.go index 679e78c2c..b4e6ecb2d 100644 --- a/vendor/golang.org/x/sys/cpu/cpu.go +++ b/vendor/golang.org/x/sys/cpu/cpu.go @@ -78,6 +78,42 @@ var ARM64 struct { _ CacheLinePad } +// ARM contains the supported CPU features of the current ARM (32-bit) platform. +// All feature flags are false if: +// 1. the current platform is not arm, or +// 2. the current operating system is not Linux. +var ARM struct { + _ CacheLinePad + HasSWP bool // SWP instruction support + HasHALF bool // Half-word load and store support + HasTHUMB bool // ARM Thumb instruction set + Has26BIT bool // Address space limited to 26-bits + HasFASTMUL bool // 32-bit operand, 64-bit result multiplication support + HasFPA bool // Floating point arithmetic support + HasVFP bool // Vector floating point support + HasEDSP bool // DSP Extensions support + HasJAVA bool // Java instruction set + HasIWMMXT bool // Intel Wireless MMX technology support + HasCRUNCH bool // MaverickCrunch context switching and handling + HasTHUMBEE bool // Thumb EE instruction set + HasNEON bool // NEON instruction set + HasVFPv3 bool // Vector floating point version 3 support + HasVFPv3D16 bool // Vector floating point version 3 D8-D15 + HasTLS bool // Thread local storage support + HasVFPv4 bool // Vector floating point version 4 support + HasIDIVA bool // Integer divide instruction support in ARM mode + HasIDIVT bool // Integer divide instruction support in Thumb mode + HasVFPD32 bool // Vector floating point version 3 D15-D31 + HasLPAE bool // Large Physical Address Extensions + HasEVTSTRM bool // Event stream support + HasAES bool // AES hardware implementation + HasPMULL bool // Polynomial multiplication instruction set + HasSHA1 bool // SHA1 hardware implementation + HasSHA2 bool // SHA2 hardware implementation + HasCRC32 bool // CRC32 hardware implementation + _ CacheLinePad +} + // PPC64 contains the supported CPU features of the current ppc64/ppc64le platforms. // If the current platform is not ppc64/ppc64le then all feature flags are false. // diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm.go b/vendor/golang.org/x/sys/cpu/cpu_arm.go index 7f2348b7d..981af6818 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_arm.go +++ b/vendor/golang.org/x/sys/cpu/cpu_arm.go @@ -6,4 +6,35 @@ package cpu const cacheLineSize = 32 -func doinit() {} +// HWCAP/HWCAP2 bits. +// These are specific to Linux. +const ( + hwcap_SWP = 1 << 0 + hwcap_HALF = 1 << 1 + hwcap_THUMB = 1 << 2 + hwcap_26BIT = 1 << 3 + hwcap_FAST_MULT = 1 << 4 + hwcap_FPA = 1 << 5 + hwcap_VFP = 1 << 6 + hwcap_EDSP = 1 << 7 + hwcap_JAVA = 1 << 8 + hwcap_IWMMXT = 1 << 9 + hwcap_CRUNCH = 1 << 10 + hwcap_THUMBEE = 1 << 11 + hwcap_NEON = 1 << 12 + hwcap_VFPv3 = 1 << 13 + hwcap_VFPv3D16 = 1 << 14 + hwcap_TLS = 1 << 15 + hwcap_VFPv4 = 1 << 16 + hwcap_IDIVA = 1 << 17 + hwcap_IDIVT = 1 << 18 + hwcap_VFPD32 = 1 << 19 + hwcap_LPAE = 1 << 20 + hwcap_EVTSTRM = 1 << 21 + + hwcap2_AES = 1 << 0 + hwcap2_PMULL = 1 << 1 + hwcap2_SHA1 = 1 << 2 + hwcap2_SHA2 = 1 << 3 + hwcap2_CRC32 = 1 << 4 +) diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux.go b/vendor/golang.org/x/sys/cpu/cpu_linux.go index 76b5f507f..10e712dc5 100644 --- a/vendor/golang.org/x/sys/cpu/cpu_linux.go +++ b/vendor/golang.org/x/sys/cpu/cpu_linux.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 !amd64,!amd64p32,!386 +// +build !amd64,!amd64p32,!386 package cpu diff --git a/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go b/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go new file mode 100644 index 000000000..2057006dc --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_linux_arm.go @@ -0,0 +1,39 @@ +// 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 cpu + +func doinit() { + ARM.HasSWP = isSet(hwCap, hwcap_SWP) + ARM.HasHALF = isSet(hwCap, hwcap_HALF) + ARM.HasTHUMB = isSet(hwCap, hwcap_THUMB) + ARM.Has26BIT = isSet(hwCap, hwcap_26BIT) + ARM.HasFASTMUL = isSet(hwCap, hwcap_FAST_MULT) + ARM.HasFPA = isSet(hwCap, hwcap_FPA) + ARM.HasVFP = isSet(hwCap, hwcap_VFP) + ARM.HasEDSP = isSet(hwCap, hwcap_EDSP) + ARM.HasJAVA = isSet(hwCap, hwcap_JAVA) + ARM.HasIWMMXT = isSet(hwCap, hwcap_IWMMXT) + ARM.HasCRUNCH = isSet(hwCap, hwcap_CRUNCH) + ARM.HasTHUMBEE = isSet(hwCap, hwcap_THUMBEE) + ARM.HasNEON = isSet(hwCap, hwcap_NEON) + ARM.HasVFPv3 = isSet(hwCap, hwcap_VFPv3) + ARM.HasVFPv3D16 = isSet(hwCap, hwcap_VFPv3D16) + ARM.HasTLS = isSet(hwCap, hwcap_TLS) + ARM.HasVFPv4 = isSet(hwCap, hwcap_VFPv4) + ARM.HasIDIVA = isSet(hwCap, hwcap_IDIVA) + ARM.HasIDIVT = isSet(hwCap, hwcap_IDIVT) + ARM.HasVFPD32 = isSet(hwCap, hwcap_VFPD32) + ARM.HasLPAE = isSet(hwCap, hwcap_LPAE) + ARM.HasEVTSTRM = isSet(hwCap, hwcap_EVTSTRM) + ARM.HasAES = isSet(hwCap2, hwcap2_AES) + ARM.HasPMULL = isSet(hwCap2, hwcap2_PMULL) + ARM.HasSHA1 = isSet(hwCap2, hwcap2_SHA1) + ARM.HasSHA2 = isSet(hwCap2, hwcap2_SHA2) + ARM.HasCRC32 = isSet(hwCap2, hwcap2_CRC32) +} + +func isSet(hwc uint, value uint) bool { + return hwc&value != 0 +} diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go index 14e4d5caa..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,50 +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 ... - - // Unused in this function, but definitions preserved for - // documentation purposes: - // - // 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/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..890ec464c 100644 --- a/vendor/golang.org/x/sys/unix/mkall.sh +++ b/vendor/golang.org/x/sys/unix/mkall.sh @@ -212,9 +212,11 @@ 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"; else echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go"; fi diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 14624b953..67b84828a 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -60,6 +60,7 @@ includes_Darwin=' #include #include #include +#include #include #include #include @@ -80,6 +81,7 @@ includes_Darwin=' includes_DragonFly=' #include #include +#include #include #include #include @@ -103,6 +105,7 @@ includes_FreeBSD=' #include #include #include +#include #include #include #include @@ -179,24 +182,31 @@ 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 @@ -206,26 +216,23 @@ 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 @@ -264,6 +271,11 @@ 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 ' includes_NetBSD=' @@ -273,6 +285,7 @@ includes_NetBSD=' #include #include #include +#include #include #include #include @@ -299,6 +312,7 @@ includes_OpenBSD=' #include #include #include +#include #include #include #include @@ -335,6 +349,7 @@ includes_OpenBSD=' includes_SunOS=' #include #include +#include #include #include #include @@ -427,6 +442,7 @@ ccflags="$@" $2 == "XCASE" || $2 == "ALTWERASE" || $2 == "NOKERNINFO" || + $2 == "NFDBITS" || $2 ~ /^PAR/ || $2 ~ /^SIG[^_]/ || $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ || @@ -451,6 +467,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_/ || @@ -506,6 +523,7 @@ ccflags="$@" $2 ~ /^XDP_/ || $2 ~ /^(HDIO|WIN|SMART)_/ || $2 ~ /^CRYPTO_/ || + $2 ~ /^TIPC_/ || $2 !~ "WMESGLEN" && $2 ~ /^W[A-Z0-9]+$/ || $2 ~/^PPPIOC/ || diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go index 1aa065f9c..9ad8a0d4a 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -350,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..3e6671426 100644 --- a/vendor/golang.org/x/sys/unix/syscall_bsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_bsd.go @@ -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. 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..24960c38b --- /dev/null +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go @@ -0,0 +1,103 @@ +// 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. + const ptrSize = unsafe.Sizeof(uintptr(0)) + + // 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 216b4ac9e..c5018a385 100644 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ b/vendor/golang.org/x/sys/unix/syscall_darwin.go @@ -89,7 +89,6 @@ func direntNamlen(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) } -//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) 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) } @@ -340,43 +339,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig //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 -} - func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} n := unsafe.Sizeof(uname.Sysname) @@ -498,7 +460,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..dd756e708 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,9 @@ import ( "syscall" ) +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL +//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 +46,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 +63,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..7f148c428 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,9 @@ import ( "syscall" ) +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL +//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 +46,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 +63,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..c81510da2 --- /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,386,!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..58be02e71 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,14 @@ import ( "syscall" ) +func ptrace(request int, pid int, addr uintptr, data uintptr) error { + return ENOTSUP +} + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { + return ENOTSUP +} + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: int32(sec), Nsec: int32(nsec)} } @@ -41,6 +49,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 +70,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..1ee931f97 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,14 @@ import ( "syscall" ) +func ptrace(request int, pid int, addr uintptr, data uintptr) error { + return ENOTSUP +} + +func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) error { + return ENOTSUP +} + func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: sec, Nsec: nsec} } @@ -43,6 +51,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 +72,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 260a400f9..8c8d50297 100644 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -14,6 +14,8 @@ package unix import "unsafe" +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. type SockaddrDatalink struct { Len uint8 @@ -150,43 +152,6 @@ 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 -} - func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error { err := sysctl(mib, old, oldlen, nil, 0) if err != nil { @@ -325,7 +290,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 329d240b9..25ac9340c 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go @@ -36,6 +36,8 @@ var ( // INO64_FIRST from /usr/src/lib/libc/sys/compat-ino64.h const _ino64First = 1200031 +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + func supportsABI(ver uint32) bool { osreldateOnce.Do(func() { osreldate, _ = SysctlUint32("kern.osreldate") }) return osreldate >= ver @@ -201,43 +203,6 @@ 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 -} - func Uname(uname *Utsname) error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} n := unsafe.Sizeof(uname.Sysname) @@ -688,7 +653,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..dcc56457a 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) } 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..321c3bace 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) } 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..697700831 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) } 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..dbbbfd603 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) } diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go index 637b5017b..ebf3195b6 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,70 @@ 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 +} + func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { switch rsa.Addr.Family { case AF_NETLINK: @@ -923,6 +964,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 +1222,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 +1493,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) @@ -1761,6 +1855,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..e7fa665e6 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -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..088ce0f93 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -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..11930fc8f 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -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..251e2d971 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -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..7562fe97b 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -208,6 +208,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_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go index 5144d4e13..a939ff8f2 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -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..28d6d0f22 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -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..6798c2625 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -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..eb5cb1a71 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -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..37321c12e 100644 --- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -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 5ef309040..f95463ee2 100644 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_netbsd.go @@ -18,6 +18,8 @@ import ( "unsafe" ) +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. type SockaddrDatalink struct { Len uint8 @@ -187,43 +189,6 @@ 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 -} - func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) { var value Ptmget err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) @@ -365,7 +330,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_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 1a074b2fe..7fe65ef75 100644 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -18,6 +18,8 @@ import ( "unsafe" ) +//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL + // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. type SockaddrDatalink struct { Len uint8 @@ -178,43 +180,6 @@ 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 ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { @@ -340,7 +305,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) 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 0153a316d..62f968c7f 100644 --- a/vendor/golang.org/x/sys/unix/syscall_solaris.go +++ b/vendor/golang.org/x/sys/unix/syscall_solaris.go @@ -553,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))) @@ -679,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/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..b72544fcd 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 @@ -1055,6 +1055,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_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go index 4f8db783d..9f382678e 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 @@ -1056,6 +1056,7 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 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..16db56abc 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 @@ -1063,6 +1063,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..1a1de3454 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 @@ -1056,6 +1056,7 @@ const ( NET_RT_IFLIST = 0x3 NET_RT_IFLISTL = 0x5 NET_RT_IFMALIST = 0x4 + NFDBITS = 0x40 NOFLSH = 0x80000000 NOKERNINFO = 0x2000000 NOTE_ATTRIB = 0x8 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 5213d820a..fcf5796a0 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -722,6 +726,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -987,6 +992,7 @@ const ( 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 @@ -1085,6 +1091,17 @@ const ( 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 @@ -1097,6 +1114,8 @@ const ( 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 @@ -1342,6 +1361,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x20 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1406,6 +1426,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1671,6 +1695,8 @@ const ( 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 @@ -1686,6 +1712,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 @@ -1724,6 +1751,10 @@ const ( PTRACE_SINGLEBLOCK = 0x21 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_SYSEMU = 0x1f PTRACE_SYSEMU_SINGLESTEP = 0x20 PTRACE_TRACEME = 0x0 @@ -1784,7 +1815,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1857,6 +1888,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1881,6 +1913,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1888,7 +1921,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1900,6 +1933,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1908,8 +1942,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1994,6 +2028,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2132,6 +2168,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2432,6 +2469,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2445,7 +2547,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2644,6 +2746,8 @@ const ( 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 @@ -2660,6 +2764,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 39b630cc5..5bcf3dbd7 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -722,6 +726,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -987,6 +992,7 @@ const ( 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 @@ -1085,6 +1091,17 @@ const ( 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 @@ -1097,6 +1114,8 @@ const ( 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 @@ -1342,6 +1361,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1406,6 +1426,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1672,6 +1696,8 @@ const ( 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 @@ -1687,6 +1713,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 @@ -1725,6 +1752,10 @@ const ( PTRACE_SINGLEBLOCK = 0x21 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_SYSEMU = 0x1f PTRACE_SYSEMU_SINGLESTEP = 0x20 PTRACE_TRACEME = 0x0 @@ -1785,7 +1816,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1858,6 +1889,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1882,6 +1914,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1889,7 +1922,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1901,6 +1934,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1909,8 +1943,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1995,6 +2029,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2133,6 +2169,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2433,6 +2470,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2446,7 +2548,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2644,6 +2746,8 @@ const ( 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 @@ -2660,6 +2764,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 c59a1beb3..3e02dcff8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x20 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1690,6 +1716,7 @@ const ( PTRACE_GETSIGMASK = 0x420a PTRACE_GETVFPREGS = 0x1b PTRACE_GETWMMXREGS = 0x12 + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x16 PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 @@ -1730,6 +1757,10 @@ const ( PTRACE_SET_SYSCALL = 0x17 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 PT_DATA_ADDR = 0x10004 PT_TEXT_ADDR = 0x10000 @@ -1791,7 +1822,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1864,6 +1895,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1888,6 +1920,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1895,7 +1928,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1907,6 +1940,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1915,8 +1949,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2001,6 +2035,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2139,6 +2175,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2439,6 +2476,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2452,7 +2554,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2650,6 +2752,8 @@ const ( 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 @@ -2666,6 +2770,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 5f35c19d1..2293f8bb8 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -561,6 +564,7 @@ const ( 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 @@ -724,6 +728,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -989,6 +994,7 @@ const ( 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 @@ -1087,6 +1093,17 @@ const ( 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 @@ -1099,6 +1116,8 @@ const ( 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 @@ -1343,6 +1362,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1407,6 +1427,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1672,6 +1696,8 @@ const ( 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 @@ -1685,6 +1711,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1717,6 +1744,12 @@ const ( 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_SYSEMU = 0x1f + PTRACE_SYSEMU_SINGLESTEP = 0x20 PTRACE_TRACEME = 0x0 QNX4_SUPER_MAGIC = 0x2f QNX6_SUPER_MAGIC = 0x68191122 @@ -1775,7 +1808,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1848,6 +1881,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1872,6 +1906,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1879,7 +1914,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1891,6 +1926,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1899,8 +1935,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1985,6 +2021,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2123,6 +2161,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2424,6 +2463,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2437,7 +2541,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2635,6 +2739,8 @@ const ( 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 @@ -2651,6 +2757,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 7f1b7bef2..57742ea27 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x20 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1683,6 +1709,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 PTRACE_GET_WATCH_REGS = 0xd0 @@ -1726,6 +1753,10 @@ const ( PTRACE_SET_WATCH_REGS = 0xd1 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 @@ -1784,7 +1815,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1857,6 +1888,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1881,6 +1913,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1888,7 +1921,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1900,6 +1933,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1908,8 +1942,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1994,6 +2028,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2132,6 +2168,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x1029 SO_DONTROUTE = 0x10 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2434,6 +2471,71 @@ const ( TIOCSTI = 0x5472 TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x8000 TPACKET_ALIGNMENT = 0x10 @@ -2447,7 +2549,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2646,6 +2748,8 @@ const ( 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 @@ -2662,6 +2766,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 603d88b8b..33bfa6cbf 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1683,6 +1709,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 PTRACE_GET_WATCH_REGS = 0xd0 @@ -1726,6 +1753,10 @@ const ( PTRACE_SET_WATCH_REGS = 0xd1 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 @@ -1784,7 +1815,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1857,6 +1888,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1881,6 +1913,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1888,7 +1921,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1900,6 +1933,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1908,8 +1942,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1994,6 +2028,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2132,6 +2168,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x1029 SO_DONTROUTE = 0x10 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2434,6 +2471,71 @@ const ( TIOCSTI = 0x5472 TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x8000 TPACKET_ALIGNMENT = 0x10 @@ -2447,7 +2549,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2646,6 +2748,8 @@ const ( 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 @@ -2662,6 +2766,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 ed178f8a7..89fd414e6 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1683,6 +1709,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 PTRACE_GET_WATCH_REGS = 0xd0 @@ -1726,6 +1753,10 @@ const ( PTRACE_SET_WATCH_REGS = 0xd1 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 @@ -1784,7 +1815,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1857,6 +1888,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1881,6 +1913,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1888,7 +1921,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1900,6 +1933,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1908,8 +1942,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1994,6 +2028,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2132,6 +2168,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x1029 SO_DONTROUTE = 0x10 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2434,6 +2471,71 @@ const ( TIOCSTI = 0x5472 TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x8000 TPACKET_ALIGNMENT = 0x10 @@ -2447,7 +2549,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2646,6 +2748,8 @@ const ( 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 @@ -2662,6 +2766,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 080b78933..aabe5e424 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x20 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1683,6 +1709,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_GET_THREAD_AREA = 0x19 PTRACE_GET_THREAD_AREA_3264 = 0xc4 PTRACE_GET_WATCH_REGS = 0xd0 @@ -1726,6 +1753,10 @@ const ( PTRACE_SET_WATCH_REGS = 0xd1 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 @@ -1784,7 +1815,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1857,6 +1888,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1881,6 +1913,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1888,7 +1921,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1900,6 +1933,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1908,8 +1942,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1994,6 +2028,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2132,6 +2168,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x1029 SO_DONTROUTE = 0x10 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2434,6 +2471,71 @@ const ( TIOCSTI = 0x5472 TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x8000 TPACKET_ALIGNMENT = 0x10 @@ -2447,7 +2549,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2646,6 +2748,8 @@ const ( 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 @@ -2662,6 +2766,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 961e8eabe..272279128 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1339,6 +1358,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1405,6 +1425,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80000000 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1671,6 +1695,8 @@ const ( 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 @@ -1690,6 +1716,7 @@ const ( PTRACE_GETVRREGS = 0x12 PTRACE_GETVSRREGS = 0x1b PTRACE_GET_DEBUGREG = 0x19 + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1729,6 +1756,10 @@ const ( PTRACE_SINGLEBLOCK = 0x100 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_SYSEMU = 0x1d PTRACE_SYSEMU_SINGLESTEP = 0x1e PTRACE_TRACEME = 0x0 @@ -1842,7 +1873,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1915,6 +1946,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1939,6 +1971,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1946,7 +1979,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1958,6 +1991,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1966,8 +2000,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2052,6 +2086,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2190,6 +2226,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2494,6 +2531,71 @@ const ( TIOCSTOP = 0x2000746f TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x400000 TPACKET_ALIGNMENT = 0x10 @@ -2507,7 +2609,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2705,6 +2807,8 @@ const ( 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 @@ -2721,6 +2825,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0xc00 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 6e0538f22..e33be416c 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1339,6 +1358,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1405,6 +1425,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80000000 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1671,6 +1695,8 @@ const ( 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 @@ -1690,6 +1716,7 @@ const ( PTRACE_GETVRREGS = 0x12 PTRACE_GETVSRREGS = 0x1b PTRACE_GET_DEBUGREG = 0x19 + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1729,6 +1756,10 @@ const ( PTRACE_SINGLEBLOCK = 0x100 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_SYSEMU = 0x1d PTRACE_SYSEMU_SINGLESTEP = 0x1e PTRACE_TRACEME = 0x0 @@ -1842,7 +1873,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1915,6 +1946,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1939,6 +1971,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1946,7 +1979,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1958,6 +1991,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1966,8 +2000,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2052,6 +2086,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2190,6 +2226,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2494,6 +2531,71 @@ const ( TIOCSTOP = 0x2000746f TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x400000 TPACKET_ALIGNMENT = 0x10 @@ -2507,7 +2609,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2705,6 +2807,8 @@ const ( 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 @@ -2721,6 +2825,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0xc00 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 06c0148c1..b9908d309 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1669,6 +1693,8 @@ const ( 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 @@ -1682,6 +1708,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1714,6 +1741,10 @@ const ( 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 @@ -1772,7 +1803,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1845,6 +1876,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1869,6 +1901,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1876,7 +1909,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1888,6 +1921,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1896,8 +1930,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -1982,6 +2016,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2120,6 +2156,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2420,6 +2457,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2433,7 +2535,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2631,6 +2733,8 @@ const ( 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 @@ -2647,6 +2751,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 39875095c..85647f4f7 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -253,6 +253,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -304,9 +305,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -460,6 +462,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -560,6 +563,7 @@ const ( 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 @@ -721,6 +725,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x0 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -986,6 +991,7 @@ const ( 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 @@ -1084,6 +1090,17 @@ const ( 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 @@ -1096,6 +1113,8 @@ const ( 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 @@ -1340,6 +1359,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1404,6 +1424,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0xb703 + NS_GET_OWNER_UID = 0xb704 + NS_GET_PARENT = 0xb702 + NS_GET_USERNS = 0xb701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1671,6 +1695,8 @@ const ( PTRACE_DETACH = 0x11 PTRACE_DISABLE_TE = 0x5010 PTRACE_ENABLE_TE = 0x5009 + PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1 + PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2 PTRACE_EVENT_CLONE = 0x3 PTRACE_EVENT_EXEC = 0x4 PTRACE_EVENT_EXIT = 0x6 @@ -1685,6 +1711,7 @@ const ( PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a PTRACE_GET_LAST_BREAK = 0x5006 + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1728,6 +1755,10 @@ const ( PTRACE_SINGLEBLOCK = 0xc 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_TE_ABORT_RAND = 0x5011 PTRACE_TRACEME = 0x0 PT_ACR0 = 0x90 @@ -1845,7 +1876,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1918,6 +1949,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1942,6 +1974,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1949,7 +1982,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1961,6 +1994,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1969,8 +2003,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2055,6 +2089,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2193,6 +2229,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x44 SO_DOMAIN = 0x27 SO_DONTROUTE = 0x5 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2493,6 +2530,71 @@ const ( TIOCSTI = 0x5412 TIOCSWINSZ = 0x5414 TIOCVHANGUP = 0x5437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2506,7 +2608,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2704,6 +2806,8 @@ const ( 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 @@ -2720,6 +2824,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 ) 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 8d80f99bc..c0095a543 100644 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -256,6 +256,7 @@ const ( 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_TUNINFO_IPV6 = 0x1 BPF_F_USER_BUILD_ID = 0x800 BPF_F_USER_STACK = 0x100 @@ -307,9 +308,10 @@ const ( BPF_RET = 0x6 BPF_RSH = 0x70 BPF_SK_STORAGE_GET_F_CREATE = 0x1 - BPF_SOCK_OPS_ALL_CB_FLAGS = 0x7 + 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 @@ -463,6 +465,7 @@ const ( DAXFS_MAGIC = 0x64646178 DEBUGFS_MAGIC = 0x64626720 DEVPTS_SUPER_MAGIC = 0x1cd1 + DMA_BUF_MAGIC = 0x444d4142 DT_BLK = 0x6 DT_CHR = 0x2 DT_DIR = 0x4 @@ -564,6 +567,7 @@ const ( 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 @@ -725,6 +729,7 @@ const ( F_OFD_SETLKW = 0x26 F_OK = 0x0 F_RDLCK = 0x1 + F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1 F_SEAL_SHRINK = 0x2 @@ -990,6 +995,7 @@ const ( 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 @@ -1088,6 +1094,17 @@ const ( 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 @@ -1100,6 +1117,8 @@ const ( 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 @@ -1344,6 +1363,7 @@ const ( NETLINK_XFRM = 0x6 NETNSA_MAX = 0x5 NETNSA_NSID_NOT_ASSIGNED = -0x1 + NFDBITS = 0x40 NFNETLINK_V0 = 0x0 NFNLGRP_ACCT_QUOTA = 0x8 NFNLGRP_CONNTRACK_DESTROY = 0x3 @@ -1408,6 +1428,10 @@ const ( NLM_F_ROOT = 0x100 NOFLSH = 0x80 NSFS_MAGIC = 0x6e736673 + NS_GET_NSTYPE = 0x2000b703 + NS_GET_OWNER_UID = 0x2000b704 + NS_GET_PARENT = 0x2000b702 + NS_GET_USERNS = 0x2000b701 OCFS2_SUPER_MAGIC = 0x7461636f OCRNL = 0x8 OFDEL = 0x80 @@ -1673,6 +1697,8 @@ const ( 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 @@ -1690,6 +1716,7 @@ const ( PTRACE_GETREGSET = 0x4204 PTRACE_GETSIGINFO = 0x4202 PTRACE_GETSIGMASK = 0x420a + PTRACE_GET_SYSCALL_INFO = 0x420e PTRACE_INTERRUPT = 0x4207 PTRACE_KILL = 0x8 PTRACE_LISTEN = 0x4208 @@ -1729,6 +1756,10 @@ const ( PTRACE_SINGLESTEP = 0x9 PTRACE_SPARC_DETACH = 0xb 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 PTRACE_WRITEDATA = 0x11 PTRACE_WRITETEXT = 0x13 @@ -1837,7 +1868,7 @@ const ( RTAX_UNSPEC = 0x0 RTAX_WINDOW = 0x3 RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1d + RTA_MAX = 0x1e RTCF_DIRECTSRC = 0x4000000 RTCF_DOREDIRECT = 0x1000000 RTCF_LOG = 0x2000000 @@ -1910,6 +1941,7 @@ const ( RTM_DELMDB = 0x55 RTM_DELNEIGH = 0x1d RTM_DELNETCONF = 0x51 + RTM_DELNEXTHOP = 0x69 RTM_DELNSID = 0x59 RTM_DELQDISC = 0x25 RTM_DELROUTE = 0x19 @@ -1934,6 +1966,7 @@ const ( RTM_GETNEIGH = 0x1e RTM_GETNEIGHTBL = 0x42 RTM_GETNETCONF = 0x52 + RTM_GETNEXTHOP = 0x6a RTM_GETNSID = 0x5a RTM_GETQDISC = 0x26 RTM_GETROUTE = 0x1a @@ -1941,7 +1974,7 @@ const ( RTM_GETSTATS = 0x5e RTM_GETTCLASS = 0x2a RTM_GETTFILTER = 0x2e - RTM_MAX = 0x67 + RTM_MAX = 0x6b RTM_NEWACTION = 0x30 RTM_NEWADDR = 0x14 RTM_NEWADDRLABEL = 0x48 @@ -1953,6 +1986,7 @@ const ( RTM_NEWNEIGH = 0x1c RTM_NEWNEIGHTBL = 0x40 RTM_NEWNETCONF = 0x50 + RTM_NEWNEXTHOP = 0x68 RTM_NEWNSID = 0x58 RTM_NEWPREFIX = 0x34 RTM_NEWQDISC = 0x24 @@ -1961,8 +1995,8 @@ const ( RTM_NEWSTATS = 0x5c RTM_NEWTCLASS = 0x28 RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x16 - RTM_NR_MSGTYPES = 0x58 + RTM_NR_FAMILIES = 0x17 + RTM_NR_MSGTYPES = 0x5c RTM_SETDCB = 0x4f RTM_SETLINK = 0x13 RTM_SETNEIGHTBL = 0x43 @@ -2047,6 +2081,8 @@ const ( SIOCDRARP = 0x8960 SIOCETHTOOL = 0x8946 SIOCGARP = 0x8954 + SIOCGETLINKNAME = 0x89e0 + SIOCGETNODEID = 0x89e1 SIOCGHWTSTAMP = 0x89b1 SIOCGIFADDR = 0x8915 SIOCGIFBR = 0x8940 @@ -2185,6 +2221,7 @@ const ( SO_DEBUG = 0x1 SO_DETACH_BPF = 0x1b SO_DETACH_FILTER = 0x1b + SO_DETACH_REUSEPORT_BPF = 0x47 SO_DOMAIN = 0x1029 SO_DONTROUTE = 0x10 SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1 @@ -2482,6 +2519,71 @@ const ( TIOCSTOP = 0x2000746f TIOCSWINSZ = 0x80087467 TIOCVHANGUP = 0x20005437 + TIPC_ADDR_ID = 0x3 + TIPC_ADDR_MCAST = 0x1 + TIPC_ADDR_NAME = 0x2 + TIPC_ADDR_NAMESEQ = 0x1 + 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_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 TOSTOP = 0x100 TPACKET_ALIGNMENT = 0x10 @@ -2495,7 +2597,7 @@ const ( TP_STATUS_LOSING = 0x4 TP_STATUS_SENDING = 0x2 TP_STATUS_SEND_REQUEST = 0x1 - TP_STATUS_TS_RAW_HARDWARE = -0x80000000 + TP_STATUS_TS_RAW_HARDWARE = 0x80000000 TP_STATUS_TS_SOFTWARE = 0x20000000 TP_STATUS_TS_SYS_HARDWARE = 0x40000000 TP_STATUS_USER = 0x1 @@ -2693,6 +2795,8 @@ const ( 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 @@ -2709,6 +2813,7 @@ const ( XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 XTABS = 0x1800 + Z3FOLD_MAGIC = 0x33 ZSMALLOC_MAGIC = 0x58295829 __TIOCFLUSH = 0x80047410 ) 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/zsyscall_darwin_386.1_11.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go index c4ec7ff87..b42c1cbad 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) @@ -377,16 +361,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 { @@ -1352,8 +1326,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 +1666,49 @@ 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 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 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..603c9f6eb 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) @@ -527,21 +506,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 { @@ -943,6 +907,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 +1851,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 +2321,42 @@ 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 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 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..ece6f67c2 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s @@ -40,8 +40,6 @@ 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 @@ -64,8 +62,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 @@ -108,6 +104,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 +262,10 @@ 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___sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc___sysctl(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..38b7cbab3 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) @@ -377,16 +361,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 { @@ -1352,8 +1326,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 +1666,49 @@ 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 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 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..fda478e8b 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) @@ -527,21 +506,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 { @@ -1887,8 +1851,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 +2321,42 @@ 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 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 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..7c4d59016 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s @@ -40,8 +40,6 @@ 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 @@ -64,8 +62,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 @@ -266,6 +262,10 @@ 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___sysctl_trampoline(SB),NOSPLIT,$0-0 + JMP libc___sysctl(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..abb69183a 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) @@ -377,16 +361,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 { @@ -1352,8 +1326,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..163b3912d 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) @@ -527,21 +506,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 { @@ -943,6 +907,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 +1851,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..5bebb1bbd 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s @@ -40,8 +40,6 @@ 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 @@ -64,8 +62,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 @@ -108,6 +104,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..b75c11d41 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) @@ -377,16 +361,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 { @@ -1352,8 +1326,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..7c5bd510e 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) @@ -527,21 +506,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 { @@ -943,6 +907,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 +1851,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..96ab9877e 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s @@ -40,8 +40,6 @@ 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 @@ -64,8 +62,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 @@ -108,6 +104,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..df199b345 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -1272,8 +1272,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..e68185f1e 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -1606,8 +1606,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..2f77f93c4 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) @@ -377,8 +361,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 +377,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 +414,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 +1606,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..e9a12c9d9 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) @@ -377,8 +361,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 +377,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 +414,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 +1606,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..27ab0fbda 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe2(p *[2]_C_int, flags int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) if e1 != 0 { @@ -404,8 +404,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 +414,8 @@ 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 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 +1606,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_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index c5e46e4cf..fe5d462e4 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..536abcea3 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..37823cd6b 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..794f61264 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..1b34b550c 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..5714e2592 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..88a6b3362 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..c09dbe345 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..42f6c2103 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..de2cd8db9 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..d51bf07fc 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..1e3a3cb73 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..3c97008cd 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -305,6 +305,36 @@ func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { // 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 { 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..5ade42cce 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe() (fd1 int, fd2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) fd1 = int(r0) @@ -1498,8 +1498,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_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go index d94d076aa..3e0bbc5f1 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe() (fd1 int, fd2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) fd1 = int(r0) @@ -1498,8 +1498,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_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index cf5bf3d05..cb0af13a3 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe() (fd1 int, fd2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) fd1 = int(r0) @@ -1498,8 +1498,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_netbsd_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go index 243a9317c..6fd48d3dc 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe() (fd1 int, fd2 int, err error) { r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) fd1 = int(r0) @@ -1498,8 +1498,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_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index a9532d078..2938e4124 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1304,8 +1304,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..22b79ab0e 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1304,8 +1304,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..cb921f37a 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1304,8 +1304,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..5a7438035 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) @@ -377,6 +361,22 @@ func Munlockall() (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 pipe(p *[2]_C_int) (err error) { _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) if e1 != 0 { @@ -1304,8 +1304,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 e869c0603..7aae554f2 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -429,4 +429,6 @@ const ( 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 4917b8ab6..7968439a9 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -351,4 +351,6 @@ const ( 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 f85fcb4f8..3c663c69d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -393,4 +393,6 @@ const ( 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 678a119bc..753def987 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -296,4 +296,5 @@ const ( SYS_FSCONFIG = 431 SYS_FSMOUNT = 432 SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 ) 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 222c9f9a2..ac86bd544 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -414,4 +414,5 @@ const ( SYS_FSCONFIG = 4431 SYS_FSMOUNT = 4432 SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 ) 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 28e6d0e9d..1f5705b58 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -344,4 +344,5 @@ const ( SYS_FSCONFIG = 5431 SYS_FSMOUNT = 5432 SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 ) 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 e643c6f63..d9ed95326 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -344,4 +344,5 @@ const ( SYS_FSCONFIG = 5431 SYS_FSMOUNT = 5432 SYS_FSPICK = 5433 + SYS_PIDFD_OPEN = 5434 ) 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 01d93c420..94266b65a 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -414,4 +414,5 @@ const ( SYS_FSCONFIG = 4431 SYS_FSMOUNT = 4432 SYS_FSPICK = 4433 + SYS_PIDFD_OPEN = 4434 ) 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 5744149eb..52e3da649 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -393,4 +393,6 @@ const ( 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 21c832042..6141f90a8 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -393,4 +393,6 @@ const ( 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 c1bb6d8f2..4f7261a88 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -295,4 +295,6 @@ const ( 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 bc3cc6b5b..f47014ac0 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -358,4 +358,6 @@ const ( 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 0a2841ba8..dd78abb0d 100644 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -373,4 +373,5 @@ const ( SYS_FSCONFIG = 431 SYS_FSMOUNT = 432 SYS_FSPICK = 433 + SYS_PIDFD_OPEN = 434 ) 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 50bc4128f..74d42bb5d 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -285,6 +285,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -425,6 +432,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x8 SizeofIPMreq = 0x8 @@ -614,6 +622,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -664,6 +673,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2521,3 +2537,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 055eaa76a..8debef94a 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -285,6 +285,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -426,6 +433,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -615,6 +623,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -665,6 +674,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2535,3 +2551,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 66019c9cf..feb7d8370 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -289,6 +289,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -429,6 +436,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x8 SizeofIPMreq = 0x8 @@ -618,6 +626,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -668,6 +677,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2512,3 +2528,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +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 +) 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 3104798c4..6da217837 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -286,6 +286,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -427,6 +434,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -616,6 +624,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -666,6 +675,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2514,3 +2530,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 46c86021b..14b1dea68 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -288,6 +288,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -428,6 +435,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x8 SizeofIPMreq = 0x8 @@ -617,6 +625,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -667,6 +676,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2518,3 +2534,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 c2fe1a62a..0fb94a768 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -286,6 +286,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -427,6 +434,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -616,6 +624,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -666,6 +675,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2516,3 +2532,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 f1eb0d397..7ffc7bbc5 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -286,6 +286,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -427,6 +434,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -616,6 +624,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -666,6 +675,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2516,3 +2532,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 8759bc36b..12ef8eb45 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -288,6 +288,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -428,6 +435,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x8 SizeofIPMreq = 0x8 @@ -617,6 +625,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -667,6 +676,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2518,3 +2534,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 a81200541..cb89d8a1e 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -287,6 +287,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -428,6 +435,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -617,6 +625,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -667,6 +676,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2524,3 +2540,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +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 +) 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 74b7a9199..d9c93affb 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -287,6 +287,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -428,6 +435,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -617,6 +625,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -667,6 +676,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2524,3 +2540,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +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 +) 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 8344583e7..a198cc529 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -286,6 +286,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]uint8 @@ -427,6 +434,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -616,6 +624,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -666,6 +675,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -808,6 +824,7 @@ type Ustat_t struct { type EpollEvent struct { Events uint32 + _ int32 Fd int32 Pad int32 } @@ -2541,3 +2558,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]uint8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]uint8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]uint8 +} + +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 +) 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 d8fc0bc1c..f1e26c565 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -285,6 +285,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -426,6 +433,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -615,6 +623,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -665,6 +674,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2538,3 +2554,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) 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 5e0ab9329..d28248040 100644 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -289,6 +289,13 @@ type RawSockaddrXDP struct { type RawSockaddrPPPoX [0x1e]byte +type RawSockaddrTIPC struct { + Family uint16 + Addrtype uint8 + Scope int8 + Addr [12]byte +} + type RawSockaddr struct { Family uint16 Data [14]int8 @@ -430,6 +437,7 @@ const ( SizeofSockaddrVM = 0x10 SizeofSockaddrXDP = 0x10 SizeofSockaddrPPPoX = 0x1e + SizeofSockaddrTIPC = 0x10 SizeofLinger = 0x8 SizeofIovec = 0x10 SizeofIPMreq = 0x8 @@ -619,6 +627,7 @@ const ( SizeofRtAttr = 0x4 SizeofIfInfomsg = 0x10 SizeofIfAddrmsg = 0x8 + SizeofIfaCacheinfo = 0x10 SizeofRtMsg = 0xc SizeofRtNexthop = 0x8 SizeofNdUseroptmsg = 0x10 @@ -669,6 +678,13 @@ type IfAddrmsg struct { Index uint32 } +type IfaCacheinfo struct { + Prefered uint32 + Valid uint32 + Cstamp uint32 + Tstamp uint32 +} + type RtMsg struct { Family uint8 Dst_len uint8 @@ -2519,3 +2535,72 @@ type LoopInfo64 struct { 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 TIPCSubscr struct { + Seq TIPCServiceRange + Timeout uint32 + Filter uint32 + Handle [8]int8 +} + +type TIPCEvent struct { + Event uint32 + Lower uint32 + Upper uint32 + Port TIPCSocketAddr + S TIPCSubscr +} + +type TIPCGroupReq struct { + Type uint32 + Instance uint32 + Scope uint32 + Flags uint32 +} + +type TIPCSIOCLNReq struct { + Peer uint32 + Id uint32 + Linkname [68]int8 +} + +type TIPCSIOCNodeIDReq struct { + Peer uint32 + Id [16]int8 +} + +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 +) diff --git a/vendor/modules.txt b/vendor/modules.txt index 50ef9c880..1bbf415c8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -60,28 +60,28 @@ github.com/bgentry/speakeasy github.com/blang/semver # github.com/bmatcuk/doublestar v1.1.5 github.com/bmatcuk/doublestar -# github.com/chiradeep/go-nitro v0.0.0-20210415084059-355fec1cd7ac -github.com/chiradeep/go-nitro/config/appfw -github.com/chiradeep/go-nitro/config/audit -github.com/chiradeep/go-nitro/config/basic -github.com/chiradeep/go-nitro/config/cluster -github.com/chiradeep/go-nitro/config/cmp -github.com/chiradeep/go-nitro/config/cs -github.com/chiradeep/go-nitro/config/dns -github.com/chiradeep/go-nitro/config/filter -github.com/chiradeep/go-nitro/config/gslb -github.com/chiradeep/go-nitro/config/lb -github.com/chiradeep/go-nitro/config/network -github.com/chiradeep/go-nitro/config/ns -github.com/chiradeep/go-nitro/config/policy -github.com/chiradeep/go-nitro/config/responder -github.com/chiradeep/go-nitro/config/rewrite -github.com/chiradeep/go-nitro/config/router -github.com/chiradeep/go-nitro/config/ssl -github.com/chiradeep/go-nitro/config/system -github.com/chiradeep/go-nitro/config/transform -github.com/chiradeep/go-nitro/config/utility -github.com/chiradeep/go-nitro/netscaler +# github.com/citrix/adc-nitro-go v0.0.0-20210616092114-c917a2b77ef3 +github.com/citrix/adc-nitro-go/resource/config/appfw +github.com/citrix/adc-nitro-go/resource/config/audit +github.com/citrix/adc-nitro-go/resource/config/basic +github.com/citrix/adc-nitro-go/resource/config/cluster +github.com/citrix/adc-nitro-go/resource/config/cmp +github.com/citrix/adc-nitro-go/resource/config/cs +github.com/citrix/adc-nitro-go/resource/config/dns +github.com/citrix/adc-nitro-go/resource/config/filter +github.com/citrix/adc-nitro-go/resource/config/gslb +github.com/citrix/adc-nitro-go/resource/config/lb +github.com/citrix/adc-nitro-go/resource/config/network +github.com/citrix/adc-nitro-go/resource/config/ns +github.com/citrix/adc-nitro-go/resource/config/policy +github.com/citrix/adc-nitro-go/resource/config/responder +github.com/citrix/adc-nitro-go/resource/config/rewrite +github.com/citrix/adc-nitro-go/resource/config/router +github.com/citrix/adc-nitro-go/resource/config/ssl +github.com/citrix/adc-nitro-go/resource/config/system +github.com/citrix/adc-nitro-go/resource/config/transform +github.com/citrix/adc-nitro-go/resource/config/utility +github.com/citrix/adc-nitro-go/service # github.com/davecgh/go-spew v1.1.1 github.com/davecgh/go-spew/spew # github.com/fatih/color v1.7.0 @@ -110,7 +110,7 @@ github.com/hashicorp/go-cleanhttp # github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02 github.com/hashicorp/go-getter github.com/hashicorp/go-getter/helper/url -# github.com/hashicorp/go-hclog v0.9.2 +# github.com/hashicorp/go-hclog v0.16.1 github.com/hashicorp/go-hclog # github.com/hashicorp/go-multierror v1.0.0 github.com/hashicorp/go-multierror @@ -210,9 +210,9 @@ github.com/hashicorp/yamux github.com/jmespath/go-jmespath # github.com/kr/fs v0.1.0 github.com/kr/fs -# github.com/mattn/go-colorable v0.1.1 +# github.com/mattn/go-colorable v0.1.4 github.com/mattn/go-colorable -# github.com/mattn/go-isatty v0.0.5 +# github.com/mattn/go-isatty v0.0.10 github.com/mattn/go-isatty # github.com/mitchellh/cli v1.0.0 github.com/mitchellh/cli @@ -314,7 +314,7 @@ golang.org/x/oauth2/google golang.org/x/oauth2/internal golang.org/x/oauth2/jws golang.org/x/oauth2/jwt -# golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa +# golang.org/x/sys v0.0.0-20191008105621-543471e840be golang.org/x/sys/cpu golang.org/x/sys/unix # golang.org/x/text v0.3.2 From 29aa14abbf421b0dabf894d7277dbd834c4e9187 Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Tue, 6 Jul 2021 11:19:09 +0300 Subject: [PATCH 3/5] Update adc-nitro-go dependency to latest --- go.mod | 2 +- .../resource/config/appfw/appfwfieldtype.go | 2 +- .../appfw/appfwglobal_appfwpolicy_binding.go | 67 ++++++++++ .../appfwglobal_auditnslogpolicy_binding.go | 72 +++++++++++ .../appfwglobal_auditsyslogpolicy_binding.go | 72 +++++++++++ .../config/appfw/appfwlearningsettings.go | 60 ++++----- .../appfw/appfwpolicy_appfwglobal_binding.go | 53 ++++++++ .../appfwpolicy_appfwpolicylabel_binding.go | 53 ++++++++ .../appfw/appfwpolicy_csvserver_binding.go | 53 ++++++++ .../appfw/appfwpolicy_lbvserver_binding.go | 53 ++++++++ .../appfwpolicylabel_appfwpolicy_binding.go | 55 +++++++++ .../appfwpolicylabel_policybinding_binding.go | 2 +- .../resource/config/appfw/appfwprofile.go | 28 ++--- .../appfw/appfwprofile_fieldformat_binding.go | 4 +- .../appfw/appfwprofile_jsondosurl_binding.go | 12 +- .../appfw/appfwprofile_safeobject_binding.go | 2 +- .../appfwprofile_xmlattachmenturl_binding.go | 2 +- .../appfw/appfwprofile_xmldosurl_binding.go | 34 +++--- .../resource/config/appfw/appfwsettings.go | 12 +- .../config/appfw/appfwtransactionrecords.go | 2 +- .../resource/config/audit/auditmessages.go | 2 +- .../resource/config/audit/auditnslogaction.go | 4 +- ...ditnslogglobal_auditnslogpolicy_binding.go | 42 +++++++ .../resource/config/audit/auditnslogparams.go | 2 +- .../auditnslogpolicy_aaagroup_binding.go | 35 ++++++ .../audit/auditnslogpolicy_aaauser_binding.go | 35 ++++++ .../auditnslogpolicy_appfwglobal_binding.go | 35 ++++++ ...ditnslogpolicy_auditnslogglobal_binding.go | 35 ++++++ ...logpolicy_authenticationvserver_binding.go | 35 ++++++ .../auditnslogpolicy_csvserver_binding.go | 35 ++++++ .../auditnslogpolicy_lbvserver_binding.go | 35 ++++++ .../auditnslogpolicy_systemglobal_binding.go | 35 ++++++ .../auditnslogpolicy_tmglobal_binding.go | 35 ++++++ .../auditnslogpolicy_vpnglobal_binding.go | 35 ++++++ .../auditnslogpolicy_vpnvserver_binding.go | 35 ++++++ .../config/audit/auditsyslogaction.go | 6 +- ...tsyslogglobal_auditsyslogpolicy_binding.go | 46 +++++++ .../config/audit/auditsyslogparams.go | 2 +- .../auditsyslogpolicy_aaagroup_binding.go | 35 ++++++ .../auditsyslogpolicy_aaauser_binding.go | 35 ++++++ ...tsyslogpolicy_auditsyslogglobal_binding.go | 35 ++++++ ...logpolicy_authenticationvserver_binding.go | 35 ++++++ .../auditsyslogpolicy_csvserver_binding.go | 35 ++++++ .../auditsyslogpolicy_lbvserver_binding.go | 35 ++++++ .../auditsyslogpolicy_rnatglobal_binding.go | 4 +- .../auditsyslogpolicy_systemglobal_binding.go | 35 ++++++ .../auditsyslogpolicy_tmglobal_binding.go | 35 ++++++ .../auditsyslogpolicy_vpnglobal_binding.go | 35 ++++++ .../auditsyslogpolicy_vpnvserver_binding.go | 35 ++++++ .../config/basic/extendedmemoryparam.go | 2 +- .../resource/config/basic/location.go | 4 +- .../resource/config/basic/nstrace.go | 14 +-- .../resource/config/basic/server.go | 6 +- .../basic/server_gslbservice_binding.go | 53 ++++++++ .../basic/server_gslbservicegroup_binding.go | 114 ++++++++++++++++++ .../config/basic/server_service_binding.go | 2 +- .../basic/server_servicegroup_binding.go | 28 ++--- .../resource/config/basic/service.go | 26 ++-- .../config/basic/service_dospolicy_binding.go | 33 +++++ .../config/basic/service_lbmonitor_binding.go | 105 ++++++++++++++++ .../config/basic/service_scpolicy_binding.go | 33 +++++ .../resource/config/basic/servicegroup.go | 32 ++--- .../basic/servicegroup_lbmonitor_binding.go | 77 ++++++++++++ ...p_servicegroupentitymonbindings_binding.go | 18 +-- ...servicegroup_servicegroupmember_binding.go | 16 +-- ...icegroup_servicegroupmemberlist_binding.go | 6 +- .../resource/config/basic/vserver.go | 6 +- .../config/cluster/clusterinstance.go | 6 +- .../config/cluster/clusterinstance_binding.go | 2 +- .../clusterinstance_clusternode_binding.go | 77 ++++++++++++ .../resource/config/cluster/clusternode.go | 6 +- .../config/cluster/clusternode_binding.go | 2 +- .../clusternode_routemonitor_binding.go | 4 +- .../config/cluster/clusternodegroup.go | 2 +- ...nodegroup_authenticationvserver_binding.go | 33 +++++ .../clusternodegroup_clusternode_binding.go | 33 +++++ .../clusternodegroup_crvserver_binding.go | 33 +++++ .../clusternodegroup_csvserver_binding.go | 33 +++++ .../clusternodegroup_gslbsite_binding.go | 33 +++++ .../clusternodegroup_gslbvserver_binding.go | 33 +++++ .../clusternodegroup_lbvserver_binding.go | 33 +++++ ...sternodegroup_nslimitidentifier_binding.go | 33 +++++ ...usternodegroup_streamidentifier_binding.go | 33 +++++ .../clusternodegroup_vpnvserver_binding.go | 33 +++++ .../config/cluster/clusterpropstatus.go | 2 +- .../config/cmp/cmpglobal_cmppolicy_binding.go | 79 ++++++++++++ .../resource/config/cmp/cmpparameter.go | 10 +- .../config/cmp/cmppolicy_cmpglobal_binding.go | 47 ++++++++ .../cmp/cmppolicy_cmppolicylabel_binding.go | 47 ++++++++ .../config/cmp/cmppolicy_crvserver_binding.go | 35 ++++++ .../config/cmp/cmppolicy_csvserver_binding.go | 47 ++++++++ .../config/cmp/cmppolicy_lbvserver_binding.go | 47 ++++++++ .../cmp/cmppolicylabel_cmppolicy_binding.go | 53 ++++++++ .../cmppolicylabel_policybinding_binding.go | 2 +- .../config/cs/cspolicy_crvserver_binding.go | 53 ++++++++ .../cs/cspolicy_cspolicylabel_binding.go | 53 ++++++++ .../config/cs/cspolicy_csvserver_binding.go | 65 ++++++++++ .../cs/cspolicylabel_cspolicy_binding.go | 54 +++++++++ .../resource/config/cs/csvserver.go | 38 +++--- .../cs/csvserver_analyticsprofile_binding.go | 33 +++++ .../cs/csvserver_appflowpolicy_binding.go | 63 ++++++++++ .../cs/csvserver_appfwpolicy_binding.go | 67 ++++++++++ .../cs/csvserver_appqoepolicy_binding.go | 63 ++++++++++ .../cs/csvserver_auditnslogpolicy_binding.go | 79 ++++++++++++ .../cs/csvserver_auditsyslogpolicy_binding.go | 79 ++++++++++++ .../csvserver_authorizationpolicy_binding.go | 67 ++++++++++ .../config/cs/csvserver_botpolicy_binding.go | 63 ++++++++++ .../cs/csvserver_cachepolicy_binding.go | 63 ++++++++++ .../config/cs/csvserver_cmppolicy_binding.go | 67 ++++++++++ ...vserver_contentinspectionpolicy_binding.go | 63 ++++++++++ .../config/cs/csvserver_cspolicy_binding.go | 81 +++++++++++++ .../config/cs/csvserver_domain_binding.go | 6 +- .../config/cs/csvserver_feopolicy_binding.go | 63 ++++++++++ .../cs/csvserver_filterpolicy_binding.go | 79 ++++++++++++ .../cs/csvserver_gslbvserver_binding.go | 37 ++++++ .../config/cs/csvserver_lbvserver_binding.go | 49 ++++++++ .../cs/csvserver_responderpolicy_binding.go | 63 ++++++++++ .../cs/csvserver_rewritepolicy_binding.go | 63 ++++++++++ .../cs/csvserver_spilloverpolicy_binding.go | 63 ++++++++++ .../cs/csvserver_tmtrafficpolicy_binding.go | 75 ++++++++++++ .../cs/csvserver_transformpolicy_binding.go | 63 ++++++++++ .../config/cs/csvserver_vpnvserver_binding.go | 37 ++++++ .../resource/config/dns/dnsaaaarec.go | 4 +- .../resource/config/dns/dnsaction.go | 2 +- .../resource/config/dns/dnsaddrec.go | 4 +- .../resource/config/dns/dnscnamerec.go | 4 +- .../config/dns/dnsglobal_dnspolicy_binding.go | 74 ++++++++++++ .../resource/config/dns/dnskey.go | 8 +- .../resource/config/dns/dnsmxrec.go | 6 +- .../resource/config/dns/dnsnaptrrec.go | 10 +- .../resource/config/dns/dnsnsrec.go | 4 +- .../resource/config/dns/dnsparameter.go | 22 ++-- .../dns/dnspolicy64_lbvserver_binding.go | 41 +++++++ .../config/dns/dnspolicy_dnsglobal_binding.go | 53 ++++++++ .../dns/dnspolicy_dnspolicylabel_binding.go | 53 ++++++++ .../dns/dnspolicylabel_dnspolicy_binding.go | 53 ++++++++ .../dnspolicylabel_policybinding_binding.go | 2 +- .../resource/config/dns/dnsptrrec.go | 4 +- .../resource/config/dns/dnssoarec.go | 14 +-- .../resource/config/dns/dnssrvrec.go | 10 +- .../resource/config/dns/dnssubnetcache.go | 2 +- .../resource/config/dns/dnstxtrec.go | 6 +- .../config/dns/dnsview_dnspolicy_binding.go | 33 +++++ .../config/dns/dnsview_gslbservice_binding.go | 37 ++++++ .../config/dns/dnszone_dnskey_binding.go | 45 +++++++ .../resource/config/filter/filteraction.go | 2 +- .../filterglobal_filterpolicy_binding.go | 37 ++++++ .../filter/filterhtmlinjectionparameter.go | 6 +- .../filter/filterpolicy_crvserver_binding.go | 35 ++++++ .../filter/filterpolicy_csvserver_binding.go | 35 ++++++ .../filterpolicy_filterglobal_binding.go | 35 ++++++ .../filter/filterpolicy_lbvserver_binding.go | 35 ++++++ .../gslb/gslbdomain_gslbservice_binding.go | 74 ++++++++++++ .../gslbdomain_gslbservicegroup_binding.go | 33 +++++ ...lbdomain_gslbservicegroupmember_binding.go | 57 +++++++++ .../gslb/gslbdomain_gslbvserver_binding.go | 107 ++++++++++++++++ .../gslb/gslbdomain_lbmonitor_binding.go | 82 +++++++++++++ .../resource/config/gslb/gslbldnsentries.go | 2 +- .../resource/config/gslb/gslbparameter.go | 14 +-- .../resource/config/gslb/gslbservice.go | 28 ++--- .../gslb/gslbservice_dnsview_binding.go | 37 ++++++ .../gslb/gslbservice_lbmonitor_binding.go | 89 ++++++++++++++ .../resource/config/gslb/gslbservicegroup.go | 22 ++-- ...icegroup_gslbservicegroupmember_binding.go | 94 +++++++++++++++ .../gslbservicegroup_lbmonitor_binding.go | 73 +++++++++++ ...p_servicegroupentitymonbindings_binding.go | 14 +-- .../gslb/gslbsite_gslbservice_binding.go | 53 ++++++++ .../gslb/gslbsite_gslbservicegroup_binding.go | 37 ++++++ ...gslbsite_gslbservicegroupmember_binding.go | 49 ++++++++ .../resource/config/gslb/gslbvserver.go | 24 ++-- .../config/gslb/gslbvserver_domain_binding.go | 6 +- .../gslb/gslbvserver_gslbservice_binding.go | 97 +++++++++++++++ .../gslbvserver_gslbservicegroup_binding.go | 33 +++++ ...bvserver_gslbservicegroupmember_binding.go | 81 +++++++++++++ .../gslbvserver_spilloverpolicy_binding.go | 55 +++++++++ .../resource/config/lb/lbgroup.go | 6 +- .../config/lb/lbgroup_lbvserver_binding.go | 34 ++++++ .../lbmonbindings_gslbservicegroup_binding.go | 45 +++++++ .../lb/lbmonbindings_service_binding.go | 2 +- .../resource/config/lb/lbmonitor.go | 52 ++++---- .../config/lb/lbmonitor_metric_binding.go | 4 +- .../config/lb/lbmonitor_service_binding.go | 4 +- .../lb/lbmonitor_servicegroup_binding.go | 4 +- .../config/lb/lbmonitor_sslcertkey_binding.go | 45 +++++++ .../resource/config/lb/lbparameter.go | 8 +- .../config/lb/lbpersistentsessions.go | 2 +- .../resource/config/lb/lbprofile.go | 2 +- .../resource/config/lb/lbroute.go | 2 +- .../resource/config/lb/lbroute6.go | 2 +- .../resource/config/lb/lbsipparameters.go | 12 +- .../resource/config/lb/lbvserver.go | 56 ++++----- .../lb/lbvserver_analyticsprofile_binding.go | 34 ++++++ .../lb/lbvserver_appflowpolicy_binding.go | 58 +++++++++ .../lb/lbvserver_appfwpolicy_binding.go | 62 ++++++++++ .../lb/lbvserver_appqoepolicy_binding.go | 61 ++++++++++ .../lb/lbvserver_auditnslogpolicy_binding.go | 77 ++++++++++++ .../lb/lbvserver_auditsyslogpolicy_binding.go | 77 ++++++++++++ .../lbvserver_authorizationpolicy_binding.go | 62 ++++++++++ .../config/lb/lbvserver_botpolicy_binding.go | 58 +++++++++ .../lb/lbvserver_cachepolicy_binding.go | 58 +++++++++ .../config/lb/lbvserver_cmppolicy_binding.go | 62 ++++++++++ ...vserver_contentinspectionpolicy_binding.go | 58 +++++++++ .../config/lb/lbvserver_csvserver_binding.go | 55 +++++++++ .../lb/lbvserver_dnspolicy64_binding.go | 61 ++++++++++ .../config/lb/lbvserver_dospolicy_binding.go | 38 ++++++ .../config/lb/lbvserver_feopolicy_binding.go | 61 ++++++++++ .../lb/lbvserver_filterpolicy_binding.go | 77 ++++++++++++ .../config/lb/lbvserver_pqpolicy_binding.go | 73 +++++++++++ .../lb/lbvserver_responderpolicy_binding.go | 58 +++++++++ .../lb/lbvserver_rewritepolicy_binding.go | 58 +++++++++ .../config/lb/lbvserver_scpolicy_binding.go | 73 +++++++++++ .../config/lb/lbvserver_service_binding.go | 8 +- .../lb/lbvserver_servicegroup_binding.go | 2 +- .../lbvserver_servicegroupmember_binding.go | 6 +- .../lb/lbvserver_spilloverpolicy_binding.go | 61 ++++++++++ .../lb/lbvserver_tmtrafficpolicy_binding.go | 73 +++++++++++ .../lb/lbvserver_transformpolicy_binding.go | 58 +++++++++ ...ideooptimizationdetectionpolicy_binding.go | 58 +++++++++ ...r_videooptimizationpacingpolicy_binding.go | 58 +++++++++ .../adc-nitro-go/resource/config/lb/lbwlm.go | 4 +- .../config/lb/lbwlm_lbvserver_binding.go | 33 +++++ .../resource/config/network/Interface.go | 16 +-- .../resource/config/network/appalgparam.go | 2 +- .../resource/config/network/arp.go | 10 +- .../resource/config/network/arpparam.go | 2 +- .../resource/config/network/bridgegroup.go | 2 +- .../config/network/bridgegroup_binding.go | 2 +- .../network/bridgegroup_nsip6_binding.go | 49 ++++++++ .../network/bridgegroup_nsip_binding.go | 49 ++++++++ .../network/bridgegroup_vlan_binding.go | 4 +- .../resource/config/network/bridgetable.go | 12 +- .../resource/config/network/channel.go | 10 +- .../network/channel_interface_binding.go | 14 +-- .../resource/config/network/fis.go | 2 +- .../config/network/fis_channel_binding.go | 2 +- .../config/network/fis_interface_binding.go | 2 +- .../config/network/forwardingsession.go | 2 +- .../resource/config/network/inat.go | 2 +- .../resource/config/network/inatparam.go | 4 +- .../resource/config/network/interfacepair.go | 2 +- .../resource/config/network/ip6tunnelparam.go | 2 +- .../resource/config/network/ipset.go | 2 +- .../config/network/ipset_nsip6_binding.go | 33 +++++ .../config/network/ipset_nsip_binding.go | 33 +++++ .../resource/config/network/iptunnel.go | 2 +- .../resource/config/network/iptunnelparam.go | 2 +- .../resource/config/network/ipv6.go | 6 +- .../resource/config/network/l2param.go | 6 +- .../resource/config/network/l3param.go | 4 +- .../resource/config/network/lacp.go | 4 +- .../resource/config/network/mapbmr.go | 6 +- .../resource/config/network/nat64param.go | 4 +- .../resource/config/network/nd6.go | 8 +- .../resource/config/network/nd6ravariables.go | 16 +-- .../config/network/nd6ravariables_binding.go | 2 +- ...nd6ravariables_onlinkipv6prefix_binding.go | 2 +- .../config/network/netbridge_nsip6_binding.go | 37 ++++++ .../config/network/netbridge_nsip_binding.go | 37 ++++++ .../config/network/netbridge_vlan_binding.go | 2 +- .../resource/config/network/netprofile.go | 2 +- .../config/network/onlinkipv6prefix.go | 4 +- .../resource/config/network/rnat.go | 4 +- .../resource/config/network/rnat6.go | 4 +- .../config/network/rnat6_nsip6_binding.go | 41 +++++++ .../config/network/rnat_nsip_binding.go | 41 +++++++ .../rnatglobal_auditsyslogpolicy_binding.go | 37 ++++++ .../resource/config/network/route.go | 12 +- .../resource/config/network/route6.go | 12 +- .../resource/config/network/vlan.go | 4 +- .../resource/config/network/vlan_binding.go | 2 +- .../config/network/vlan_channel_binding.go | 2 +- .../config/network/vlan_interface_binding.go | 2 +- .../config/network/vlan_linkset_binding.go | 2 +- .../config/network/vlan_nsip6_binding.go | 45 +++++++ .../config/network/vlan_nsip_binding.go | 45 +++++++ .../resource/config/network/vrid.go | 10 +- .../resource/config/network/vrid6.go | 10 +- .../resource/config/network/vrid6_binding.go | 2 +- .../config/network/vrid6_channel_binding.go | 6 +- .../config/network/vrid6_interface_binding.go | 6 +- .../config/network/vrid6_nsip6_binding.go | 37 ++++++ .../config/network/vrid6_nsip_binding.go | 37 ++++++ .../network/vrid6_trackinterface_binding.go | 4 +- .../resource/config/network/vrid_binding.go | 2 +- .../config/network/vrid_channel_binding.go | 6 +- .../config/network/vrid_interface_binding.go | 6 +- .../config/network/vrid_nsip6_binding.go | 37 ++++++ .../config/network/vrid_nsip_binding.go | 37 ++++++ .../network/vrid_trackinterface_binding.go | 4 +- .../resource/config/network/vridparam.go | 4 +- .../resource/config/network/vxlan.go | 6 +- .../resource/config/network/vxlan_binding.go | 2 +- .../config/network/vxlan_iptunnel_binding.go | 2 +- .../config/network/vxlan_nsip6_binding.go | 37 ++++++ .../config/network/vxlan_nsip_binding.go | 37 ++++++ .../config/network/vxlan_srcip_binding.go | 2 +- .../network/vxlanvlanmap_vxlan_binding.go | 2 +- .../adc-nitro-go/resource/config/ns/nsacl.go | 18 +-- .../adc-nitro-go/resource/config/ns/nsacl6.go | 20 +-- .../resource/config/ns/nsappflowcollector.go | 2 +- .../resource/config/ns/nsappflowparam.go | 4 +- .../resource/config/ns/nscapacity.go | 4 +- .../resource/config/ns/nsconfig.go | 20 +-- .../resource/config/ns/nsconnectiontable.go | 2 +- .../resource/config/ns/nscqaparam.go | 8 +- .../resource/config/ns/nsdiameter.go | 2 +- .../resource/config/ns/nsevents.go | 2 +- .../nsextension_extensionfunction_binding.go | 10 +- .../resource/config/ns/nshostname.go | 2 +- .../resource/config/ns/nshttpparam.go | 2 +- .../resource/config/ns/nshttpprofile.go | 48 ++++---- .../resource/config/ns/nsicapprofile.go | 4 +- .../adc-nitro-go/resource/config/ns/nsip.go | 14 +-- .../adc-nitro-go/resource/config/ns/nsip6.go | 16 +-- .../resource/config/ns/nslicenseparameters.go | 4 +- .../config/ns/nslicenseproxyserver.go | 2 +- .../resource/config/ns/nslicenseserver.go | 4 +- .../resource/config/ns/nslimitidentifier.go | 8 +- ...limitidentifier_nslimitsessions_binding.go | 29 +++++ .../resource/config/ns/nsparam.go | 32 ++--- .../resource/config/ns/nspartition.go | 8 +- .../ns/nspartition_bridgegroup_binding.go | 2 +- .../config/ns/nspartition_vlan_binding.go | 2 +- .../config/ns/nspartition_vxlan_binding.go | 2 +- .../adc-nitro-go/resource/config/ns/nspbr.go | 10 +- .../adc-nitro-go/resource/config/ns/nspbr6.go | 12 +- .../resource/config/ns/nsratecontrol.go | 8 +- .../resource/config/ns/nsservicefunction.go | 2 +- ...nsservicepath_nsservicefunction_binding.go | 39 ++++++ .../resource/config/ns/nssimpleacl.go | 6 +- .../resource/config/ns/nssimpleacl6.go | 6 +- .../resource/config/ns/nsspparams.go | 2 +- .../resource/config/ns/nssurgeq.go | 2 +- .../resource/config/ns/nstcpbufparam.go | 4 +- .../resource/config/ns/nstcpparam.go | 58 ++++----- .../resource/config/ns/nstcpprofile.go | 44 +++---- .../resource/config/ns/nstimeout.go | 32 ++--- .../resource/config/ns/nstimer.go | 2 +- .../ns/nstimer_autoscalepolicy_binding.go | 53 ++++++++ .../resource/config/ns/nstrafficdomain.go | 2 +- .../config/ns/nstrafficdomain_binding.go | 2 +- .../ns/nstrafficdomain_bridgegroup_binding.go | 4 +- .../config/ns/nstrafficdomain_vlan_binding.go | 4 +- .../ns/nstrafficdomain_vxlan_binding.go | 4 +- .../resource/config/ns/nsvariable.go | 2 +- .../resource/config/ns/nsvpxparam.go | 2 +- .../resource/config/ns/nsweblogparam.go | 2 +- .../policy/policydataset_value_binding.go | 2 +- .../config/policy/policyhttpcallout.go | 4 +- .../resource/config/policy/policyparam.go | 2 +- .../policy/policypatset_pattern_binding.go | 2 +- .../resource/config/policy/policyurlset.go | 4 +- .../config/responder/responderaction.go | 2 +- ...responderglobal_responderpolicy_binding.go | 78 ++++++++++++ .../config/responder/responderparam.go | 2 +- .../responderpolicy_crvserver_binding.go | 53 ++++++++ .../responderpolicy_csvserver_binding.go | 53 ++++++++ .../responderpolicy_lbvserver_binding.go | 53 ++++++++ ...responderpolicy_responderglobal_binding.go | 53 ++++++++ ...nderpolicy_responderpolicylabel_binding.go | 53 ++++++++ .../responderpolicy_vpnvserver_binding.go | 53 ++++++++ ...ponderpolicylabel_policybinding_binding.go | 2 +- ...nderpolicylabel_responderpolicy_binding.go | 56 +++++++++ .../rewriteglobal_rewritepolicy_binding.go | 66 ++++++++++ .../resource/config/rewrite/rewriteparam.go | 2 +- .../rewritepolicy_csvserver_binding.go | 53 ++++++++ .../rewritepolicy_lbvserver_binding.go | 53 ++++++++ .../rewritepolicy_rewriteglobal_binding.go | 53 ++++++++ ...ewritepolicy_rewritepolicylabel_binding.go | 53 ++++++++ .../rewritepolicy_vpnvserver_binding.go | 53 ++++++++ ...ewritepolicylabel_policybinding_binding.go | 2 +- ...ewritepolicylabel_rewritepolicy_binding.go | 57 +++++++++ .../config/router/routerdynamicrouting.go | 2 +- .../ssl/sslcacertgroup_sslcertkey_binding.go | 41 +++++++ .../resource/config/ssl/sslcert.go | 2 +- .../ssl/sslcertchain_sslcertkey_binding.go | 45 +++++++ .../resource/config/ssl/sslcertkey.go | 2 +- .../config/ssl/sslcertkey_service_binding.go | 4 +- .../sslcertkey_sslocspresponder_binding.go | 41 +++++++ .../ssl/sslcertkey_sslprofile_binding.go | 37 ++++++ .../ssl/sslcertkey_sslvserver_binding.go | 54 +++++++++ .../resource/config/ssl/sslcipher.go | 2 +- .../ssl/sslcipher_individualcipher_binding.go | 2 +- .../config/ssl/sslcipher_service_binding.go | 2 +- .../ssl/sslcipher_servicegroup_binding.go | 2 +- .../ssl/sslcipher_sslciphersuite_binding.go | 55 +++++++++ .../ssl/sslcipher_sslprofile_binding.go | 53 ++++++++ .../ssl/sslcipher_sslvserver_binding.go | 55 +++++++++ .../resource/config/ssl/sslcrl.go | 4 +- .../resource/config/ssl/ssldhparam.go | 2 +- .../resource/config/ssl/ssldtlsprofile.go | 10 +- .../resource/config/ssl/sslfipskey.go | 2 +- .../config/ssl/sslglobal_sslpolicy_binding.go | 66 ++++++++++ .../resource/config/ssl/sslocspresponder.go | 12 +- .../resource/config/ssl/sslparameter.go | 20 +-- .../config/ssl/sslpolicy_csvserver_binding.go | 47 ++++++++ .../config/ssl/sslpolicy_lbvserver_binding.go | 47 ++++++++ .../config/ssl/sslpolicy_sslglobal_binding.go | 47 ++++++++ .../ssl/sslpolicy_sslpolicylabel_binding.go | 47 ++++++++ .../ssl/sslpolicy_sslservice_binding.go | 47 ++++++++ .../ssl/sslpolicy_sslvserver_binding.go | 47 ++++++++ .../ssl/sslpolicylabel_sslpolicy_binding.go | 53 ++++++++ .../resource/config/ssl/sslprofile.go | 30 ++--- .../config/ssl/sslprofile_ecccurve_binding.go | 2 +- .../ssl/sslprofile_sslcertkey_binding.go | 37 ++++++ .../ssl/sslprofile_sslcipher_binding.go | 45 +++++++ .../ssl/sslprofile_sslciphersuite_binding.go | 41 +++++++ .../ssl/sslprofile_sslvserver_binding.go | 41 +++++++ .../resource/config/ssl/sslrsakey.go | 2 +- .../resource/config/ssl/sslservice.go | 6 +- .../ssl/sslservice_sslcertkey_binding.go | 57 +++++++++ .../ssl/sslservice_sslcipher_binding.go | 41 +++++++ .../ssl/sslservice_sslciphersuite_binding.go | 37 ++++++ .../ssl/sslservice_sslpolicy_binding.go | 57 +++++++++ .../resource/config/ssl/sslservicegroup.go | 2 +- .../ssl/sslservicegroup_sslcertkey_binding.go | 49 ++++++++ .../ssl/sslservicegroup_sslcipher_binding.go | 41 +++++++ .../sslservicegroup_sslciphersuite_binding.go | 37 ++++++ .../resource/config/ssl/sslvserver.go | 12 +- .../ssl/sslvserver_sslcertkey_binding.go | 57 +++++++++ .../ssl/sslvserver_sslcipher_binding.go | 41 +++++++ .../ssl/sslvserver_sslciphersuite_binding.go | 37 ++++++ .../ssl/sslvserver_sslpolicy_binding.go | 64 ++++++++++ .../resource/config/system/systementity.go | 2 +- .../config/system/systementitydata.go | 4 +- .../config/system/systemeventhistory.go | 2 +- .../config/system/systemextramgmtcpu.go | 2 +- .../systemglobal_auditnslogpolicy_binding.go | 52 ++++++++ .../systemglobal_auditsyslogpolicy_binding.go | 52 ++++++++ ...global_authenticationldappolicy_binding.go | 52 ++++++++ ...lobal_authenticationlocalpolicy_binding.go | 52 ++++++++ ...stemglobal_authenticationpolicy_binding.go | 50 ++++++++ ...obal_authenticationradiuspolicy_binding.go | 52 ++++++++ ...obal_authenticationtacacspolicy_binding.go | 52 ++++++++ .../config/system/systemglobaldata.go | 4 +- .../resource/config/system/systemgroup.go | 2 +- .../system/systemgroup_nspartition_binding.go | 33 +++++ .../systemgroup_systemcmdpolicy_binding.go | 37 ++++++ .../system/systemgroup_systemuser_binding.go | 33 +++++ .../resource/config/system/systemparameter.go | 8 +- .../resource/config/system/systemsession.go | 2 +- .../resource/config/system/systemuser.go | 4 +- .../system/systemuser_nspartition_binding.go | 33 +++++ .../systemuser_systemcmdpolicy_binding.go | 37 ++++++ .../system/systemuser_systemgroup_binding.go | 33 +++++ .../config/transform/transformaction.go | 2 +- ...transformglobal_transformpolicy_binding.go | 69 +++++++++++ .../transformpolicy_csvserver_binding.go | 53 ++++++++ .../transformpolicy_lbvserver_binding.go | 53 ++++++++ ...transformpolicy_transformglobal_binding.go | 53 ++++++++ ...formpolicy_transformpolicylabel_binding.go | 53 ++++++++ ...nsformpolicylabel_policybinding_binding.go | 2 +- ...formpolicylabel_transformpolicy_binding.go | 55 +++++++++ ...ransformprofile_transformaction_binding.go | 73 +++++++++++ .../resource/config/utility/callhome.go | 6 +- .../resource/config/utility/ping.go | 10 +- .../resource/config/utility/ping6.go | 14 +-- .../resource/config/utility/traceroute.go | 16 +-- .../resource/config/utility/traceroute6.go | 12 +- .../service/netscaler_resource.go | 12 +- vendor/modules.txt | 2 +- 461 files changed, 12359 insertions(+), 902 deletions(-) create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_appfwpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaagroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaauser_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_systemglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_tmglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaauser_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_dospolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_scpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_clusternode_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_clusternode_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_crvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbsite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_streamidentifier_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_cmppolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmpglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_crvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_crvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_cspolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_cspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_analyticsprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appflowpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appfwpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appqoepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_authorizationpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_botpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cachepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cmppolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_contentinspectionpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_feopolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_filterpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_gslbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_responderpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_rewritepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_spilloverpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_tmtrafficpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_transformpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_dnspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnsglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnspolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_dnspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_dnspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_dnskey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_filterpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_crvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_filterglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_dnsview_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_analyticsprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appflowpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appfwpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appqoepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_authorizationpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_botpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cachepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cmppolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dnspolicy64_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dospolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_feopolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_filterpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pqpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_responderpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_rewritepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_scpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_spilloverpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_transformpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip6_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_nsservicefunction_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_autoscalepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_responderpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_crvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_responderpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewriteglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vpnvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslocspresponder_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslprofile_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_sslpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslservice_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_sslpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcertkey_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcipher_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslciphersuite_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditnslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditsyslogpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationldappolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationlocalpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationradiuspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationtacacspolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_nspartition_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemcmdpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemuser_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_nspartition_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemcmdpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemgroup_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_transformpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_csvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_lbvserver_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformglobal_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformpolicylabel_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_transformpolicy_binding.go create mode 100644 vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_transformaction_binding.go diff --git a/go.mod b/go.mod index aba8e48dc..911cb8064 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/citrix/terraform-provider-citrixadc go 1.13 require ( - github.com/citrix/adc-nitro-go v0.0.0-20210616092114-c917a2b77ef3 + github.com/citrix/adc-nitro-go v0.0.0-20210706081452-0ff4869771a4 github.com/hashicorp/terraform v0.12.20 github.com/hashicorp/terraform-plugin-sdk v1.6.0 github.com/mitchellh/mapstructure v1.1.2 diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go index 0276a8db7..9c3f4821e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwfieldtype.go @@ -34,7 +34,7 @@ type Appfwfieldtype struct { /** * Positive integer specifying the priority of the field type. A lower number specifies a higher priority. Field types are checked in the order of their priority numbers. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Comment describing the type of field that this field type is intended to match. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_appfwpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_appfwpolicy_binding.go new file mode 100644 index 000000000..01bfddd2f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_appfwpolicy_binding.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the appfwpolicy that can be bound to appfwglobal. +*/ +type Appfwglobalappfwpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol int `json:"numpol,omitempty"` + /** + * flowtype of the bound application firewall policy. + */ + Flowtype int `json:"flowtype,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go new file mode 100644 index 000000000..cbd738bca --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the auditnslogpolicy that can be bound to appfwglobal. +*/ +type Appfwglobalauditnslogpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + /** + * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is smaller than the current policy's priority number. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..a50d1bae2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwglobal_auditsyslogpolicy_binding.go @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the auditsyslogpolicy that can be bound to appfwglobal. +*/ +type Appfwglobalauditsyslogpolicybinding struct { + /** + * Name of the policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Enable or disable the binding to activate or deactivate the policy. This is applicable to classic policies only. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which to policy is bound. + */ + Type string `json:"type,omitempty"` + Policytype string `json:"policytype,omitempty"` + /** + * Expression or other value specifying the next policy to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is smaller than the current policy's priority number. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go index d44de47ff..ecf1b71c8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwlearningsettings.go @@ -27,122 +27,122 @@ type Appfwlearningsettings struct { /** * Minimum number of application firewall sessions that the learning engine must observe to learn start URLs. */ - Starturlminthreshold uint32 `json:"starturlminthreshold,omitempty"` + Starturlminthreshold int `json:"starturlminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular start URL pattern for the learning engine to learn that start URL. */ - Starturlpercentthreshold uint32 `json:"starturlpercentthreshold,omitempty"` + Starturlpercentthreshold int `json:"starturlpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn cookies. */ - Cookieconsistencyminthreshold uint32 `json:"cookieconsistencyminthreshold,omitempty"` + Cookieconsistencyminthreshold int `json:"cookieconsistencyminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular cookie pattern for the learning engine to learn that cookie. */ - Cookieconsistencypercentthreshold uint32 `json:"cookieconsistencypercentthreshold,omitempty"` + Cookieconsistencypercentthreshold int `json:"cookieconsistencypercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn cross-site request forgery (CSRF) tags. */ - Csrftagminthreshold uint32 `json:"csrftagminthreshold,omitempty"` + Csrftagminthreshold int `json:"csrftagminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular CSRF tag for the learning engine to learn that CSRF tag. */ - Csrftagpercentthreshold uint32 `json:"csrftagpercentthreshold,omitempty"` + Csrftagpercentthreshold int `json:"csrftagpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn field consistency information. */ - Fieldconsistencyminthreshold uint32 `json:"fieldconsistencyminthreshold,omitempty"` + Fieldconsistencyminthreshold int `json:"fieldconsistencyminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular field consistency pattern for the learning engine to learn that field consistency pattern. */ - Fieldconsistencypercentthreshold uint32 `json:"fieldconsistencypercentthreshold,omitempty"` + Fieldconsistencypercentthreshold int `json:"fieldconsistencypercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn HTML cross-site scripting patterns. */ - Crosssitescriptingminthreshold uint32 `json:"crosssitescriptingminthreshold,omitempty"` + Crosssitescriptingminthreshold int `json:"crosssitescriptingminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular cross-site scripting pattern for the learning engine to learn that cross-site scripting pattern. */ - Crosssitescriptingpercentthreshold uint32 `json:"crosssitescriptingpercentthreshold,omitempty"` + Crosssitescriptingpercentthreshold int `json:"crosssitescriptingpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn HTML SQL injection patterns. */ - Sqlinjectionminthreshold uint32 `json:"sqlinjectionminthreshold,omitempty"` + Sqlinjectionminthreshold int `json:"sqlinjectionminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular HTML SQL injection pattern for the learning engine to learn that HTML SQL injection pattern. */ - Sqlinjectionpercentthreshold uint32 `json:"sqlinjectionpercentthreshold,omitempty"` + Sqlinjectionpercentthreshold int `json:"sqlinjectionpercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn field formats. */ - Fieldformatminthreshold uint32 `json:"fieldformatminthreshold,omitempty"` + Fieldformatminthreshold int `json:"fieldformatminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular web form field pattern for the learning engine to recommend a field format for that form field. */ - Fieldformatpercentthreshold uint32 `json:"fieldformatpercentthreshold,omitempty"` + Fieldformatpercentthreshold int `json:"fieldformatpercentthreshold,omitempty"` /** * Minimum threshold to learn Credit Card information. */ - Creditcardnumberminthreshold uint32 `json:"creditcardnumberminthreshold,omitempty"` + Creditcardnumberminthreshold int `json:"creditcardnumberminthreshold,omitempty"` /** * Minimum threshold in percent to learn Credit Card information. */ - Creditcardnumberpercentthreshold uint32 `json:"creditcardnumberpercentthreshold,omitempty"` + Creditcardnumberpercentthreshold int `json:"creditcardnumberpercentthreshold,omitempty"` /** * Minimum threshold to learn Content Type information. */ - Contenttypeminthreshold uint32 `json:"contenttypeminthreshold,omitempty"` + Contenttypeminthreshold int `json:"contenttypeminthreshold,omitempty"` /** * Minimum threshold in percent to learn Content Type information. */ - Contenttypepercentthreshold uint32 `json:"contenttypepercentthreshold,omitempty"` + Contenttypepercentthreshold int `json:"contenttypepercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn web services interoperability (WSI) information. */ - Xmlwsiminthreshold uint32 `json:"xmlwsiminthreshold,omitempty"` + Xmlwsiminthreshold int `json:"xmlwsiminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular pattern for the learning engine to learn a web services interoperability (WSI) pattern. */ - Xmlwsipercentthreshold uint32 `json:"xmlwsipercentthreshold,omitempty"` + Xmlwsipercentthreshold int `json:"xmlwsipercentthreshold,omitempty"` /** * Minimum number of application firewall sessions that the learning engine must observe to learn XML attachment patterns. */ - Xmlattachmentminthreshold uint32 `json:"xmlattachmentminthreshold,omitempty"` + Xmlattachmentminthreshold int `json:"xmlattachmentminthreshold,omitempty"` /** * Minimum percentage of application firewall sessions that must contain a particular XML attachment pattern for the learning engine to learn that XML attachment pattern. */ - Xmlattachmentpercentthreshold uint32 `json:"xmlattachmentpercentthreshold,omitempty"` + Xmlattachmentpercentthreshold int `json:"xmlattachmentpercentthreshold,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Fieldformatautodeploygraceperiod uint32 `json:"fieldformatautodeploygraceperiod,omitempty"` + Fieldformatautodeploygraceperiod int `json:"fieldformatautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Sqlinjectionautodeploygraceperiod uint32 `json:"sqlinjectionautodeploygraceperiod,omitempty"` + Sqlinjectionautodeploygraceperiod int `json:"sqlinjectionautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Crosssitescriptingautodeploygraceperiod uint32 `json:"crosssitescriptingautodeploygraceperiod,omitempty"` + Crosssitescriptingautodeploygraceperiod int `json:"crosssitescriptingautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Starturlautodeploygraceperiod uint32 `json:"starturlautodeploygraceperiod,omitempty"` + Starturlautodeploygraceperiod int `json:"starturlautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Cookieconsistencyautodeploygraceperiod uint32 `json:"cookieconsistencyautodeploygraceperiod,omitempty"` + Cookieconsistencyautodeploygraceperiod int `json:"cookieconsistencyautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Csrftagautodeploygraceperiod uint32 `json:"csrftagautodeploygraceperiod,omitempty"` + Csrftagautodeploygraceperiod int `json:"csrftagautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Fieldconsistencyautodeploygraceperiod uint32 `json:"fieldconsistencyautodeploygraceperiod,omitempty"` + Fieldconsistencyautodeploygraceperiod int `json:"fieldconsistencyautodeploygraceperiod,omitempty"` /** * The number of minutes after the threshold hit alert the learned rule will be deployed */ - Contenttypeautodeploygraceperiod uint32 `json:"contenttypeautodeploygraceperiod,omitempty"` + Contenttypeautodeploygraceperiod int `json:"contenttypeautodeploygraceperiod,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwglobal_binding.go new file mode 100644 index 000000000..c25a86107 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwglobal_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the appfwglobal that can be bound to appfwpolicy. +*/ +type Appfwpolicyappfwglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go new file mode 100644 index 000000000..2de060034 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_appfwpolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the appfwpolicylabel that can be bound to appfwpolicy. +*/ +type Appfwpolicyappfwpolicylabelbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_csvserver_binding.go new file mode 100644 index 000000000..43f7eb760 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_csvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the csvserver that can be bound to appfwpolicy. +*/ +type Appfwpolicycsvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_lbvserver_binding.go new file mode 100644 index 000000000..ce62f1f25 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicy_lbvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the lbvserver that can be bound to appfwpolicy. +*/ +type Appfwpolicylbvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go new file mode 100644 index 000000000..f3939d534 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_appfwpolicy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package appfw + +/** +* Binding class showing the appfwpolicy that can be bound to appfwpolicylabel. +*/ +type Appfwpolicylabelappfwpolicybinding struct { + /** + * Name of the application firewall policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke if the current policy evaluates to TRUE and the invoke parameter is set. Available settings function as follows: + * reqvserver. Invoke the unnamed policy label associated with the specified request virtual server. + * policylabel. Invoke the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is set to Policy Label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the application firewall policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go index 5a2192bb6..ca8ae3fd5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwpolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Appfwpolicylabelpolicybindingbinding struct { /** * Positive integer specifying the priority of the policy. A lower number specifies a higher priority. Must be unique within a group of policies that are bound to the same bind point or label. Policies are evaluated in the order of their priority numbers. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go index 6ffd8b9e8..13b8f9234 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile.go @@ -250,11 +250,11 @@ type Appfwprofile struct { * Minimum length, in characters, for data entered into a field that is assigned the default field type. To disable the minimum and maximum length settings and allow data of any length to be entered into the field, set this parameter to zero (0). */ - Defaultfieldformatminlength uint32 `json:"defaultfieldformatminlength,omitempty"` + Defaultfieldformatminlength int `json:"defaultfieldformatminlength,omitempty"` /** * Maximum length, in characters, for data entered into a field that is assigned the default field type. */ - Defaultfieldformatmaxlength uint32 `json:"defaultfieldformatmaxlength,omitempty"` + Defaultfieldformatmaxlength int `json:"defaultfieldformatmaxlength,omitempty"` /** * One or more Buffer Overflow actions. Available settings function as follows: * Block - Block connections that violate this security check. @@ -267,23 +267,23 @@ type Appfwprofile struct { /** * Maximum length, in characters, for URLs on your protected web sites. Requests with longer URLs are blocked. */ - Bufferoverflowmaxurllength uint32 `json:"bufferoverflowmaxurllength,omitempty"` + Bufferoverflowmaxurllength int `json:"bufferoverflowmaxurllength,omitempty"` /** * Maximum length, in characters, for HTTP headers in requests sent to your protected web sites. Requests with longer headers are blocked. */ - Bufferoverflowmaxheaderlength uint32 `json:"bufferoverflowmaxheaderlength,omitempty"` + Bufferoverflowmaxheaderlength int `json:"bufferoverflowmaxheaderlength,omitempty"` /** * Maximum length, in characters, for cookies sent to your protected web sites. Requests with longer cookies are blocked. */ - Bufferoverflowmaxcookielength uint32 `json:"bufferoverflowmaxcookielength,omitempty"` + Bufferoverflowmaxcookielength int `json:"bufferoverflowmaxcookielength,omitempty"` /** * Maximum length, in bytes, for query string sent to your protected web sites. Requests with longer query strings are blocked. */ - Bufferoverflowmaxquerylength uint32 `json:"bufferoverflowmaxquerylength,omitempty"` + Bufferoverflowmaxquerylength int `json:"bufferoverflowmaxquerylength,omitempty"` /** * Maximum length, in bytes, for the total HTTP header length in requests sent to your protected web sites. The minimum value of this and maxHeaderLen in httpProfile will be used. Requests with longer length are blocked. */ - Bufferoverflowmaxtotalheaderlength uint32 `json:"bufferoverflowmaxtotalheaderlength,omitempty"` + Bufferoverflowmaxtotalheaderlength int `json:"bufferoverflowmaxtotalheaderlength,omitempty"` /** * One or more Credit Card actions. Available settings function as follows: * Block - Block connections that violate this security check. @@ -300,7 +300,7 @@ type Appfwprofile struct { /** * This parameter value is used by the block action. It represents the maximum number of credit card numbers that can appear on a web page served by your protected web sites. Pages that contain more credit card numbers are blocked. */ - Creditcardmaxallowed uint32 `json:"creditcardmaxallowed,omitempty"` + Creditcardmaxallowed int `json:"creditcardmaxallowed,omitempty"` /** * Mask any credit card number detected in a response by replacing each digit, except the digits in the final group, with the letter "X." */ @@ -336,7 +336,7 @@ type Appfwprofile struct { /** * Response status code associated with JSON error page */ - Jsonerrorstatuscode uint32 `json:"jsonerrorstatuscode,omitempty"` + Jsonerrorstatuscode int `json:"jsonerrorstatuscode,omitempty"` /** * Response status message associated with JSON error page */ @@ -498,7 +498,7 @@ type Appfwprofile struct { /** * Response status code associated with XML error page */ - Xmlerrorstatuscode uint32 `json:"xmlerrorstatuscode,omitempty"` + Xmlerrorstatuscode int `json:"xmlerrorstatuscode,omitempty"` /** * Response status message associated with XML error page */ @@ -541,7 +541,7 @@ type Appfwprofile struct { /** * Response status code associated with HTML error page */ - Htmlerrorstatuscode uint32 `json:"htmlerrorstatuscode,omitempty"` + Htmlerrorstatuscode int `json:"htmlerrorstatuscode,omitempty"` /** * Response status message associated with HTML error page */ @@ -591,7 +591,7 @@ type Appfwprofile struct { /** * Maximum allowed HTTP post body size, in bytes. Maximum supported value is 10GB. Citrix recommends enabling streaming option for large values of post body limit (>20MB). */ - Postbodylimit uint64 `json:"postbodylimit,omitempty"` + Postbodylimit int `json:"postbodylimit,omitempty"` /** * One or more Post Body Limit actions. Available settings function as follows: * Block - Block connections that violate this security check. Must always be set. @@ -603,11 +603,11 @@ type Appfwprofile struct { /** * Maximum allowed HTTP post body size for signature inspection for location HTTP_POST_BODY in the signatures, in bytes. Note that the changes in value could impact CPU and latency profile. */ - Postbodylimitsignature uint32 `json:"postbodylimitsignature,omitempty"` + Postbodylimitsignature int `json:"postbodylimitsignature,omitempty"` /** * Maximum allowed number of file uploads per form-submission request. The maximum setting (65535) allows an unlimited number of uploads. */ - Fileuploadmaxnum uint32 `json:"fileuploadmaxnum,omitempty"` + Fileuploadmaxnum int `json:"fileuploadmaxnum,omitempty"` /** * Perform HTML entity encoding for any special characters in responses sent by your protected web sites. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go index 22cab65ec..1d7c205cc 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_fieldformat_binding.go @@ -39,11 +39,11 @@ type Appfwprofilefieldformatbinding struct { /** * The minimum allowed length for data in this form field. */ - Fieldformatminlength uint32 `json:"fieldformatminlength,omitempty"` + Fieldformatminlength int `json:"fieldformatminlength,omitempty"` /** * The maximum allowed length for data in this form field. */ - Fieldformatmaxlength uint32 `json:"fieldformatmaxlength,omitempty"` + Fieldformatmaxlength int `json:"fieldformatmaxlength,omitempty"` /** * Enabled. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go index 513f834c9..a15bb5477 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_jsondosurl_binding.go @@ -45,7 +45,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum document length of JSON document, in bytes. */ - Jsonmaxdocumentlength uint32 `json:"jsonmaxdocumentlength,omitempty"` + Jsonmaxdocumentlength int `json:"jsonmaxdocumentlength,omitempty"` /** * State if JSON Max depth check is ON or OFF. */ @@ -53,7 +53,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum allowed nesting depth of JSON document. JSON allows one to nest the containers (object and array) in any order to any depth. This check protects against documents that have excessive depth of hierarchy. */ - Jsonmaxcontainerdepth uint32 `json:"jsonmaxcontainerdepth,omitempty"` + Jsonmaxcontainerdepth int `json:"jsonmaxcontainerdepth,omitempty"` /** * State if JSON Max object key count check is ON or OFF. */ @@ -61,7 +61,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum key count in the any of JSON object. This check protects against objects that have large number of keys. */ - Jsonmaxobjectkeycount uint32 `json:"jsonmaxobjectkeycount,omitempty"` + Jsonmaxobjectkeycount int `json:"jsonmaxobjectkeycount,omitempty"` /** * State if JSON Max object key length check is ON or OFF. */ @@ -69,7 +69,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum key length in the any of JSON object. This check protects against objects that have large keys. */ - Jsonmaxobjectkeylength uint32 `json:"jsonmaxobjectkeylength,omitempty"` + Jsonmaxobjectkeylength int `json:"jsonmaxobjectkeylength,omitempty"` /** * State if JSON Max array value count check is ON or OFF. */ @@ -77,7 +77,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum array length in the any of JSON object. This check protects against arrays having large lengths. */ - Jsonmaxarraylength uint32 `json:"jsonmaxarraylength,omitempty"` + Jsonmaxarraylength int `json:"jsonmaxarraylength,omitempty"` /** * State if JSON Max string value count check is ON or OFF. */ @@ -85,7 +85,7 @@ type Appfwprofilejsondosurlbinding struct { /** * Maximum string length in the JSON. This check protects against strings that have large length. */ - Jsonmaxstringlength uint32 `json:"jsonmaxstringlength,omitempty"` + Jsonmaxstringlength int `json:"jsonmaxstringlength,omitempty"` /** * Enabled. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go index 5cae09aa4..1f88ba0fb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_safeobject_binding.go @@ -31,7 +31,7 @@ type Appfwprofilesafeobjectbinding struct { /** * Maximum match length for a Safe Object expression. */ - Maxmatchlength uint32 `json:"maxmatchlength,omitempty"` + Maxmatchlength int `json:"maxmatchlength,omitempty"` /** * Safe Object action types. (BLOCK | LOG | STATS | NONE) */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go index aca293cc5..83a443d20 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmlattachmenturl_binding.go @@ -31,7 +31,7 @@ type Appfwprofilexmlattachmenturlbinding struct { /** * Specify maximum attachment size. */ - Xmlmaxattachmentsize uint32 `json:"xmlmaxattachmentsize,omitempty"` + Xmlmaxattachmentsize int `json:"xmlmaxattachmentsize,omitempty"` /** * State if XML attachment content-type check is ON or OFF. Protects against XML requests with illegal attachments. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go index 1b346fc8f..ea8cb343b 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwprofile_xmldosurl_binding.go @@ -31,7 +31,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Maximum nesting (depth) of XML elements. This check protects against documents that have excessive hierarchy depths. */ - Xmlmaxelementdepth uint32 `json:"xmlmaxelementdepth,omitempty"` + Xmlmaxelementdepth int `json:"xmlmaxelementdepth,omitempty"` /** * State if XML Max element name length check is ON or OFF. */ @@ -39,7 +39,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the longest name of any element (including the expanded namespace) to protect against overflow attacks. */ - Xmlmaxelementnamelength uint32 `json:"xmlmaxelementnamelength,omitempty"` + Xmlmaxelementnamelength int `json:"xmlmaxelementnamelength,omitempty"` /** * State if XML Max elements check is ON or OFF. */ @@ -47,7 +47,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the maximum number of XML elements allowed. Protects against overflow attacks. */ - Xmlmaxelements uint32 `json:"xmlmaxelements,omitempty"` + Xmlmaxelements int `json:"xmlmaxelements,omitempty"` /** * State if XML Max element children check is ON or OFF. */ @@ -55,7 +55,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the maximum number of children allowed per XML element. Protects against overflow attacks. */ - Xmlmaxelementchildren uint32 `json:"xmlmaxelementchildren,omitempty"` + Xmlmaxelementchildren int `json:"xmlmaxelementchildren,omitempty"` /** * State if XML Max nodes check is ON or OFF. */ @@ -63,7 +63,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the maximum number of XML nodes. Protects against overflow attacks. */ - Xmlmaxnodes uint32 `json:"xmlmaxnodes,omitempty"` + Xmlmaxnodes int `json:"xmlmaxnodes,omitempty"` /** * State if XML Max Entity Expansions Check is ON or OFF. */ @@ -71,7 +71,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify maximum allowed number of entity expansions. Protects aganist Entity Expansion Attack. */ - Xmlmaxentityexpansions uint32 `json:"xmlmaxentityexpansions,omitempty"` + Xmlmaxentityexpansions int `json:"xmlmaxentityexpansions,omitempty"` /** * State if XML Max Entity Expansions Depth Check is ON or OFF. */ @@ -79,7 +79,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify maximum entity expansion depth. Protects aganist Entity Expansion Attack. */ - Xmlmaxentityexpansiondepth uint32 `json:"xmlmaxentityexpansiondepth,omitempty"` + Xmlmaxentityexpansiondepth int `json:"xmlmaxentityexpansiondepth,omitempty"` /** * State if XML Max attributes check is ON or OFF. */ @@ -87,7 +87,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify maximum number of attributes per XML element. Protects against overflow attacks. */ - Xmlmaxattributes uint32 `json:"xmlmaxattributes,omitempty"` + Xmlmaxattributes int `json:"xmlmaxattributes,omitempty"` /** * State if XML Max attribute name length check is ON or OFF. */ @@ -95,7 +95,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the longest name of any XML attribute. Protects against overflow attacks. */ - Xmlmaxattributenamelength uint32 `json:"xmlmaxattributenamelength,omitempty"` + Xmlmaxattributenamelength int `json:"xmlmaxattributenamelength,omitempty"` /** * State if XML Max atribute value length is ON or OFF. */ @@ -103,7 +103,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the longest value of any XML attribute. Protects against overflow attacks. */ - Xmlmaxattributevaluelength uint32 `json:"xmlmaxattributevaluelength,omitempty"` + Xmlmaxattributevaluelength int `json:"xmlmaxattributevaluelength,omitempty"` /** * State if XML Max namespaces check is ON or OFF. */ @@ -111,7 +111,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify maximum number of active namespaces. Protects against overflow attacks. */ - Xmlmaxnamespaces uint32 `json:"xmlmaxnamespaces,omitempty"` + Xmlmaxnamespaces int `json:"xmlmaxnamespaces,omitempty"` /** * State if XML Max namespace URI length check is ON or OFF. */ @@ -119,7 +119,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the longest URI of any XML namespace. Protects against overflow attacks. */ - Xmlmaxnamespaceurilength uint32 `json:"xmlmaxnamespaceurilength,omitempty"` + Xmlmaxnamespaceurilength int `json:"xmlmaxnamespaceurilength,omitempty"` /** * State if XML Max CDATA length check is ON or OFF. */ @@ -127,7 +127,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the maximum size of CDATA. Protects against overflow attacks and large quantities of unparsed data within XML messages. */ - Xmlmaxchardatalength uint32 `json:"xmlmaxchardatalength,omitempty"` + Xmlmaxchardatalength int `json:"xmlmaxchardatalength,omitempty"` /** * State if XML Max file size check is ON or OFF. */ @@ -135,7 +135,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Specify the maximum size of XML messages. Protects against overflow attacks. */ - Xmlmaxfilesize uint32 `json:"xmlmaxfilesize,omitempty"` + Xmlmaxfilesize int `json:"xmlmaxfilesize,omitempty"` /** * State if XML Min file size check is ON or OFF. */ @@ -143,7 +143,7 @@ type Appfwprofilexmldosurlbinding struct { /** * Enforces minimum message size. */ - Xmlminfilesize uint32 `json:"xmlminfilesize,omitempty"` + Xmlminfilesize int `json:"xmlminfilesize,omitempty"` /** * State if XML Block PI is ON or OFF. Protects resources from denial of service attacks as SOAP messages cannot have processing instructions (PI) in messages. */ @@ -163,11 +163,11 @@ type Appfwprofilexmldosurlbinding struct { /** * XML Max Total SOAP Array Size. Protects against SOAP Array Abuse attack. */ - Xmlmaxsoaparraysize uint32 `json:"xmlmaxsoaparraysize,omitempty"` + Xmlmaxsoaparraysize int `json:"xmlmaxsoaparraysize,omitempty"` /** * XML Max Individual SOAP Array Rank. This is the dimension of the SOAP array. */ - Xmlmaxsoaparrayrank uint32 `json:"xmlmaxsoaparrayrank,omitempty"` + Xmlmaxsoaparrayrank int `json:"xmlmaxsoaparrayrank,omitempty"` /** * Enabled. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go index b3769be9a..00af4d08f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwsettings.go @@ -32,15 +32,15 @@ type Appfwsettings struct { /** * Timeout, in seconds, after which a user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. */ - Sessiontimeout uint32 `json:"sessiontimeout,omitempty"` + Sessiontimeout int `json:"sessiontimeout,omitempty"` /** * Maximum number of connections per second that the application firewall learning engine examines to generate new relaxations for learning-enabled security checks. The application firewall drops any connections above this limit from the list of connections used by the learning engine. */ - Learnratelimit uint32 `json:"learnratelimit,omitempty"` + Learnratelimit int `json:"learnratelimit,omitempty"` /** * Maximum amount of time (in seconds) that the application firewall allows a user session to remain active, regardless of user activity. After this time, the user session is terminated. Before continuing to use the protected web site, the user must establish a new session by opening a designated start URL. */ - Sessionlifetime uint32 `json:"sessionlifetime,omitempty"` + Sessionlifetime int `json:"sessionlifetime,omitempty"` /** * Name of the session cookie that the application firewall uses to track user sessions. Must begin with a letter or number, and can consist of from 1 to 31 letters, numbers, and the hyphen (-) and underscore (_) symbols. @@ -55,7 +55,7 @@ type Appfwsettings struct { /** * Cumulative total maximum number of bytes in web forms imported to a protected web site. If a user attempts to upload files with a total byte count higher than the specified limit, the application firewall blocks the request. */ - Importsizelimit uint32 `json:"importsizelimit,omitempty"` + Importsizelimit int `json:"importsizelimit,omitempty"` /** * Flag used to enable/disable auto update signatures */ @@ -91,7 +91,7 @@ type Appfwsettings struct { /** * Maximum number of sessions that the application firewall allows to be active, regardless of user activity. After the max_limit reaches, No more user session will be created . */ - Sessionlimit uint32 `json:"sessionlimit,omitempty"` + Sessionlimit int `json:"sessionlimit,omitempty"` /** * flag to define action on malformed requests that application firewall cannot parse */ @@ -107,7 +107,7 @@ type Appfwsettings struct { /** * Proxy Server Port to get updated signatures from AWS. */ - Proxyport int32 `json:"proxyport,omitempty"` + Proxyport int `json:"proxyport,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go index f28326c27..4734c6cad 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/appfw/appfwtransactionrecords.go @@ -23,7 +23,7 @@ type Appfwtransactionrecords struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go index 5861dfa8e..e5dee92e9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditmessages.go @@ -37,7 +37,7 @@ type Auditmessages struct { /** * Number of log messages to be displayed. */ - Numofmesgs uint32 `json:"numofmesgs,omitempty"` + Numofmesgs int `json:"numofmesgs,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go index 4a63273dd..9c4a7ac34 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogaction.go @@ -37,11 +37,11 @@ type Auditnslogaction struct { /** * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the audit server if the last query failed. */ - Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + Domainresolveretry int `json:"domainresolveretry,omitempty"` /** * Port on which the nslog server accepts connections. */ - Serverport int32 `json:"serverport,omitempty"` + Serverport int `json:"serverport,omitempty"` /** * Audit log level, which specifies the types of events to log. Available settings function as follows: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go new file mode 100644 index 000000000..2d4bf3d58 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogglobal_auditnslogpolicy_binding.go @@ -0,0 +1,42 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the auditnslogpolicy that can be bound to auditnslogglobal. +*/ +type Auditnslogglobalauditnslogpolicybinding struct { + /** + * Name of the audit nslog policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * number of polices bound to label. + */ + Numpol int `json:"numpol,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go index fdcc1af95..3e41eb3bf 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogparams.go @@ -27,7 +27,7 @@ type Auditnslogparams struct { /** * Port on which the nslog server accepts connections. */ - Serverport int32 `json:"serverport,omitempty"` + Serverport int `json:"serverport,omitempty"` /** * Format of dates in the logs. Supported formats are: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaagroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaagroup_binding.go new file mode 100644 index 000000000..553f3a223 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaagroup_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the aaagroup that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyaaagroupbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaauser_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaauser_binding.go new file mode 100644 index 000000000..147b1382d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_aaauser_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the aaauser that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyaaauserbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go new file mode 100644 index 000000000..40909be06 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_appfwglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the appfwglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyappfwglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go new file mode 100644 index 000000000..34e773df8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_auditnslogglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the auditnslogglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyauditnslogglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go new file mode 100644 index 000000000..ab626981d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_authenticationvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the authenticationvserver that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyauthenticationvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_csvserver_binding.go new file mode 100644 index 000000000..e2db826f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_csvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the csvserver that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicycsvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_lbvserver_binding.go new file mode 100644 index 000000000..15ba32f0a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_lbvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the lbvserver that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicylbvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_systemglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_systemglobal_binding.go new file mode 100644 index 000000000..19e9ef865 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_systemglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the systemglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicysystemglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_tmglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_tmglobal_binding.go new file mode 100644 index 000000000..8e1dedbea --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_tmglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the tmglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicytmglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go new file mode 100644 index 000000000..a803ec823 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vpnglobal that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyvpnglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go new file mode 100644 index 000000000..15a7217a0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditnslogpolicy_vpnvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vpnvserver that can be bound to auditnslogpolicy. +*/ +type Auditnslogpolicyvpnvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go index b00a9700f..d2842500f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogaction.go @@ -37,7 +37,7 @@ type Auditsyslogaction struct { /** * Time, in seconds, for which the Citrix ADC waits before sending another DNS query to resolve the host name of the syslog server if the last query failed. */ - Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + Domainresolveretry int `json:"domainresolveretry,omitempty"` /** * Name of the LB vserver. Mutually exclusive with syslog serverIP/serverName */ @@ -45,7 +45,7 @@ type Auditsyslogaction struct { /** * Port on which the syslog server accepts connections. */ - Serverport int32 `json:"serverport,omitempty"` + Serverport int `json:"serverport,omitempty"` /** * Audit log level, which specifies the types of events to log. Available values function as follows: @@ -122,7 +122,7 @@ type Auditsyslogaction struct { /** * Max size of log data that can be held in NSB chain of server info. */ - Maxlogdatasizetohold uint32 `json:"maxlogdatasizetohold,omitempty"` + Maxlogdatasizetohold int `json:"maxlogdatasizetohold,omitempty"` /** * Log DNS related syslog messages */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..984e7cf58 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogglobal_auditsyslogpolicy_binding.go @@ -0,0 +1,46 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the auditsyslogpolicy that can be bound to auditsyslogglobal. +*/ +type Auditsyslogglobalauditsyslogpolicybinding struct { + /** + * Name of the audit syslog policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * number of polices bound to label. + */ + Numpol int `json:"numpol,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go index d1741f15d..e8731671a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogparams.go @@ -27,7 +27,7 @@ type Auditsyslogparams struct { /** * Port on which the syslog server accepts connections. */ - Serverport int32 `json:"serverport,omitempty"` + Serverport int `json:"serverport,omitempty"` /** * Format of dates in the logs. Supported formats are: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go new file mode 100644 index 000000000..60291f894 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaagroup_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the aaagroup that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyaaagroupbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaauser_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaauser_binding.go new file mode 100644 index 000000000..f27127756 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_aaauser_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the aaauser that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyaaauserbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go new file mode 100644 index 000000000..87b23df90 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_auditsyslogglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the auditsyslogglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyauditsyslogglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go new file mode 100644 index 000000000..ca5ab8508 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_authenticationvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the authenticationvserver that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyauthenticationvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_csvserver_binding.go new file mode 100644 index 000000000..d7d62d9f7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_csvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the csvserver that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicycsvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go new file mode 100644 index 000000000..838f32f16 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_lbvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the lbvserver that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicylbvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go index 23a3cf0f5..b1069b11c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_rnatglobal_binding.go @@ -24,8 +24,8 @@ type Auditsyslogpolicyrnatglobalbinding struct { * The entity name to which policy is bound */ Boundto string `json:"boundto,omitempty"` - Priority uint32 `json:"priority,omitempty"` - Activepolicy uint32 `json:"activepolicy,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` /** * Name of the policy. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go new file mode 100644 index 000000000..57aabf540 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_systemglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the systemglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicysystemglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go new file mode 100644 index 000000000..39b3f5943 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_tmglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the tmglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicytmglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go new file mode 100644 index 000000000..4ddfde589 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vpnglobal that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyvpnglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go new file mode 100644 index 000000000..b5b66b427 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package audit + +/** +* Binding class showing the vpnvserver that can be bound to auditsyslogpolicy. +*/ +type Auditsyslogpolicyvpnvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go index 1c06f60f4..52f67a312 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/extendedmemoryparam.go @@ -24,7 +24,7 @@ type Extendedmemoryparam struct { * Amount of Citrix ADC memory to reserve for the memory used by LSN and Subscriber Session Store feature, in multiples of 2MB. Note: If you later reduce the value of this parameter, the amount of active memory is not reduced. Changing the configured memory limit can only increase the amount of active memory. */ - Memlimit uint64 `json:"memlimit,omitempty"` + Memlimit int `json:"memlimit,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go index 32c40f7d7..0690aa5af 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/location.go @@ -37,12 +37,12 @@ type Location struct { * Numerical value, in degrees, specifying the longitude of the geographical location of the IP address-range. Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. */ - Longitude int32 `json:"longitude,omitempty"` + Longitude int `json:"longitude,omitempty"` /** * Numerical value, in degrees, specifying the latitude of the geographical location of the IP address-range. Note: Longitude and latitude parameters are used for selecting a service with the static proximity GSLB method. If they are not specified, selection is based on the qualifiers specified for the location. */ - Latitude int32 `json:"latitude,omitempty"` + Latitude int `json:"latitude,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go index 29b0c48ee..4de8e3b37 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/nstrace.go @@ -23,15 +23,15 @@ type Nstrace struct { /** * Number of files to be generated in cycle. */ - Nf uint32 `json:"nf,omitempty"` + Nf int `json:"nf,omitempty"` /** * Time per file (sec). */ - Time uint32 `json:"time,omitempty"` + Time int `json:"time,omitempty"` /** * Size of the captured data. Set 0 for full packet trace. */ - Size uint32 `json:"size,omitempty"` + Size int `json:"size,omitempty"` /** * Capturing mode for trace. Mode can be any of the following values or combination of these values: RX Received packets before NIC pipelining (Filter does not work when RX capturing mode is ON) @@ -176,11 +176,11 @@ type Nstrace struct { /** * Nodes on which tracing is started. */ - Nodes []uint32 `json:"nodes,omitempty"` + Nodes []int `json:"nodes,omitempty"` /** * File size, in MB, treshold for rollover. If free disk space is less than 2GB at the time of rollover, trace will stop */ - Filesize uint32 `json:"filesize,omitempty"` + Filesize int `json:"filesize,omitempty"` /** * Format in which trace will be generated */ @@ -196,7 +196,7 @@ type Nstrace struct { /** * Number of 16KB trace buffers */ - Tracebuffers uint32 `json:"tracebuffers,omitempty"` + Tracebuffers int `json:"tracebuffers,omitempty"` /** * skip RPC packets */ @@ -221,7 +221,7 @@ type Nstrace struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go index 76893e214..427a0e35d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server.go @@ -45,7 +45,7 @@ type Server struct { /** * Time, in seconds, for which the Citrix ADC must wait, after DNS resolution fails, before sending the next DNS query to resolve the domain name. */ - Domainresolveretry int32 `json:"domainresolveretry,omitempty"` + Domainresolveretry int `json:"domainresolveretry,omitempty"` /** * Initial state of the server. */ @@ -61,7 +61,7 @@ type Server struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Specify the type of DNS resolution to be done on the configured domain to get the backend services. Valid query types are A, AAAA and SRV with A being the default querytype. The type of DNS resolution done on the domains in SRV records is inherited from ipv6 argument. */ @@ -73,7 +73,7 @@ type Server struct { /** * Time, in seconds, after which all the services configured on the server are disabled. */ - Delay uint64 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * Shut down gracefully, without accepting any new connections, and disabling each service when all of its connections are closed. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservice_binding.go new file mode 100644 index 000000000..621aeea26 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservice_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the gslbservice that can be bound to server. +*/ +type Servergslbservicebinding struct { + /** + * The services attatched to the server. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The type of bound service + */ + Svctype string `json:"svctype,omitempty"` + /** + * The IP address of the bound service + */ + Serviceipaddress string `json:"serviceipaddress,omitempty"` + /** + * The port number to be used for the bound service. + */ + Port int `json:"port,omitempty"` + /** + * The state of the bound service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * This field has been intorduced to show the dbs services ip + */ + Serviceipstr string `json:"serviceipstr,omitempty"` + /** + * Name of the server for which to display parameters. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservicegroup_binding.go new file mode 100644 index 000000000..573e202a6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_gslbservicegroup_binding.go @@ -0,0 +1,114 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the gslbservicegroup that can be bound to server. +*/ +type Servergslbservicegroupbinding struct { + /** + * servicegroups bind to this server + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The type of bound service + */ + Svctype string `json:"svctype,omitempty"` + /** + * The IP address of the bound service + */ + Serviceipaddress string `json:"serviceipaddress,omitempty"` + /** + * The port number to be used for the bound service. + */ + Port int `json:"port,omitempty"` + /** + * A positive integer to identify the service. Used when the persistency type is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The state of the bound service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * service type of the service. + */ + Dupsvctype string `json:"dup_svctype,omitempty"` + /** + * port of the service. + */ + Dupport int `json:"dup_port,omitempty"` + /** + * service flags to denote its a db enabled. + */ + Svrcfgflags int `json:"svrcfgflags,omitempty"` + /** + * This field has been intorduced to show the dbs services ip + */ + Serviceipstr string `json:"serviceipstr,omitempty"` + /** + * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. + */ + Monthreshold int `json:"monthreshold,omitempty"` + /** + * Maximum number of simultaneous open connections for the service group. + */ + Maxclient int `json:"maxclient,omitempty"` + /** + * Maximum number of requests that can be sent on a persistent connection to the service group. + Note: Connection requests beyond this value are rejected. + */ + Maxreq int `json:"maxreq,omitempty"` + /** + * Maximum bandwidth, in Kbps, allocated for all the services in the service group. + */ + Maxbandwidth int `json:"maxbandwidth,omitempty"` + /** + * Time, in seconds, after which to terminate an idle client connection. + */ + Clttimeout int `json:"clttimeout,omitempty"` + /** + * Time, in seconds, after which to terminate an idle server connection. + */ + Svrtimeout int `json:"svrtimeout,omitempty"` + /** + * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. + */ + Cipheader string `json:"cipheader,omitempty"` + /** + * Before forwarding a request to the service, insert an HTTP header with the client's IPv4 or IPv6 address as its value. Used if the server needs the client's IP address for security, accounting, or other purposes, and setting the Use Source IP parameter is not a viable option. + */ + Cip string `json:"cip,omitempty"` + /** + * Perform delayed clean-up of connections to all services in the service group. + */ + Downstateflush string `json:"downstateflush,omitempty"` + /** + * Enable logging of AppFlow information for the specified service group. + */ + Appflowlog string `json:"appflowlog,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Boundtd int `json:"boundtd,omitempty"` + /** + * Name of the server for which to display parameters. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go index 080721349..fb5c77334 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_service_binding.go @@ -35,7 +35,7 @@ type Serverservicebinding struct { /** * The port number to be used for the bound service. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The state of the bound service */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go index 4bc78ee7f..ff0731520 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/server_servicegroup_binding.go @@ -35,7 +35,7 @@ type Serverservicegroupbinding struct { /** * The port number to be used for the bound service. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * A positive integer to identify the service. Used when the persistency type is set to Custom Server ID. */ @@ -51,11 +51,11 @@ type Serverservicegroupbinding struct { /** * port of the service. */ - Dupport int32 `json:"dup_port,omitempty"` + Dupport int `json:"dup_port,omitempty"` /** * service flags to denote its a db enabled. */ - Svrcfgflags uint32 `json:"svrcfgflags,omitempty"` + Svrcfgflags int `json:"svrcfgflags,omitempty"` /** * This field has been intorduced to show the dbs services ip */ @@ -63,20 +63,20 @@ type Serverservicegroupbinding struct { /** * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. */ - Monthreshold uint32 `json:"monthreshold,omitempty"` + Monthreshold int `json:"monthreshold,omitempty"` /** * Maximum number of simultaneous open connections for the service group. */ - Maxclient uint32 `json:"maxclient,omitempty"` + Maxclient int `json:"maxclient,omitempty"` /** * Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * Maximum bandwidth, in Kbps, allocated for all the services in the service group. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Use the client's IP address as the source IP address when initiating a connection to the server. When creating a service, if you do not set this parameter, the service inherits the global Use Source IP setting (available in the enable ns mode and disable ns mode CLI commands, or in the System > Settings > Configure modes > Configure Modes dialog box). However, you can override this setting after you create the service. */ @@ -96,11 +96,11 @@ type Serverservicegroupbinding struct { /** * Time, in seconds, after which to terminate an idle client connection. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Time, in seconds, after which to terminate an idle server connection. */ - Svrtimeout uint64 `json:"svrtimeout,omitempty"` + Svrtimeout int `json:"svrtimeout,omitempty"` /** * Name of the HTTP header whose value must be set to the IP address of the client. Used with the Client IP parameter. If client IP insertion is enabled, and the client IP header is not specified, the value of Client IP Header parameter or the value set by the set ns config command is used as client's IP header name. */ @@ -132,11 +132,11 @@ type Serverservicegroupbinding struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Boundtd uint32 `json:"boundtd,omitempty"` + Boundtd int `json:"boundtd,omitempty"` /** * Indicates the weight of bound IPs */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Used for show server of SRV type to indicate target FQDNs */ @@ -144,15 +144,15 @@ type Serverservicegroupbinding struct { /** * Indicates the Priority of the SRV target FQDN */ - Svcitmpriority uint32 `json:"svcitmpriority,omitempty"` + Svcitmpriority int `json:"svcitmpriority,omitempty"` /** * Indicates the total number of active IPs for SRV target FQDN */ - Svcitmactsvcs uint32 `json:"svcitmactsvcs,omitempty"` + Svcitmactsvcs int `json:"svcitmactsvcs,omitempty"` /** * Indicates the total number of bound IPs for the SRV target FQDN */ - Svcitmboundsvcs uint32 `json:"svcitmboundsvcs,omitempty"` + Svcitmboundsvcs int `json:"svcitmboundsvcs,omitempty"` /** * Name of the server for which to display parameters. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go index ec54ef941..8581b6192 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service.go @@ -39,11 +39,11 @@ type Service struct { /** * Port number of the service. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Port to which clear text data must be sent after the appliance decrypts incoming SSL traffic. Applicable to transparent SSL services. */ - Cleartextport int32 `json:"cleartextport,omitempty"` + Cleartextport int `json:"cleartextport,omitempty"` /** * Cache type supported by the cache server. */ @@ -51,7 +51,7 @@ type Service struct { /** * Maximum number of simultaneous open connections to the service. */ - Maxclient uint32 `json:"maxclient,omitempty"` + Maxclient int `json:"maxclient,omitempty"` /** * Monitor the health of this service. Available settings function as follows: YES - Send probes to check the health of the service. @@ -62,7 +62,7 @@ type Service struct { * Maximum number of requests that can be sent on a persistent connection to the service. Note: Connection requests beyond this value are rejected. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * Use the transparent cache redirection virtual server to forward requests to the cache server. Note: Do not specify this parameter if you set the Cache Type parameter. @@ -108,11 +108,11 @@ type Service struct { /** * Time, in seconds, after which to terminate an idle client connection. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Time, in seconds, after which to terminate an idle server connection. */ - Svrtimeout uint64 `json:"svrtimeout,omitempty"` + Svrtimeout int `json:"svrtimeout,omitempty"` /** * Unique identifier for the service. Used when the persistency type for the virtual server is set to Custom Server ID. */ @@ -120,7 +120,7 @@ type Service struct { /** * The identifier for the service. This is used when the persistency type is set to Custom Server ID. */ - Serverid uint32 `json:"serverid,omitempty"` + Serverid int `json:"serverid,omitempty"` /** * Enable client keep-alive for the service. */ @@ -136,7 +136,7 @@ type Service struct { /** * Maximum bandwidth, in Kbps, allocated to the service. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Use Layer 2 mode to bridge the packets sent to this service if it is marked as DOWN. If the service is DOWN, and this parameter is disabled, the packets are dropped. */ @@ -144,7 +144,7 @@ type Service struct { /** * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. */ - Monthreshold uint32 `json:"monthreshold,omitempty"` + Monthreshold int `json:"monthreshold,omitempty"` /** * Initial state of the service. */ @@ -168,7 +168,7 @@ type Service struct { /** * A numerical identifier that can be used by hash based load balancing methods. Must be unique for each service. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * Any information about the service. */ @@ -184,7 +184,7 @@ type Service struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * By turning on this option packets destined to a service in a cluster will not under go any steering. Turn this option for single packet request response mode or when the upstream device is performing a proper RSS for connection based distribution. */ @@ -204,7 +204,7 @@ type Service struct { /** * Weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Name of the monitor bound to the specified service. */ @@ -212,7 +212,7 @@ type Service struct { /** * Time, in seconds, allocated to the Citrix ADC for a graceful shutdown of the service. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). */ - Delay uint64 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * Shut down gracefully, not accepting any new connections, and disabling the service when all of its connections are closed. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_dospolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_dospolicy_binding.go new file mode 100644 index 000000000..5b4a694df --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_dospolicy_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the dospolicy that can be bound to service. +*/ +type Servicedospolicybinding struct { + /** + * The name of the policyname for which this service is bound + */ + Policyname string `json:"policyname,omitempty"` + /** + * Name of the service to which to bind a policy or monitor. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_lbmonitor_binding.go new file mode 100644 index 000000000..4e040078d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_lbmonitor_binding.go @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the lbmonitor that can be bound to service. +*/ +type Servicelbmonitorbinding struct { + /** + * The monitor Names. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * The configured state (enable/disable) of the monitor on this server. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Added this field for getting state value from table. + */ + Dupstate string `json:"dup_state,omitempty"` + /** + * Weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter. + */ + Weight int `json:"weight,omitempty"` + /** + * The weight of the monitor. + */ + Dupweight int `json:"dup_weight,omitempty"` + /** + * The total number of probs sent. + */ + Totalprobes int `json:"totalprobes,omitempty"` + /** + * The total number of failed probs. + */ + Totalfailedprobes int `json:"totalfailedprobes,omitempty"` + /** + * Number of the current failed monitoring probes. + */ + Failedprobes int `json:"failedprobes,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int `json:"monstatcode,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * First parameter for use with message code. + */ + Monstatparam1 int `json:"monstatparam1,omitempty"` + /** + * Second parameter for use with message code. + */ + Monstatparam2 int `json:"monstatparam2,omitempty"` + /** + * Third parameter for use with message code. + */ + Monstatparam3 int `json:"monstatparam3,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime int `json:"responsetime,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes int `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the service to which to bind a policy or monitor. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_scpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_scpolicy_binding.go new file mode 100644 index 000000000..921a9ddbc --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/service_scpolicy_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the scpolicy that can be bound to service. +*/ +type Servicescpolicybinding struct { + /** + * The name of the policyname for which this service is bound + */ + Policyname string `json:"policyname,omitempty"` + /** + * Name of the service to which to bind a policy or monitor. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go index a4143c7e3..53565c95d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup.go @@ -35,16 +35,16 @@ type Servicegroup struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Maximum number of simultaneous open connections for the service group. */ - Maxclient uint32 `json:"maxclient,omitempty"` + Maxclient int `json:"maxclient,omitempty"` /** * Maximum number of requests that can be sent on a persistent connection to the service group. Note: Connection requests beyond this value are rejected. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * Use the transparent cache redirection virtual server to forward the request to the cache server. Note: Do not set this parameter if you set the Cache Type. @@ -96,11 +96,11 @@ type Servicegroup struct { /** * Time, in seconds, after which to terminate an idle client connection. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Time, in seconds, after which to terminate an idle server connection. */ - Svrtimeout uint64 `json:"svrtimeout,omitempty"` + Svrtimeout int `json:"svrtimeout,omitempty"` /** * Enable client keep-alive for the service group. */ @@ -116,11 +116,11 @@ type Servicegroup struct { /** * Maximum bandwidth, in Kbps, allocated for all the services in the service group. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Minimum sum of weights of the monitors that are bound to this service. Used to determine whether to mark a service as UP or DOWN. */ - Monthreshold uint32 `json:"monthreshold,omitempty"` + Monthreshold int `json:"monthreshold,omitempty"` /** * Initial state of the service group. */ @@ -156,7 +156,7 @@ type Servicegroup struct { /** * member port */ - Memberport int32 `json:"memberport,omitempty"` + Memberport int `json:"memberport,omitempty"` /** * Indicates graceful shutdown of the service. System will wait for all outstanding connections to this service to be closed before disabling the service. */ @@ -164,7 +164,7 @@ type Servicegroup struct { /** * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. */ - Autodisabledelay uint64 `json:"autodisabledelay,omitempty"` + Autodisabledelay int `json:"autodisabledelay,omitempty"` /** * Close monitoring connections by sending the service a connection termination message with the specified bit set. */ @@ -176,11 +176,11 @@ type Servicegroup struct { /** * Server port number. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID. */ @@ -188,11 +188,11 @@ type Servicegroup struct { /** * The identifier for the service. This is used when the persistency type is set to Custom Server ID. */ - Serverid uint32 `json:"serverid,omitempty"` + Serverid int `json:"serverid,omitempty"` /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver */ @@ -200,7 +200,7 @@ type Servicegroup struct { /** * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors */ - Dbsttl uint64 `json:"dbsttl,omitempty"` + Dbsttl int `json:"dbsttl,omitempty"` /** * Name of the monitor bound to the service group. Used to assign a weight to the monitor. */ @@ -208,11 +208,11 @@ type Servicegroup struct { /** * weight of the monitor that is bound to servicegroup. */ - Dupweight uint32 `json:"dup_weight,omitempty"` + Dupweight int `json:"dup_weight,omitempty"` /** * Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). */ - Delay uint64 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_lbmonitor_binding.go new file mode 100644 index 000000000..e276b6031 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_lbmonitor_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package basic + +/** +* Binding class showing the lbmonitor that can be bound to servicegroup. +*/ +type Servicegrouplbmonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * weight of the monitor that is bound to servicegroup. + */ + Monweight int `json:"monweight,omitempty"` + /** + * Monitor state. + */ + Monstate string `json:"monstate,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight int `json:"weight,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the service. Each service must have a unique port number. + */ + Port int `json:"port,omitempty"` + /** + * Unique service identifier. Used when the persistency type for the virtual server is set to Custom Server ID. + */ + Customserverid string `json:"customserverid,omitempty"` + /** + * The identifier for the service. This is used when the persistency type is set to Custom Server ID. + */ + Serverid int `json:"serverid,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid int `json:"hashid,omitempty"` + /** + * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver + */ + Nameserver string `json:"nameserver,omitempty"` + /** + * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors + */ + Dbsttl int `json:"dbsttl,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go index 4bc08a2dc..cd0415bdd 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupentitymonbindings_binding.go @@ -36,15 +36,15 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * Total number of probes sent to monitor this service. */ - Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + Monitortotalprobes int `json:"monitortotalprobes,omitempty"` /** * Total number of failed probes */ - Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` /** * Total number of currently failed probes */ - Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` /** * The string form of monstatcode. */ @@ -52,7 +52,7 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * Response time of this monitor in milli sec. */ - Responsetime uint64 `json:"responsetime,omitempty"` + Responsetime int `json:"responsetime,omitempty"` /** * Name of the service group. */ @@ -60,8 +60,8 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * Port number of the service. Each service must have a unique port number. */ - Port int32 `json:"port,omitempty"` - Weight uint32 `json:"weight,omitempty"` + Port int `json:"port,omitempty"` + Weight int `json:"weight,omitempty"` /** * Unique service identifier. Used when the persistency type for the virtual server is set to Custom Server ID. */ @@ -69,7 +69,7 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * The identifier for the service. This is used when the persistency type is set to Custom Server ID. */ - Serverid uint32 `json:"serverid,omitempty"` + Serverid int `json:"serverid,omitempty"` /** * Initial state of the service after binding. */ @@ -77,7 +77,7 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * Unique numerical identifier used by hash based load balancing methods to identify a service. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver */ @@ -85,7 +85,7 @@ type Servicegroupservicegroupentitymonbindingsbinding struct { /** * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors */ - Dbsttl uint64 `json:"dbsttl,omitempty"` + Dbsttl int `json:"dbsttl,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go index fbb58868f..960320826 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmember_binding.go @@ -27,7 +27,7 @@ type Servicegroupservicegroupmemberbinding struct { /** * Server port number. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The state of the service */ @@ -39,11 +39,11 @@ type Servicegroupservicegroupmemberbinding struct { /** * Time in 10 millisecond ticks since the last state change. */ - Tickssincelaststatechange uint32 `json:"tickssincelaststatechange,omitempty"` + Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Name of the server to which to bind the service group. */ @@ -55,7 +55,7 @@ type Servicegroupservicegroupmemberbinding struct { /** * The identifier for the service. This is used when the persistency type is set to Custom Server ID. */ - Serverid uint32 `json:"serverid,omitempty"` + Serverid int `json:"serverid,omitempty"` /** * Initial state of the service group. */ @@ -63,7 +63,7 @@ type Servicegroupservicegroupmemberbinding struct { /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. */ @@ -71,7 +71,7 @@ type Servicegroupservicegroupmemberbinding struct { /** * Time, in seconds, allocated for a shutdown of the services in the service group. During this period, new requests are sent to the service only for clients who already have persistent sessions on the appliance. Requests from new clients are load balanced among other available services. After the delay time expires, no requests are sent to the service, and the service is marked as unavailable (OUT OF SERVICE). */ - Delay uint64 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver */ @@ -79,11 +79,11 @@ type Servicegroupservicegroupmemberbinding struct { /** * Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors */ - Dbsttl uint64 `json:"dbsttl,omitempty"` + Dbsttl int `json:"dbsttl,omitempty"` /** * This gives the priority of the FQDN service items for SRV server binding */ - Svcitmpriority uint32 `json:"svcitmpriority,omitempty"` + Svcitmpriority int `json:"svcitmpriority,omitempty"` /** * Specify reason if service group member in TROFS */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go index 4968d8dc9..b24f67dae 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/servicegroup_servicegroupmemberlist_binding.go @@ -43,8 +43,8 @@ type Members struct { /** * The port number of the service to be enabled. */ - Port int32 `json:"port,omitempty"` - Weight uint32 `json:"weight,omitempty"` + Port int `json:"port,omitempty"` + Weight int `json:"weight,omitempty"` /** * Initial state of the service group. */ @@ -59,5 +59,5 @@ type Failedmembers struct { /** * The port number of the service to be enabled. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go index a70886183..699f735e1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/basic/vserver.go @@ -39,7 +39,7 @@ type Vserver struct { /** * The timeout value in seconds for idle client connection */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * The spillover factor. The system will use this value to determine if it should send traffic to the backupvserver when the main virtual server reaches the spillover threshold. */ @@ -51,11 +51,11 @@ type Vserver struct { /** * The spillover persistence entry timeout. */ - Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * The spillver threshold value. */ - Sothreshold uint32 `json:"sothreshold,omitempty"` + Sothreshold int `json:"sothreshold,omitempty"` /** * The lb vserver of type PUSH/SSL_PUSH to which server pushes the updates received on the client facing non-push lb vserver. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go index f7417bf55..047b9bcfc 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance.go @@ -23,15 +23,15 @@ type Clusterinstance struct { /** * Unique number that identifies the cluster. */ - Clid uint32 `json:"clid,omitempty"` + Clid int `json:"clid,omitempty"` /** * Amount of time, in seconds, after which nodes that do not respond to the heartbeats are assumed to be down.If the value is less than 3 sec, set the helloInterval parameter to 200 msec */ - Deadinterval uint64 `json:"deadinterval,omitempty"` + Deadinterval int `json:"deadinterval,omitempty"` /** * Interval, in milliseconds, at which heartbeats are sent to each cluster node to check the health status.Set the value to 200 msec, if the deadInterval parameter is less than 3 sec */ - Hellointerval uint32 `json:"hellointerval,omitempty"` + Hellointerval int `json:"hellointerval,omitempty"` /** * Preempt a cluster node that is configured as a SPARE if an ACTIVE node becomes available. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go index c5fd95db7..5735eefe5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_binding.go @@ -23,7 +23,7 @@ type Clusterinstancebinding struct { /** * Unique number that identifies the cluster.
Minimum value = 1
Maximum value = 16 */ - Clid uint32 `json:"clid,omitempty"` + Clid int `json:"clid,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_clusternode_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_clusternode_binding.go new file mode 100644 index 000000000..93fb0034c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterinstance_clusternode_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the clusternode that can be bound to clusterinstance. +*/ +type Clusterinstanceclusternodebinding struct { + /** + * The unique number that identiies a cluster. + */ + Nodeid int `json:"nodeid,omitempty"` + /** + * The IP Address of the node. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Node Health state. + */ + Health string `json:"health,omitempty"` + /** + * Node clusterd state. + */ + Clusterhealth string `json:"clusterhealth,omitempty"` + /** + * Node effective health state. + */ + Effectivestate string `json:"effectivestate,omitempty"` + /** + * Master state. + */ + Masterstate string `json:"masterstate,omitempty"` + /** + * Active, Spare or Passive. An active node serves traffic. A spare node serves as a backup for active nodes. A passive node does not serve traffic. This may be useful during temporary maintenance activity where it is desirable that the node takes part in the consensus protocol, but not serve traffic. + */ + State string `json:"state,omitempty"` + /** + * This argument is used to determine whether the node is configuration coordinator (CCO). + */ + Isconfigurationcoordinator bool `json:"isconfigurationcoordinator,omitempty"` + /** + * This argument is used to determine whether it is local node. + */ + Islocalnode bool `json:"islocalnode,omitempty"` + /** + * This argument is used to determine if there is a RSS key mismatch at cluster node level. + */ + Nodersskeymismatch bool `json:"nodersskeymismatch,omitempty"` + /** + * This argument is used to determine if there is a License mismatch at cluster node level. + */ + Nodelicensemismatch bool `json:"nodelicensemismatch,omitempty"` + /** + * This argument is used to determine if Jumbo framework not supported at cluster node level. + */ + Nodejumbonotsupported bool `json:"nodejumbonotsupported,omitempty"` + /** + * Unique number that identifies the cluster. + */ + Clid int `json:"clid,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go index 9d512b11d..fc5051beb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode.go @@ -23,7 +23,7 @@ type Clusternode struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid"` // Zero is a valid value /** * Citrix ADC IP (NSIP) address of the appliance to add to the cluster. Must be an IPv4 address. */ @@ -44,7 +44,7 @@ type Clusternode struct { When the current configuration coordinator goes down, the node with the next lowest priority is made the new configuration coordinator. When the original node comes back up, it will preempt the new configuration coordinator and take over as the configuration coordinator. Note: When priority is not configured for any of the nodes or if multiple nodes have the same priority, the cluster elects one of the nodes as the configuration coordinator. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority"` // Zero is a valid value /** * The default node group in a Cluster system. */ @@ -52,7 +52,7 @@ type Clusternode struct { /** * Applicable for Passive node and node becomes passive after this timeout (in minutes) */ - Delay uint32 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * To set the tunnel mode */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go index 9510b63be..0f8435e92 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_binding.go @@ -23,7 +23,7 @@ type Clusternodebinding struct { /** * ID of the cluster node for which to display information. If an ID is not provided, information about all nodes is shown.
Default value: 255
Minimum value = 0
Maximum value = 31 */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go index 81ce366e6..eeb0d0095 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternode_routemonitor_binding.go @@ -31,11 +31,11 @@ type Clusternoderoutemonitorbinding struct { /** * Current routemonstate */ - Routemonstate uint32 `json:"routemonstate,omitempty"` + Routemonstate int `json:"routemonstate,omitempty"` /** * A number that uniquely identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go index d8a2d488f..785a41ab6 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup.go @@ -43,7 +43,7 @@ type Clusternodegroup struct { /** * Priority of Nodegroup. This priority is used for all the nodes bound to the nodegroup for Nodegroup selection */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go new file mode 100644 index 000000000..535438573 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_authenticationvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the authenticationvserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupauthenticationvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_clusternode_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_clusternode_binding.go new file mode 100644 index 000000000..44b50b9d1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_clusternode_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the clusternode that can be bound to clusternodegroup. +*/ +type Clusternodegroupclusternodebinding struct { + /** + * Nodes in the nodegroup + */ + Node int `json:"node,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_crvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_crvserver_binding.go new file mode 100644 index 000000000..f623dfeb0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_crvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the crvserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupcrvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_csvserver_binding.go new file mode 100644 index 000000000..11b8f4be9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_csvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the csvserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupcsvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbsite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbsite_binding.go new file mode 100644 index 000000000..4707a3faf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbsite_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the gslbsite that can be bound to clusternodegroup. +*/ +type Clusternodegroupgslbsitebinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Gslbsite string `json:"gslbsite,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbvserver_binding.go new file mode 100644 index 000000000..b13144c7a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_gslbvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the gslbvserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupgslbvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_lbvserver_binding.go new file mode 100644 index 000000000..4da9ae9bb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_lbvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the lbvserver that can be bound to clusternodegroup. +*/ +type Clusternodegrouplbvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go new file mode 100644 index 000000000..6eb62925e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_nslimitidentifier_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the nslimitidentifier that can be bound to clusternodegroup. +*/ +type Clusternodegroupnslimitidentifierbinding struct { + /** + * stream identifier and rate limit identifier that need to be bound to this nodegroup. + */ + Identifiername string `json:"identifiername,omitempty"` + /** + * Name of the nodegroup to which you want to bind a cluster node or an entity. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_streamidentifier_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_streamidentifier_binding.go new file mode 100644 index 000000000..8a790a1ce --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_streamidentifier_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the streamidentifier that can be bound to clusternodegroup. +*/ +type Clusternodegroupstreamidentifierbinding struct { + /** + * stream identifier and rate limit identifier that need to be bound to this nodegroup. + */ + Identifiername string `json:"identifiername,omitempty"` + /** + * Name of the nodegroup to which you want to bind a cluster node or an entity. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vpnvserver_binding.go new file mode 100644 index 000000000..c46435faa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusternodegroup_vpnvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cluster + +/** +* Binding class showing the vpnvserver that can be bound to clusternodegroup. +*/ +type Clusternodegroupvpnvserverbinding struct { + /** + * vserver that need to be bound to this nodegroup. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Name of the nodegroup. The name uniquely identifies the nodegroup on the cluster. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go index 5345f832f..f92ce4508 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cluster/clusterpropstatus.go @@ -21,7 +21,7 @@ type Clusterpropstatus struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_cmppolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_cmppolicy_binding.go new file mode 100644 index 000000000..9c0ea1252 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpglobal_cmppolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the cmppolicy that can be bound to cmpglobal. +*/ +type Cmpglobalcmppolicybinding struct { + /** + * The name of the globally bound HTTP compression policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Positive integer specifying the priority of the policy. The lower the number, the higher the priority. By default, polices within a label are evaluated in the order of their priority numbers. + In the configuration utility, you can click the Priority field and edit the priority level or drag the entry to a new position in the list. If you drag the entry to a new position, the priority level is updated automatically. + */ + Priority int `json:"priority,omitempty"` + /** + * The current state of the policy binding. This attribute is relevant only for CLASSIC policies. + */ + State string `json:"state,omitempty"` + /** + * Bind point to which the policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol int `json:"numpol,omitempty"` + /** + * Policy type (Classic/Advanced) to be bound.Used for display. + */ + Policytype string `json:"policytype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Expression or other value specifying the priority of the next policy, within the policy label, to evaluate if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher numbered priority. + * END - Stop evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, it's evaluation result determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, that policy is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher priority number is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest priority number, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. Applicable only for default-syntax policies. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. This argument is relevant only for advanced (default-syntax) policies. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. Applicable only to advanced (default-syntax) policies. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go index 015b5d492..f6f8da83d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmpparameter.go @@ -30,7 +30,7 @@ type Cmpparameter struct { /** * Minimum quantum of data to be filled before compression begins. */ - Quantumsize uint32 `json:"quantumsize,omitempty"` + Quantumsize int `json:"quantumsize,omitempty"` /** * Allow the server to send compressed data to the Citrix ADC. With the default setting, the Citrix ADC appliance handles all compression. */ @@ -42,19 +42,19 @@ type Cmpparameter struct { /** * Threshold compression ratio for heuristic basefile expiry, multiplied by 100. For example, to set the threshold ratio to 1.25, specify 125. */ - Heurexpirythres uint32 `json:"heurexpirythres,omitempty"` + Heurexpirythres int `json:"heurexpirythres,omitempty"` /** * For heuristic basefile expiry, weightage to be given to historical delta compression ratio, specified as percentage. For example, to give 25% weightage to historical ratio (and therefore 75% weightage to the ratio for current delta compression transaction), specify 25. */ - Heurexpiryhistwt uint32 `json:"heurexpiryhistwt,omitempty"` + Heurexpiryhistwt int `json:"heurexpiryhistwt,omitempty"` /** * Smallest response size, in bytes, to be compressed. */ - Minressize uint32 `json:"minressize,omitempty"` + Minressize int `json:"minressize,omitempty"` /** * Citrix ADC CPU threshold after which compression is not performed. Range: 0 - 100 */ - Cmpbypasspct uint32 `json:"cmpbypasspct,omitempty"` + Cmpbypasspct int `json:"cmpbypasspct,omitempty"` /** * Citrix ADC does not wait for the quantum to be filled before starting to compress data. Upon receipt of a packet with a PUSH flag, the appliance immediately begins compression of the accumulated packets. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmpglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmpglobal_binding.go new file mode 100644 index 000000000..d632babd1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmpglobal_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the cmpglobal that can be bound to cmppolicy. +*/ +type Cmppolicycmpglobalbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go new file mode 100644 index 000000000..df9bc3fc9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_cmppolicylabel_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the cmppolicylabel that can be bound to cmppolicy. +*/ +type Cmppolicycmppolicylabelbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_crvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_crvserver_binding.go new file mode 100644 index 000000000..744aeea92 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_crvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the crvserver that can be bound to cmppolicy. +*/ +type Cmppolicycrvserverbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_csvserver_binding.go new file mode 100644 index 000000000..e9fb92de7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_csvserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the csvserver that can be bound to cmppolicy. +*/ +type Cmppolicycsvserverbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_lbvserver_binding.go new file mode 100644 index 000000000..6d7e2b0c0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicy_lbvserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the lbvserver that can be bound to cmppolicy. +*/ +type Cmppolicylbvserverbinding struct { + /** + * The name of the entity to which the policy is bound. + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the HTTP compression policy for which to display details. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go new file mode 100644 index 000000000..20bcbfaa5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_cmppolicy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cmp + +/** +* Binding class showing the cmppolicy that can be bound to cmppolicylabel. +*/ +type Cmppolicylabelcmppolicybinding struct { + /** + * The compression policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or a user-defined policy label. After the invoked policies are evaluated, the flow returns to the policy with the next higher priority number in the original label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the HTTP compression policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go index 6e5c8c6cb..cf0c1c1aa 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cmp/cmppolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Cmppolicylabelpolicybindingbinding struct { /** * Specifies the priority of the policy. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_crvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_crvserver_binding.go new file mode 100644 index 000000000..b414dd971 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_crvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the crvserver that can be bound to cspolicy. +*/ +type Cspolicycrvserverbinding struct { + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * priority of bound policy + */ + Priority int `json:"priority,omitempty"` + /** + * Total number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_cspolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_cspolicylabel_binding.go new file mode 100644 index 000000000..91a6bc662 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_cspolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the cspolicylabel that can be bound to cspolicy. +*/ +type Cspolicycspolicylabelbinding struct { + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * priority of bound policy + */ + Priority int `json:"priority,omitempty"` + /** + * Total number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_csvserver_binding.go new file mode 100644 index 000000000..34135aaac --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicy_csvserver_binding.go @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the csvserver that can be bound to cspolicy. +*/ +type Cspolicycsvserverbinding struct { + /** + * The domain name. The string value can range to 63 characters. + */ + Domain string `json:"domain,omitempty"` + /** + * Content switching action that names the target load balancing virtual server to which the traffic is switched. + */ + Action string `json:"action,omitempty"` + /** + * URL string that is matched with the URL of a request. Can contain a wildcard character. Specify the string value in the following format: [[prefix] [*]] [.suffix]. + */ + Url string `json:"url,omitempty"` + /** + * priority of bound policy + */ + Priority int `json:"priority,omitempty"` + /** + * Total number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Total number of hits. + */ + Pihits int `json:"pihits,omitempty"` + /** + * bind hits for PI CS Policy. + */ + Pipolicyhits int `json:"pipolicyhits,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching policy to display. If this parameter is omitted, details of all the policies are displayed. + */ + Policyname string `json:"policyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_cspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_cspolicy_binding.go new file mode 100644 index 000000000..a6b6bd036 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/cspolicylabel_cspolicy_binding.go @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the cspolicy that can be bound to cspolicylabel. +*/ +type Cspolicylabelcspolicybinding struct { + /** + * Name of the content switching policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the virtual server to which to forward requests that match the policy. + */ + Targetvserver string `json:"targetvserver,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the policy label to which to bind a content switching policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go index c14a7f6b3..94399380d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver.go @@ -30,7 +30,7 @@ type Csvserver struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Protocol used by the virtual server. */ @@ -44,7 +44,7 @@ type Csvserver struct { */ Targettype string `json:"targettype,omitempty"` Dnsrecordtype string `json:"dnsrecordtype,omitempty"` - Persistenceid uint32 `json:"persistenceid,omitempty"` + Persistenceid int `json:"persistenceid,omitempty"` /** * IP address pattern, in dotted decimal notation, for identifying packets to be accepted by the virtual server. The IP Mask parameter specifies which part of the destination IP address is matched against the pattern. Mutually exclusive with the IP Address parameter. For example, if the IP pattern assigned to the virtual server is 198.51.100.0 and the IP mask is 255.255.240.0 (a forward mask), the first 20 bits in the destination IP addresses are matched with the first 20 bits in the pattern. The virtual server accepts requests with IP addresses that range from 198.51.96.1 to 198.51.111.254. You can also use a pattern such as 0.0.2.2 and a mask such as 0.0.255.255 (a reverse mask). @@ -58,11 +58,11 @@ type Csvserver struct { /** * Number of consecutive IP addresses, starting with the address specified by the IP Address parameter, to include in a range of addresses assigned to this virtual server. */ - Range uint32 `json:"range,omitempty"` + Range int `json:"range,omitempty"` /** * Port number for content switching virtual server. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current cs vserver */ @@ -97,7 +97,7 @@ type Csvserver struct { 120 seconds for DNS-based services. 120 seconds for other UDP-based services. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Type of precedence to use for both RULE-based and URL-based policies on the content switching virtual server. With the default (RULE) setting, incoming requests are evaluated against the rule-based content switching policies. If none of the rules match, the URL in the request is evaluated against the URL-based content switching policies. */ @@ -117,11 +117,11 @@ type Csvserver struct { /** * Time-out value, in minutes, for spillover persistence. */ - Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Depending on the spillover method, the maximum number of connections or the maximum total bandwidth (Kbps) that a virtual server can handle before spillover occurs. */ - Sothreshold uint32 `json:"sothreshold,omitempty"` + Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists */ @@ -174,7 +174,7 @@ type Csvserver struct { /** * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. */ - Listenpriority uint32 `json:"listenpriority,omitempty"` + Listenpriority int `json:"listenpriority,omitempty"` /** * Enable HTTP 401-response based authentication. */ @@ -230,7 +230,7 @@ type Csvserver struct { /** * The protocol version returned by the mysql vserver. */ - Mysqlprotocolversion uint32 `json:"mysqlprotocolversion,omitempty"` + Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` /** * The server version string returned by the mysql vserver. */ @@ -238,11 +238,11 @@ type Csvserver struct { /** * The character set returned by the mysql vserver. */ - Mysqlcharacterset uint32 `json:"mysqlcharacterset,omitempty"` + Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` /** * The server capabilities returned by the mysql vserver. */ - Mysqlservercapabilities uint32 `json:"mysqlservercapabilities,omitempty"` + Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` /** * Enable logging appflow flow information */ @@ -288,11 +288,11 @@ type Csvserver struct { /** * Persistence mask for IP based persistence types, for IPv6 virtual servers. */ - V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Time period for which a persistence session is in effect. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Use this parameter to specify the cookie name for COOKIE peristence type. It specifies the name of cookie with a maximum of 32 characters. If not specified, cookie name is internally generated. */ @@ -304,11 +304,11 @@ type Csvserver struct { /** * Time period for which backup persistence is in effect. */ - Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. */ - Tcpprobeport int32 `json:"tcpprobeport,omitempty"` + Tcpprobeport int `json:"tcpprobeport,omitempty"` /** * Citrix ADC provides support for external health check of the vserver status. Select HTTP or TCP probes for healthcheck */ @@ -320,7 +320,7 @@ type Csvserver struct { /** * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring */ - Probeport int32 `json:"probeport,omitempty"` + Probeport int `json:"probeport,omitempty"` /** * Name of QUIC profile which will be attached to the Content Switching VServer. */ @@ -329,11 +329,11 @@ type Csvserver struct { * Domain name for which to change the time to live (TTL) and/or backup service IP address. */ Domainname string `json:"domainname,omitempty"` - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` Backupip string `json:"backupip,omitempty"` Cookiedomain string `json:"cookiedomain,omitempty"` - Cookietimeout uint32 `json:"cookietimeout,omitempty"` - Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * New name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_analyticsprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_analyticsprofile_binding.go new file mode 100644 index 000000000..2ab22d22d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_analyticsprofile_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the analyticsprofile that can be bound to csvserver. +*/ +type Csvserveranalyticsprofilebinding struct { + /** + * Name of the analytics profile bound to the LB vserver. + */ + Analyticsprofile string `json:"analyticsprofile,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appflowpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appflowpolicy_binding.go new file mode 100644 index 000000000..1ac85423b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appflowpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the appflowpolicy that can be bound to csvserver. +*/ +type Csvserverappflowpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appfwpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appfwpolicy_binding.go new file mode 100644 index 000000000..9139705d2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appfwpolicy_binding.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the appfwpolicy that can be bound to csvserver. +*/ +type Csvserverappfwpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appqoepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appqoepolicy_binding.go new file mode 100644 index 000000000..c198997ba --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_appqoepolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the appqoepolicy that can be bound to csvserver. +*/ +type Csvserverappqoepolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditnslogpolicy_binding.go new file mode 100644 index 000000000..1f9141b48 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditnslogpolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the auditnslogpolicy that can be bound to csvserver. +*/ +type Csvserverauditnslogpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..6506d43e0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_auditsyslogpolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the auditsyslogpolicy that can be bound to csvserver. +*/ +type Csvserverauditsyslogpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_authorizationpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_authorizationpolicy_binding.go new file mode 100644 index 000000000..af81f8a01 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_authorizationpolicy_binding.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the authorizationpolicy that can be bound to csvserver. +*/ +type Csvserverauthorizationpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_botpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_botpolicy_binding.go new file mode 100644 index 000000000..15f4ccce4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_botpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the botpolicy that can be bound to csvserver. +*/ +type Csvserverbotpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cachepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cachepolicy_binding.go new file mode 100644 index 000000000..3a759d78e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cachepolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the cachepolicy that can be bound to csvserver. +*/ +type Csvservercachepolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cmppolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cmppolicy_binding.go new file mode 100644 index 000000000..98b21c26e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cmppolicy_binding.go @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the cmppolicy that can be bound to csvserver. +*/ +type Csvservercmppolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_contentinspectionpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_contentinspectionpolicy_binding.go new file mode 100644 index 000000000..02a334b31 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_contentinspectionpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the contentinspectionpolicy that can be bound to csvserver. +*/ +type Csvservercontentinspectionpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cspolicy_binding.go new file mode 100644 index 000000000..d0ea843d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_cspolicy_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the cspolicy that can be bound to csvserver. +*/ +type Csvservercspolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * target vserver name. + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Number of hits. + */ + Pipolicyhits int `json:"pipolicyhits,omitempty"` + /** + * Rule. + */ + Rule string `json:"rule,omitempty"` + /** + * Vserver Id of vserver + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go index 910aff424..e89f84b9c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_domain_binding.go @@ -24,11 +24,11 @@ type Csvserverdomainbinding struct { * Domain name for which to change the time to live (TTL) and/or backup service IP address. */ Domainname string `json:"domainname,omitempty"` - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` Backupip string `json:"backupip,omitempty"` Cookiedomain string `json:"cookiedomain,omitempty"` - Cookietimeout uint32 `json:"cookietimeout,omitempty"` - Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * Enable logging appflow flow information */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_feopolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_feopolicy_binding.go new file mode 100644 index 000000000..1af8e5aaa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_feopolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the feopolicy that can be bound to csvserver. +*/ +type Csvserverfeopolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_filterpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_filterpolicy_binding.go new file mode 100644 index 000000000..b302c8678 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_filterpolicy_binding.go @@ -0,0 +1,79 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the filterpolicy that can be bound to csvserver. +*/ +type Csvserverfilterpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * The state of SureConnect the specified virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_gslbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_gslbvserver_binding.go new file mode 100644 index 000000000..80986ae9d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_gslbvserver_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the gslbvserver that can be bound to csvserver. +*/ +type Csvservergslbvserverbinding struct { + /** + * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 + */ + Vserver string `json:"vserver,omitempty"` + /** + * Number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_lbvserver_binding.go new file mode 100644 index 000000000..e20fa3f76 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_lbvserver_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the lbvserver that can be bound to csvserver. +*/ +type Csvserverlbvserverbinding struct { + /** + * Name of the default lb vserver bound. Use this param for Default binding only. For Example: bind cs vserver cs1 -lbvserver lb1 + */ + Lbvserver string `json:"lbvserver,omitempty"` + /** + * Number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Vserver Id of vserver + */ + Vserverid string `json:"vserverid,omitempty"` + /** + * Vserver id of the lb vserver that is inserted into the set-cookie HTTP header + */ + Cookieipport string `json:"cookieipport,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * The virtual server name (created with the add lb vserver command) to which content will be switched. + */ + Targetvserver string `json:"targetvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_responderpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_responderpolicy_binding.go new file mode 100644 index 000000000..ff75e3da0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_responderpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the responderpolicy that can be bound to csvserver. +*/ +type Csvserverresponderpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_rewritepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_rewritepolicy_binding.go new file mode 100644 index 000000000..58168b486 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_rewritepolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the rewritepolicy that can be bound to csvserver. +*/ +type Csvserverrewritepolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_spilloverpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_spilloverpolicy_binding.go new file mode 100644 index 000000000..255d309f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_spilloverpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the spilloverpolicy that can be bound to csvserver. +*/ +type Csvserverspilloverpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_tmtrafficpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_tmtrafficpolicy_binding.go new file mode 100644 index 000000000..200b0dc5f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_tmtrafficpolicy_binding.go @@ -0,0 +1,75 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the tmtrafficpolicy that can be bound to csvserver. +*/ +type Csvservertmtrafficpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point at which policy needs to be bound. Note: Content switching policies are evaluated only at request time. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke a policy label if this policy's rule evaluates to TRUE (valid only for default-syntax policies such as application firewall, transform, integrated cache, rewrite, responder, and content switching). + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of label to be invoked. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to be invoked. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_transformpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_transformpolicy_binding.go new file mode 100644 index 000000000..6e1663709 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_transformpolicy_binding.go @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the transformpolicy that can be bound to csvserver. +*/ +type Csvservertransformpolicybinding struct { + /** + * Policies bound to this vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority for the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + /** + * Name of the Load Balancing virtual server to which the content is switched, if policy rule is evaluated to be TRUE. + Example: bind cs vs cs1 -policyname pol1 -priority 101 -targetLBVserver lb1 + Note: Use this parameter only in case of Content Switching policy bind operations to a CS vserver + */ + Targetlbvserver string `json:"targetlbvserver,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vpnvserver_binding.go new file mode 100644 index 000000000..9f034d416 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/cs/csvserver_vpnvserver_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package cs + +/** +* Binding class showing the vpnvserver that can be bound to csvserver. +*/ +type Csvservervpnvserverbinding struct { + /** + * Name of the default gslb or vpn vserver bound to CS vserver of type GSLB/VPN. For Example: bind cs vserver cs1 -vserver gslb1 or bind cs vserver cs1 -vserver vpn1 + */ + Vserver string `json:"vserver,omitempty"` + /** + * Number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Name of the content switching virtual server to which the content switching policy applies. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go index 7e246db99..1747a1ee2 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaaaarec.go @@ -31,7 +31,7 @@ type Dnsaaaarec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached records need to be removed. */ @@ -46,7 +46,7 @@ type Dnsaaaarec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go index d4b85b7e7..4b61001d9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaction.go @@ -36,7 +36,7 @@ type Dnsaction struct { /** * Time to live, in seconds. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * The view name that must be used for the given action. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go index b8dfeea17..9d84fc9f4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsaddrec.go @@ -31,7 +31,7 @@ type Dnsaddrec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached address records need to be removed. */ @@ -46,7 +46,7 @@ type Dnsaddrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go index c38aa8452..a5905a924 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnscnamerec.go @@ -31,7 +31,7 @@ type Dnscnamerec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached CNAME record need to be removed. */ @@ -46,7 +46,7 @@ type Dnscnamerec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_dnspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_dnspolicy_binding.go new file mode 100644 index 000000000..4ce6d8164 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsglobal_dnspolicy_binding.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnspolicy that can be bound to dnsglobal. +*/ +type Dnsglobaldnspolicybinding struct { + /** + * Name of the dns policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Type of global bind point for which to show bound policies. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy with which it is bound. Maximum allowed priority should be less than 65535 + */ + Priority int `json:"priority,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol int `json:"numpol,omitempty"` + /** + * flowtype of the bound rewrite policy. + */ + Flowtype int `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go index cd1ec9b66..51b6421fa 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnskey.go @@ -35,7 +35,7 @@ type Dnskey struct { /** * Time period for which to consider the key valid, after the key is used to sign a zone. */ - Expires uint32 `json:"expires,omitempty"` + Expires int `json:"expires,omitempty"` /** * Units for the expiry period. */ @@ -43,7 +43,7 @@ type Dnskey struct { /** * Time at which to generate notification of key expiration, specified as number of days, hours, or minutes before expiry. Must be less than the expiry period. The notification is an SNMP trap sent to an SNMP manager. To enable the appliance to send the trap, enable the DNSKEY-EXPIRY SNMP alarm. */ - Notificationperiod uint32 `json:"notificationperiod,omitempty"` + Notificationperiod int `json:"notificationperiod,omitempty"` /** * Units for the notification period. */ @@ -51,7 +51,7 @@ type Dnskey struct { /** * Time to Live (TTL), in seconds, for the DNSKEY resource record created in the zone. TTL is the time for which the record must be cached by the DNS proxies. If the TTL is not specified, either the DNS zone's minimum TTL or the default value of 3600 is used. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Passphrase for reading the encrypted public/private DNS keys */ @@ -71,7 +71,7 @@ type Dnskey struct { /** * Size of the key, in bits. */ - Keysize uint32 `json:"keysize,omitempty"` + Keysize int `json:"keysize,omitempty"` /** * Common prefix for the names of the generated public and private key files and the Delegation Signer (DS) resource record. During key generation, the .key, .private, and .ds suffixes are appended automatically to the file name prefix to produce the names of the public key, the private key, and the DS record, respectively. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go index f28017c74..b5f951c5e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsmxrec.go @@ -31,11 +31,11 @@ type Dnsmxrec struct { /** * Priority number to assign to the mail exchange server. A domain name can have multiple mail servers, with a priority number assigned to each server. The lower the priority number, the higher the mail server's priority. When other mail servers have to deliver mail to the specified domain, they begin with the mail server with the lowest priority number, and use other configured mail servers, in priority order, as backups. */ - Pref uint32 `json:"pref,omitempty"` + Pref int `json:"pref,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached MX record need to be removed. */ @@ -50,7 +50,7 @@ type Dnsmxrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go index 368bcdffc..f8bf955dc 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnaptrrec.go @@ -27,11 +27,11 @@ type Dnsnaptrrec struct { /** * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest */ - Order uint32 `json:"order,omitempty"` + Order int `json:"order,omitempty"` /** * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. */ - Preference uint32 `json:"preference,omitempty"` + Preference int `json:"preference,omitempty"` /** * flags for this NAPTR. */ @@ -51,12 +51,12 @@ type Dnsnaptrrec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Unique, internally generated record ID. View the details of the naptr record to obtain its record ID. Records can be removed by either specifying the domain name and record id OR by specifying domain name and all other naptr record attributes as was supplied during the add command. */ - Recordid uint32 `json:"recordid,omitempty"` + Recordid int `json:"recordid,omitempty"` /** * Subnet for which the cached NAPTR record need to be removed. */ @@ -71,7 +71,7 @@ type Dnsnaptrrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go index 1082a9f6f..a1e444e04 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsnsrec.go @@ -31,7 +31,7 @@ type Dnsnsrec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached name server record need to be removed. */ @@ -46,7 +46,7 @@ type Dnsnsrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go index 0d63788d7..22c0cc544 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsparameter.go @@ -23,15 +23,15 @@ type Dnsparameter struct { /** * Maximum number of retry attempts when no response is received for a query sent to a name server. Applies to end resolver and forwarder configurations. */ - Retries uint32 `json:"retries,omitempty"` + Retries int `json:"retries,omitempty"` /** * Minimum permissible time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is lower than the value configured for minTTL, the TTL of the record is set to the value of minTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. */ - Minttl uint64 `json:"minttl,omitempty"` + Minttl int `json:"minttl,omitempty"` /** * Maximum time to live (TTL) for all records cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxTTL, the TTL of the record is set to the value of maxTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. */ - Maxttl uint64 `json:"maxttl,omitempty"` + Maxttl int `json:"maxttl,omitempty"` /** * Cache resource records in the DNS cache. Applies to resource records obtained through proxy configurations only. End resolver and forwarder configurations always cache records in the DNS cache, and you cannot disable this behavior. When you disable record caching, the appliance stops caching server responses. However, cached records are not flushed. The appliance does not serve requests from the cache until record caching is enabled again. */ @@ -59,7 +59,7 @@ type Dnsparameter struct { /** * Maximum number of concurrent DNS requests to allow on a single client connection, which is identified by the - tuple. A value of 0 (zero) applies no limit to the number of concurrent DNS requests allowed on a single client connection. */ - Maxpipeline uint32 `json:"maxpipeline,omitempty"` + Maxpipeline int `json:"maxpipeline,omitempty"` /** * Send a root referral if a client queries a domain name that is unrelated to the domains configured/cached on the Citrix ADC. If the setting is disabled, the appliance sends a blank response instead of a root referral. Applicable to domains for which the appliance is authoritative. Disable the parameter when the appliance is under attack from a client that is sending a flood of queries for unrelated domains. */ @@ -67,15 +67,15 @@ type Dnsparameter struct { /** * While doing DNS64 resolution, this parameter specifies the time to wait before sending an A query if no response is received from backend DNS server for AAAA query. */ - Dns64timeout uint32 `json:"dns64timeout,omitempty"` + Dns64timeout int `json:"dns64timeout,omitempty"` /** * Maximum number of subnets that can be cached corresponding to a single domain. Subnet caching will occur for responses with EDNS Client Subnet (ECS) option. Caching of such responses can be disabled using DNS profile settings. A value of zero indicates that the number of subnets cached is limited only by existing memory constraints. The default value is zero. */ - Ecsmaxsubnets uint32 `json:"ecsmaxsubnets,omitempty"` + Ecsmaxsubnets int `json:"ecsmaxsubnets,omitempty"` /** * Maximum time to live (TTL) for all negative records ( NXDONAIN and NODATA ) cached in the DNS cache by DNS proxy, end resolver, and forwarder configurations. If the TTL of a record that is to be cached is higher than the value configured for maxnegcacheTTL, the TTL of the record is set to the value of maxnegcacheTTL before caching. When you modify this setting, the new value is applied only to those records that are cached after the modification. The TTL values of existing records are not changed. */ - Maxnegcachettl uint64 `json:"maxnegcachettl,omitempty"` + Maxnegcachettl int `json:"maxnegcachettl,omitempty"` /** * This parameter is applicable only in proxy mode and if this parameter is enabled we will forward all the client requests to the backend DNS server and the response served will be cached on Citrix ADC */ @@ -83,11 +83,11 @@ type Dnsparameter struct { /** * Maximum memory, in megabytes, that can be used for dns caching per Packet Engine. */ - Maxcachesize uint64 `json:"maxcachesize,omitempty"` + Maxcachesize int `json:"maxcachesize,omitempty"` /** * Maximum memory, in megabytes, that can be used for caching of negative DNS responses per packet engine. */ - Maxnegativecachesize uint64 `json:"maxnegativecachesize,omitempty"` + Maxnegativecachesize int `json:"maxnegativecachesize,omitempty"` /** * If this flag is set to YES, the existing entries in cache do not age out. On reaching the max limit the cache records are frozen */ @@ -103,11 +103,11 @@ type Dnsparameter struct { /** * Maximum UDP packet size that can be handled by Citrix ADC. This is the value advertised by Citrix ADC when responding as an authoritative server and it is also used when Citrix ADC queries other name servers as a forwarder. When acting as a proxy, requests from clients are limited by this parameter - if a request contains a size greater than this value in the OPT record, it will be replaced. */ - Maxudppacketsize uint32 `json:"maxudppacketsize,omitempty"` + Maxudppacketsize int `json:"maxudppacketsize,omitempty"` /** * Rate limit threshold for Non-Existant domain (NXDOMAIN) responses generated from Citrix ADC. Once the threshold is breached , DNS queries leading to NXDOMAIN response will be dropped. This threshold will not be applied for NXDOMAIN responses got from the backend. The threshold will be applied per packet engine and per second. */ - Nxdomainratelimitthreshold uint32 `json:"nxdomainratelimitthreshold,omitempty"` + Nxdomainratelimitthreshold int `json:"nxdomainratelimitthreshold,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_lbvserver_binding.go new file mode 100644 index 000000000..04515ed5c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy64_lbvserver_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the lbvserver that can be bound to dnspolicy64. +*/ +type Dnspolicy64lbvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name of the DNS64 policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnsglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnsglobal_binding.go new file mode 100644 index 000000000..f753baa30 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnsglobal_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnsglobal that can be bound to dnspolicy. +*/ +type Dnspolicydnsglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the DNS policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnspolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnspolicylabel_binding.go new file mode 100644 index 000000000..fb9627bb8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicy_dnspolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnspolicylabel that can be bound to dnspolicy. +*/ +type Dnspolicydnspolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the DNS policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_dnspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_dnspolicy_binding.go new file mode 100644 index 000000000..14e290e5e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_dnspolicy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnspolicy that can be bound to dnspolicylabel. +*/ +type Dnspolicylabeldnspolicybinding struct { + /** + * The dns policy name. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the dns policy label. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go index 4a3fe71d1..c9ab76737 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnspolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Dnspolicylabelpolicybindingbinding struct { /** * Specifies the priority of the policy. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go index 427eb52b3..b3b9b2cd9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsptrrec.go @@ -31,7 +31,7 @@ type Dnsptrrec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached PTR record need to be removed. */ @@ -46,7 +46,7 @@ type Dnsptrrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go index 64f978783..7997ca222 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssoarec.go @@ -35,27 +35,27 @@ type Dnssoarec struct { /** * The secondary server uses this parameter to determine whether it requires a zone transfer from the primary server. */ - Serial uint32 `json:"serial,omitempty"` + Serial int `json:"serial,omitempty"` /** * Time, in seconds, for which a secondary server must wait between successive checks on the value of the serial number. */ - Refresh uint64 `json:"refresh,omitempty"` + Refresh int `json:"refresh,omitempty"` /** * Time, in seconds, between retries if a secondary server's attempt to contact the primary server for a zone refresh fails. */ - Retry uint64 `json:"retry,omitempty"` + Retry int `json:"retry,omitempty"` /** * Time, in seconds, after which the zone data on a secondary name server can no longer be considered authoritative because all refresh and retry attempts made during the period have failed. After the expiry period, the secondary server stops serving the zone. Typically one week. Not used by the primary server. */ - Expire uint64 `json:"expire,omitempty"` + Expire int `json:"expire,omitempty"` /** * Default time to live (TTL) for all records in the zone. Can be overridden for individual records. */ - Minimum uint64 `json:"minimum,omitempty"` + Minimum int `json:"minimum,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached SOA record need to be removed. */ @@ -70,7 +70,7 @@ type Dnssoarec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go index 430ed6877..e9b968cff 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssrvrec.go @@ -31,19 +31,19 @@ type Dnssrvrec struct { /** * Integer specifying the priority of the target host. The lower the number, the higher the priority. If multiple target hosts have the same priority, selection is based on the Weight parameter. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Weight for the target host. Aids host selection when two or more hosts have the same priority. A larger number indicates greater weight. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Port on which the target host listens for client requests. */ - Port uint32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Subnet for which the cached SRV record need to be removed. */ @@ -58,7 +58,7 @@ type Dnssrvrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go index 1900e4b26..facc84cf1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnssubnetcache.go @@ -31,7 +31,7 @@ type Dnssubnetcache struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go index 13113df9e..724a5833a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnstxtrec.go @@ -31,11 +31,11 @@ type Dnstxtrec struct { /** * Time to Live (TTL), in seconds, for the record. TTL is the time for which the record must be cached by DNS proxies. The specified TTL is applied to all the resource records that are of the same record type and belong to the specified domain name. For example, if you add an address record, with a TTL of 36000, to the domain name example.com, the TTLs of all the address records of example.com are changed to 36000. If the TTL is not specified, the Citrix ADC uses either the DNS zone's minimum TTL or, if the SOA record is not available on the appliance, the default value of 3600. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * Unique, internally generated record ID. View the details of the TXT record to obtain its record ID. Mutually exclusive with the string parameter. */ - Recordid uint32 `json:"recordid,omitempty"` + Recordid int `json:"recordid,omitempty"` /** * Subnet for which the cached TXT record need to be removed. */ @@ -50,7 +50,7 @@ type Dnstxtrec struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_dnspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_dnspolicy_binding.go new file mode 100644 index 000000000..5dbe22819 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_dnspolicy_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnspolicy that can be bound to dnsview. +*/ +type Dnsviewdnspolicybinding struct { + /** + * dnspolicy name of this view. + */ + Dnspolicyname string `json:"dnspolicyname,omitempty"` + /** + * Name of the view to display. + */ + Viewname string `json:"viewname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_gslbservice_binding.go new file mode 100644 index 000000000..6ce0c939c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnsview_gslbservice_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the gslbservice that can be bound to dnsview. +*/ +type Dnsviewgslbservicebinding struct { + /** + * Service name of the service using this view. + */ + Gslbservicename string `json:"gslbservicename,omitempty"` + /** + * IP of the service corresponding to the given view. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the view to display. + */ + Viewname string `json:"viewname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_dnskey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_dnskey_binding.go new file mode 100644 index 000000000..3efbcdcd7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/dns/dnszone_dnskey_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package dns + +/** +* Binding class showing the dnskey that can be bound to dnszone. +*/ +type Dnszonednskeybinding struct { + /** + * Name of the public/private DNS key pair with which to sign the zone. You can sign a zone with up to four keys. + */ + Keyname []string `json:"keyname,omitempty"` + /** + * The time when sign was done with this key. + */ + Siginceptiontime []int `json:"siginceptiontime,omitempty"` + /** + * Integer which denote status of keys. + */ + Signed int `json:"signed,omitempty"` + /** + * Time period for which to consider the key valid, after the key is used to sign a zone. + */ + Expires int `json:"expires,omitempty"` + /** + * Name of the zone. Mutually exclusive with the type parameter. + */ + Zonename string `json:"zonename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go index 59e120b6b..e0dbd9a00 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filteraction.go @@ -46,7 +46,7 @@ type Filteraction struct { /** * Response code to be returned for HTTP requests (for use with the ERRORCODE qualifier). */ - Respcode uint32 `json:"respcode,omitempty"` + Respcode int `json:"respcode,omitempty"` /** * HTML page to return for HTTP requests (For use with the ERRORCODE qualifier). */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_filterpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_filterpolicy_binding.go new file mode 100644 index 000000000..1f94d4702 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterglobal_filterpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the filterpolicy that can be bound to filterglobal. +*/ +type Filterglobalfilterpolicybinding struct { + /** + * The name of the filter policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * State of the binding. + */ + State string `json:"state,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go index b88bfbf41..4eabc5e89 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterhtmlinjectionparameter.go @@ -23,11 +23,11 @@ type Filterhtmlinjectionparameter struct { /** * For a rate of x, HTML injection is done for 1 out of x policy matches. */ - Rate uint32 `json:"rate,omitempty"` + Rate int `json:"rate,omitempty"` /** * For a frequency of x, HTML injection is done at least once per x milliseconds. */ - Frequency uint32 `json:"frequency,omitempty"` + Frequency int `json:"frequency,omitempty"` /** * Searching for tag. If this parameter is enabled, HTML injection does not insert the prebody or postbody content unless the tag is found. */ @@ -35,7 +35,7 @@ type Filterhtmlinjectionparameter struct { /** * Number of characters, in the HTTP body, in which to search for the tag if strict mode is set. */ - Htmlsearchlen uint32 `json:"htmlsearchlen,omitempty"` + Htmlsearchlen int `json:"htmlsearchlen,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_crvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_crvserver_binding.go new file mode 100644 index 000000000..b1271aa8f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_crvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the crvserver that can be bound to filterpolicy. +*/ +type Filterpolicycrvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_csvserver_binding.go new file mode 100644 index 000000000..e036f42ca --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_csvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the csvserver that can be bound to filterpolicy. +*/ +type Filterpolicycsvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_filterglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_filterglobal_binding.go new file mode 100644 index 000000000..f6f846650 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_filterglobal_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the filterglobal that can be bound to filterpolicy. +*/ +type Filterpolicyfilterglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_lbvserver_binding.go new file mode 100644 index 000000000..18da597db --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/filter/filterpolicy_lbvserver_binding.go @@ -0,0 +1,35 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package filter + +/** +* Binding class showing the lbvserver that can be bound to filterpolicy. +*/ +type Filterpolicylbvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Name of the filter policy to be displayed. If a name is not provided, information about all the filter policies is shown. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservice_binding.go new file mode 100644 index 000000000..a7d69e086 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservice_binding.go @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservice that can be bound to gslbdomain. +*/ +type Gslbdomaingslbservicebinding struct { + /** + * The service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + Vservername string `json:"vservername,omitempty"` + /** + * The Ip address of the service + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port Number + */ + Port int `json:"port,omitempty"` + /** + * The state of the vserver + */ + State string `json:"state,omitempty"` + /** + * weight assigned + */ + Weight int `json:"weight,omitempty"` + /** + * dynamic weight + */ + Dynamicconfwt int `json:"dynamicconfwt,omitempty"` + /** + * cumlative weight + */ + Cumulativeweight int `json:"cumulativeweight,omitempty"` + /** + * GSLB server state + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * The threshold value of the service + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + /** + * The cname of the gslb service + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go new file mode 100644 index 000000000..d1c071f1b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroup that can be bound to gslbdomain. +*/ +type Gslbdomaingslbservicegroupbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go new file mode 100644 index 000000000..a7611a1e1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbservicegroupmember_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroupmember that can be bound to gslbdomain. +*/ +type Gslbdomaingslbservicegroupmemberbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The Ip address of the service + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port Number + */ + Port int `json:"port,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * weight assigned + */ + Weight int `json:"weight,omitempty"` + /** + * GSLB server state + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * The threshold value of the service + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbvserver_binding.go new file mode 100644 index 000000000..82a9d3f8e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_gslbvserver_binding.go @@ -0,0 +1,107 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbvserver that can be bound to gslbdomain. +*/ +type Gslbdomaingslbvserverbinding struct { + Vservername string `json:"vservername,omitempty"` + /** + * The type GSLB service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The state of the vserver + */ + State string `json:"state,omitempty"` + /** + * The load balancing method set for the virtual server + */ + Lbmethod string `json:"lbmethod,omitempty"` + /** + * The IP type for this GSLB vserver. + */ + Dnsrecordtype string `json:"dnsrecordtype,omitempty"` + /** + * Indicates the backup method in case the primary fails + */ + Backuplbmethod string `json:"backuplbmethod,omitempty"` + /** + * Indicates if persistence is set on the gslb vserver + */ + Persistencetype string `json:"persistencetype,omitempty"` + /** + * Send clients an empty DNS response when the GSLB virtual server is DOWN. + */ + Edr string `json:"edr,omitempty"` + Mir string `json:"mir,omitempty"` + /** + * Dynamic weight method of the vserver + */ + Dynamicweight string `json:"dynamicweight,omitempty"` + /** + * Time since last state change + */ + Statechangetimesec string `json:"statechangetimesec,omitempty"` + /** + * Indicates if Client IP option is enabled + */ + Cip string `json:"cip,omitempty"` + /** + * Persistence id of the gslb vserver + */ + Persistenceid int `json:"persistenceid,omitempty"` + /** + * Netmask + */ + Netmask string `json:"netmask,omitempty"` + /** + * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. + */ + V6netmasklen int `json:"v6netmasklen,omitempty"` + /** + * Name of the site to which the service belongs. + */ + Sitename string `json:"sitename,omitempty"` + /** + * Indicates the type of cookie persistence set + */ + Sitepersistence string `json:"sitepersistence,omitempty"` + /** + * The site prefix string. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. + */ + Customheaders string `json:"customheaders,omitempty"` + /** + * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. + */ + Persistmask string `json:"persistmask,omitempty"` + /** + * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. + */ + V6persistmasklen int `json:"v6persistmasklen,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_lbmonitor_binding.go new file mode 100644 index 000000000..704ef136b --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbdomain_lbmonitor_binding.go @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the lbmonitor that can be bound to gslbdomain. +*/ +type Gslbdomainlbmonitorbinding struct { + /** + * Monitor name + */ + Monitorname string `json:"monitorname,omitempty"` + /** + * The service name. + */ + Servicename string `json:"servicename,omitempty"` + Vservername string `json:"vservername,omitempty"` + /** + * Monitor state + */ + Monstate string `json:"monstate,omitempty"` + /** + * HTTP request to the backend server + */ + Httprequest string `json:"httprequest,omitempty"` + /** + * The state of the monitor for tunneled devices. + */ + Iptunnel string `json:"iptunnel,omitempty"` + /** + * The string that is sent to the service. Applicable to HTTP ,HTTP-ECV and RTSP monitor types. + */ + Customheaders string `json:"customheaders,omitempty"` + /** + * The response codes. + */ + Respcode string `json:"respcode,omitempty"` + /** + * Total monitor probes + */ + Monitortotalprobes int `json:"monitortotalprobes,omitempty"` + /** + * Total probes failed + */ + Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of current failed probes + */ + Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime int `json:"responsetime,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int `json:"monstatcode,omitempty"` + /** + * The string form of monstatcode. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Name of the Domain + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go index de418a9a8..1867364f4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbldnsentries.go @@ -23,7 +23,7 @@ type Gslbldnsentries struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go index 2490d1fad..847fa91c4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbparameter.go @@ -23,11 +23,11 @@ type Gslbparameter struct { /** * Time, in seconds, after which an inactive LDNS entry is removed. */ - Ldnsentrytimeout uint64 `json:"ldnsentrytimeout,omitempty"` + Ldnsentrytimeout int `json:"ldnsentrytimeout,omitempty"` /** * Tolerance, in milliseconds, for newly learned round-trip time (RTT) values. If the difference between the old RTT value and the newly computed RTT value is less than or equal to the specified tolerance value, the LDNS entry in the network metric table is not updated with the new RTT value. Prevents the exchange of metrics when variations in RTT values are negligible. */ - Rtttolerance uint32 `json:"rtttolerance,omitempty"` + Rtttolerance int `json:"rtttolerance,omitempty"` /** * The IPv4 network mask with which to create LDNS entries. */ @@ -35,7 +35,7 @@ type Gslbparameter struct { /** * Mask for creating LDNS entries for IPv6 source addresses. The mask is defined as the number of leading bits to consider, in the source IP address, when creating an LDNS entry. */ - V6ldnsmasklen uint32 `json:"v6ldnsmasklen,omitempty"` + V6ldnsmasklen int `json:"v6ldnsmasklen,omitempty"` /** * Order in which monitors should be initiated to calculate RTT. */ @@ -48,11 +48,11 @@ type Gslbparameter struct { * Amount of delay in updating the state of GSLB service to DOWN when MEP goes down. This parameter is applicable only if monitors are not bound to GSLB services */ - Gslbsvcstatedelaytime uint64 `json:"gslbsvcstatedelaytime,omitempty"` + Gslbsvcstatedelaytime int `json:"gslbsvcstatedelaytime,omitempty"` /** * Time (in seconds) within which local or child site services remain in learning phase. GSLB site will enter the learning phase after reboot, HA failover, Cluster GSLB owner node changes or MEP being enabled on local node. Backup parent (if configured) will selectively move the adopted children's GSLB services to learning phase when primary parent goes down. While a service is in learning period, remote site will not honour the state and stats got through MEP for that service. State can be learnt from health monitor if bound explicitly. */ - Svcstatelearningtime uint64 `json:"svcstatelearningtime,omitempty"` + Svcstatelearningtime int `json:"svcstatelearningtime,omitempty"` /** * GSLB configuration will be synced automatically to remote gslb sites if enabled. */ @@ -60,11 +60,11 @@ type Gslbparameter struct { /** * Time duartion (in seconds) during which if no new packets received by Local gslb site from Remote gslb site then mark the MEP connection DOWN */ - Mepkeepalivetimeout uint64 `json:"mepkeepalivetimeout,omitempty"` + Mepkeepalivetimeout int `json:"mepkeepalivetimeout,omitempty"` /** * Time duartion (in seconds) for which the gslb sync process will wait before checking for config changes. */ - Gslbsyncinterval uint64 `json:"gslbsyncinterval,omitempty"` + Gslbsyncinterval int `json:"gslbsyncinterval,omitempty"` /** * Mode in which configuration will be synced from master site to remote sites. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go index 1044ebbce..cf39f89d3 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice.go @@ -44,7 +44,7 @@ type Gslbservice struct { /** * Port on which the load balancing entity represented by this GSLB service listens. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. */ @@ -52,11 +52,11 @@ type Gslbservice struct { /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. */ - Publicport int32 `json:"publicport,omitempty"` + Publicport int `json:"publicport,omitempty"` /** * The maximum number of open connections that the service can support at any given time. A GSLB service whose connection count reaches the maximum is not considered when a GSLB decision is made, until the connection count drops below the maximum. */ - Maxclient uint32 `json:"maxclient,omitempty"` + Maxclient int `json:"maxclient,omitempty"` /** * Monitor the health of the GSLB service. */ @@ -84,7 +84,7 @@ type Gslbservice struct { /** * Timeout value, in minutes, for the cookie, when cookie based site persistence is enabled. */ - Cookietimeout uint32 `json:"cookietimeout,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` /** * The site's prefix string. When the service is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound service-domain pair by concatenating the site prefix of the service and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. */ @@ -92,15 +92,15 @@ type Gslbservice struct { /** * Idle time, in seconds, after which a client connection is terminated. Applicable if connection proxy based site persistence is used. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Idle time, in seconds, after which a server connection is terminated. Applicable if connection proxy based site persistence is used. */ - Svrtimeout uint64 `json:"svrtimeout,omitempty"` + Svrtimeout int `json:"svrtimeout,omitempty"` /** * Integer specifying the maximum bandwidth allowed for the service. A GSLB service whose bandwidth reaches the maximum is not considered when a GSLB decision is made, until its bandwidth consumption drops below the maximum. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Flush all active transactions associated with the GSLB service when its state transitions from UP to DOWN. Do not enable this option for services that must complete their transactions. Applicable if connection proxy based site persistence is used. */ @@ -108,15 +108,15 @@ type Gslbservice struct { /** * Maximum number of SSL VPN users that can be logged on concurrently to the VPN virtual server that is represented by this GSLB service. A GSLB service whose user count reaches the maximum is not considered when a GSLB decision is made, until the count drops below the maximum. */ - Maxaaausers uint32 `json:"maxaaausers,omitempty"` + Maxaaausers int `json:"maxaaausers,omitempty"` /** * Monitoring threshold value for the GSLB service. If the sum of the weights of the monitors that are bound to this GSLB service and are in the UP state is not equal to or greater than this threshold value, the service is marked as DOWN. */ - Monthreshold uint32 `json:"monthreshold,omitempty"` + Monthreshold int `json:"monthreshold,omitempty"` /** * Unique hash identifier for the GSLB service, used by hash based load balancing methods. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * Any comments that you might want to associate with the GSLB service. */ @@ -132,7 +132,7 @@ type Gslbservice struct { /** * An integer specifying the order in which the NAPTR records MUST be processed in order to accurately represent the ordered list of Rules. The ordering is from lowest to highest */ - Naptrorder uint32 `json:"naptrorder,omitempty"` + Naptrorder int `json:"naptrorder,omitempty"` /** * Service Parameters applicable to this delegation path. */ @@ -140,11 +140,11 @@ type Gslbservice struct { /** * Modify the TTL of the internally created naptr domain */ - Naptrdomainttl uint64 `json:"naptrdomainttl,omitempty"` + Naptrdomainttl int `json:"naptrdomainttl,omitempty"` /** * An integer specifying the preference of this NAPTR among NAPTR records having same order. lower the number, higher the preference. */ - Naptrpreference uint32 `json:"naptrpreference,omitempty"` + Naptrpreference int `json:"naptrpreference,omitempty"` /** * The new IP address of the service. */ @@ -160,7 +160,7 @@ type Gslbservice struct { /** * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Name of the monitor to bind to the service. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_dnsview_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_dnsview_binding.go new file mode 100644 index 000000000..613043ef9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_dnsview_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the dnsview that can be bound to gslbservice. +*/ +type Gslbservicednsviewbinding struct { + /** + * Name of the DNS view of the service. A DNS view is used in global server load balancing (GSLB) to return a predetermined IP address to a specific group of clients, which are identified by using a DNS policy. + */ + Viewname string `json:"viewname,omitempty"` + /** + * IP address to be used for the given view + */ + Viewip string `json:"viewip,omitempty"` + /** + * Name of the GSLB service. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_lbmonitor_binding.go new file mode 100644 index 000000000..15ac71a2a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservice_lbmonitor_binding.go @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the lbmonitor that can be bound to gslbservice. +*/ +type Gslbservicelbmonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * State of the monitor bound to gslb service. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The running state of the monitor on this service. + */ + Monitorstate string `json:"monitor_state,omitempty"` + /** + * Weight to assign to the monitor-service binding. A larger number specifies a greater weight. Contributes to the monitoring threshold, which determines the state of the service. + */ + Weight int `json:"weight,omitempty"` + /** + * The total number of failed probs. + */ + Totalfailedprobes int `json:"totalfailedprobes,omitempty"` + /** + * Number of the current failed monitoring probes. + */ + Failedprobes int `json:"failedprobes,omitempty"` + /** + * The code indicating the monitor response. + */ + Monstatcode int `json:"monstatcode,omitempty"` + /** + * First parameter for use with message code. + */ + Monstatparam1 int `json:"monstatparam1,omitempty"` + /** + * Second parameter for use with message code. + */ + Monstatparam2 int `json:"monstatparam2,omitempty"` + /** + * Third parameter for use with message code. + */ + Monstatparam3 int `json:"monstatparam3,omitempty"` + /** + * Response time of this monitor. + */ + Responsetime int `json:"responsetime,omitempty"` + /** + * Total number of probes sent to monitor this service. + */ + Monitortotalprobes int `json:"monitortotalprobes,omitempty"` + /** + * Total number of failed probes + */ + Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` + /** + * Total number of currently failed probes + */ + Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` + /** + * Displays the gslb monitor status in string format. + */ + Lastresponse string `json:"lastresponse,omitempty"` + /** + * Name of the GSLB service. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go index b0ebbbce8..871dd393a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup.go @@ -31,7 +31,7 @@ type Gslbservicegroup struct { /** * Maximum number of simultaneous open connections for the GSLB service group. */ - Maxclient uint32 `json:"maxclient,omitempty"` + Maxclient int `json:"maxclient,omitempty"` /** * Insert the Client IP header in requests forwarded to the GSLB service. */ @@ -49,19 +49,19 @@ type Gslbservicegroup struct { /** * Time, in seconds, after which to terminate an idle client connection. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Time, in seconds, after which to terminate an idle server connection. */ - Svrtimeout uint64 `json:"svrtimeout,omitempty"` + Svrtimeout int `json:"svrtimeout,omitempty"` /** * Maximum bandwidth, in Kbps, allocated for all the services in the GSLB service group. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Minimum sum of weights of the monitors that are bound to this GSLB service. Used to determine whether to mark a GSLB service as UP or DOWN. */ - Monthreshold uint32 `json:"monthreshold,omitempty"` + Monthreshold int `json:"monthreshold,omitempty"` /** * Initial state of the GSLB service group. */ @@ -97,15 +97,15 @@ type Gslbservicegroup struct { /** * Server port number. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. */ @@ -113,7 +113,7 @@ type Gslbservicegroup struct { /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. */ - Publicport int32 `json:"publicport,omitempty"` + Publicport int `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. */ @@ -125,11 +125,11 @@ type Gslbservicegroup struct { /** * weight of the monitor that is bound to GSLB servicegroup. */ - Dupweight uint32 `json:"dup_weight,omitempty"` + Dupweight int `json:"dup_weight,omitempty"` /** * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. */ - Delay uint64 `json:"delay,omitempty"` + Delay int `json:"delay,omitempty"` /** * Wait for all existing connections to the service to terminate before shutting down the service. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go new file mode 100644 index 000000000..9b1be3d86 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_gslbservicegroupmember_binding.go @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroupmember that can be bound to gslbservicegroup. +*/ +type Gslbservicegroupgslbservicegroupmemberbinding struct { + /** + * IP Address. + */ + Ip string `json:"ip,omitempty"` + /** + * Server port number. + */ + Port int `json:"port,omitempty"` + /** + * The state of the GSLB service + */ + Svrstate string `json:"svrstate,omitempty"` + /** + * Time when last state change occurred. Seconds part. + */ + Statechangetimesec string `json:"statechangetimesec,omitempty"` + /** + * Time in 10 millisecond ticks since the last state change. + */ + Tickssincelaststatechange int `json:"tickssincelaststatechange,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight int `json:"weight,omitempty"` + /** + * Name of the server to which to bind the service group. + */ + Servername string `json:"servername,omitempty"` + /** + * Initial state of the GSLB service group. + */ + State string `json:"state,omitempty"` + /** + * The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods. + */ + Hashid int `json:"hashid,omitempty"` + /** + * Wait for all existing connections to the service to terminate before shutting down the service. + */ + Graceful string `json:"graceful,omitempty"` + /** + * The time allowed (in seconds) for a graceful shutdown. During this period, new connections or requests will continue to be sent to this service for clients who already have a persistent session on the system. Connections or requests from fresh or new clients who do not yet have a persistence sessions on the system will not be sent to the service. Instead, they will be load balanced among other available services. After the delay time expires, no new requests or connections will be sent to the service. + */ + Delay int `json:"delay,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int `json:"publicport,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + Threshold string `json:"threshold,omitempty"` + /** + * Prefered location. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + /** + * Name of the GSLB service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go new file mode 100644 index 000000000..d6a4c891d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_lbmonitor_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the lbmonitor that can be bound to gslbservicegroup. +*/ +type Gslbservicegrouplbmonitorbinding struct { + /** + * Monitor name. + */ + Monitorname string `json:"monitor_name,omitempty"` + /** + * weight of the monitor that is bound to GSLB servicegroup. + */ + Monweight int `json:"monweight,omitempty"` + /** + * Monitor state. + */ + Monstate string `json:"monstate,omitempty"` + /** + * Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service. + */ + Weight int `json:"weight,omitempty"` + /** + * Indicates if load monitor is passive. A passive load monitor does not remove service from LB decision when threshold is breached. + */ + Passive bool `json:"passive,omitempty"` + /** + * Name of the GSLB service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Port number of the GSLB service. Each service must have a unique port number. + */ + Port int `json:"port,omitempty"` + /** + * Initial state of the service after binding. + */ + State string `json:"state,omitempty"` + /** + * Unique numerical identifier used by hash based load balancing methods to identify a service. + */ + Hashid int `json:"hashid,omitempty"` + /** + * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. + */ + Publicip string `json:"publicip,omitempty"` + /** + * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. + */ + Publicport int `json:"publicport,omitempty"` + /** + * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. + */ + Siteprefix string `json:"siteprefix,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go index 510a2eb93..c5e1ae1d0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbservicegroup_servicegroupentitymonbindings_binding.go @@ -36,15 +36,15 @@ type Gslbservicegroupservicegroupentitymonbindingsbinding struct { /** * Total number of probes sent to monitor this service. */ - Monitortotalprobes uint32 `json:"monitortotalprobes,omitempty"` + Monitortotalprobes int `json:"monitortotalprobes,omitempty"` /** * Total number of failed probes */ - Monitortotalfailedprobes uint32 `json:"monitortotalfailedprobes,omitempty"` + Monitortotalfailedprobes int `json:"monitortotalfailedprobes,omitempty"` /** * Total number of currently failed probes */ - Monitorcurrentfailedprobes uint32 `json:"monitorcurrentfailedprobes,omitempty"` + Monitorcurrentfailedprobes int `json:"monitorcurrentfailedprobes,omitempty"` /** * The string form of monstatcode. */ @@ -56,11 +56,11 @@ type Gslbservicegroupservicegroupentitymonbindingsbinding struct { /** * Port number of the GSLB service. Each service must have a unique port number. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * When used along with monitor name, it specifies the weight of the monitor binding. When used along with servername & port pair, it specifies the weight of this GSLB service . */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Initial state of the service after binding. */ @@ -68,7 +68,7 @@ type Gslbservicegroupservicegroupentitymonbindingsbinding struct { /** * Unique numerical identifier used by hash based load balancing methods to identify a service. */ - Hashid uint32 `json:"hashid,omitempty"` + Hashid int `json:"hashid,omitempty"` /** * The public IP address that a NAT device translates to the GSLB service's private IP address. Optional. */ @@ -76,7 +76,7 @@ type Gslbservicegroupservicegroupentitymonbindingsbinding struct { /** * The public port associated with the GSLB service's public IP address. The port is mapped to the service's private port number. Applicable to the local GSLB service. Optional. */ - Publicport int32 `json:"publicport,omitempty"` + Publicport int `json:"publicport,omitempty"` /** * The site's prefix string. When the GSLB service group is bound to a GSLB virtual server, a GSLB site domain is generated internally for each bound serviceitem-domain pair by concatenating the site prefix of the service item and the name of the domain. If the special string NONE is specified, the site-prefix string is unset. When implementing HTTP redirect site persistence, the Citrix ADC redirects GSLB requests to GSLB services by using their site domains. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservice_binding.go new file mode 100644 index 000000000..db7df19cf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservice_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservice that can be bound to gslbsite. +*/ +type Gslbsitegslbservicebinding struct { + /** + * Service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The cname of the gslb service. + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * IP Address of the gslb service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number of the gslb service. + */ + Port int `json:"port,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb service. + */ + State string `json:"state,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroup_binding.go new file mode 100644 index 000000000..79944f93e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroup_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroup that can be bound to gslbsite. +*/ +type Gslbsitegslbservicegroupbinding struct { + /** + * Servicegroup name. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go new file mode 100644 index 000000000..c23d48395 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbsite_gslbservicegroupmember_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroupmember that can be bound to gslbsite. +*/ +type Gslbsitegslbservicegroupmemberbinding struct { + /** + * Servicegroup name. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * IP Address of the gslb service. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number of the gslb service. + */ + Port int `json:"port,omitempty"` + /** + * Service type. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb service. + */ + State string `json:"state,omitempty"` + /** + * Name of the GSLB site. If you specify a site name, details of all the site's constituent services are also displayed. + */ + Sitename string `json:"sitename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go index 3de055a4c..162841d13 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver.go @@ -45,7 +45,7 @@ type Gslbvserver struct { /** * A non zero value enables the feature whose minimum value is 2 minutes. The feature can be disabled by setting the value to zero. The created session is in effect for a specific client per domain. */ - Backupsessiontimeout uint32 `json:"backupsessiontimeout,omitempty"` + Backupsessiontimeout int `json:"backupsessiontimeout,omitempty"` /** * Backup load balancing method. Becomes operational if the primary load balancing method fails or cannot be used. Valid only if the primary method is based on either round-trip time (RTT) or static proximity. */ @@ -57,7 +57,7 @@ type Gslbvserver struct { /** * Number of bits to consider, in an IPv6 source IP address, for creating the hash that is required by the SOURCEIPHASH load balancing method. */ - V6netmasklen uint32 `json:"v6netmasklen,omitempty"` + V6netmasklen int `json:"v6netmasklen,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. This field is applicable only if gslb method or gslb backup method are set to API. @@ -70,7 +70,7 @@ type Gslbvserver struct { /** * Site selection tolerance, in milliseconds, for implementing the RTT load balancing method. If a site's RTT deviates from the lowest RTT by more than the specified tolerance, the site is not considered when the Citrix ADC makes a GSLB decision. The appliance implements the round robin method of global server load balancing between sites whose RTT values are within the specified tolerance. If the tolerance is 0 (zero), the appliance always sends clients the IP address of the site with the lowest RTT. */ - Tolerance uint32 `json:"tolerance,omitempty"` + Tolerance int `json:"tolerance,omitempty"` /** * Use source IP address based persistence for the virtual server. After the load balancing method selects a service for the first packet, the IP address received in response to the DNS query is used for subsequent requests from the same client. @@ -79,7 +79,7 @@ type Gslbvserver struct { /** * The persistence ID for the GSLB virtual server. The ID is a positive integer that enables GSLB sites to identify the GSLB virtual server, and is required if source IP address based or spill over based persistence is enabled on the virtual server. */ - Persistenceid uint32 `json:"persistenceid,omitempty"` + Persistenceid int `json:"persistenceid,omitempty"` /** * The optional IPv4 network mask applied to IPv4 addresses to establish source IP address based persistence. */ @@ -87,11 +87,11 @@ type Gslbvserver struct { /** * Number of bits to consider in an IPv6 source IP address when creating source IP address based persistence sessions. */ - V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Idle time, in minutes, after which a persistence entry is cleared. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Send clients an empty DNS response when the GSLB virtual server is DOWN. */ @@ -145,11 +145,11 @@ type Gslbvserver struct { /** * Timeout for spillover persistence, in minutes. */ - Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). */ - Sothreshold uint32 `json:"sothreshold,omitempty"` + Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists */ @@ -169,7 +169,7 @@ type Gslbvserver struct { /** * Weight to assign to the GSLB service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Domain name for which to change the time to live (TTL) and/or backup service IP address. */ @@ -177,7 +177,7 @@ type Gslbvserver struct { /** * Time to live (TTL) for the domain. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. */ @@ -189,11 +189,11 @@ type Gslbvserver struct { /** * Timeout, in minutes, for the GSLB site cookie. */ - Cookietimeout uint32 `json:"cookietimeout,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` /** * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. */ - Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * New name for the GSLB virtual server. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go index 51f8f0b44..f558a3638 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_domain_binding.go @@ -27,7 +27,7 @@ type Gslbvserverdomainbinding struct { /** * Time to live (TTL) for the domain. */ - Ttl uint64 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * The IP address of the backup service for the specified domain name. Used when all the services bound to the domain are down, or when the backup chain of virtual servers is down. */ @@ -39,11 +39,11 @@ type Gslbvserverdomainbinding struct { /** * Timeout, in minutes, for the GSLB site cookie. */ - Cookietimeout uint32 `json:"cookietimeout,omitempty"` + Cookietimeout int `json:"cookietimeout,omitempty"` /** * TTL, in seconds, for all internally created site domains (created when a site prefix is configured on a GSLB service) that are associated with this virtual server. */ - Sitedomainttl uint64 `json:"sitedomainttl,omitempty"` + Sitedomainttl int `json:"sitedomainttl,omitempty"` /** * Name of the virtual server on which to perform the binding operation. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservice_binding.go new file mode 100644 index 000000000..1cb36b10a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservice_binding.go @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservice that can be bound to gslbvserver. +*/ +type Gslbvservergslbservicebinding struct { + /** + * Name of the GSLB service for which to change the weight. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Weight to assign to the GSLB service. + */ + Weight int `json:"weight,omitempty"` + /** + * The cname of the gslb service. + */ + Cnameentry string `json:"cnameentry,omitempty"` + /** + * IP address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number. + */ + Port int `json:"port,omitempty"` + /** + * Protocol used by services bound to the GSLBvirtual server. + */ + Gslbboundsvctype string `json:"gslbboundsvctype,omitempty"` + /** + * State of the gslb vserver. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight obtained by the virtue of bound service count or weight + */ + Dynamicconfwt int `json:"dynamicconfwt,omitempty"` + /** + * Cumulative weight is the weight of GSLB service considering both its configured weight and dynamic weight. It is equal to product of dynamic weight and configured weight of the gslb service + */ + Cumulativeweight int `json:"cumulativeweight,omitempty"` + /** + * Effective state of the gslb svc + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + /** + * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Tells whether threshold exceeded for this service participating in CUSTOMLB + */ + Thresholdvalue int `json:"thresholdvalue,omitempty"` + /** + * is cname feature set on vserver + */ + Iscname string `json:"iscname,omitempty"` + /** + * Domain name for which to change the time to live (TTL) and/or backup service IP address. + */ + Domainname string `json:"domainname,omitempty"` + /** + * This field is introduced for displaying the cookie in cluster setup. + */ + Sitepersistcookie string `json:"sitepersistcookie,omitempty"` + /** + * Type of Site Persistence set on the bound service + */ + Svcsitepersistence string `json:"svcsitepersistence,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go new file mode 100644 index 000000000..503f88cb7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroup that can be bound to gslbvserver. +*/ +type Gslbvservergslbservicegroupbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go new file mode 100644 index 000000000..ed0e4b769 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_gslbservicegroupmember_binding.go @@ -0,0 +1,81 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the gslbservicegroupmember that can be bound to gslbvserver. +*/ +type Gslbvservergslbservicegroupmemberbinding struct { + /** + * The GSLB service group name bound to the selected GSLB virtual server. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * IP address. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Port number. + */ + Port int `json:"port,omitempty"` + /** + * Protocol used by services bound to the virtual server. + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * State of the gslb vserver. + */ + Curstate string `json:"curstate,omitempty"` + /** + * Weight to assign to the GSLB service. + */ + Weight int `json:"weight,omitempty"` + /** + * Specify if the appliance should consider the service count, service weights, or ignore both when using weight-based load balancing methods. The state of the number of services bound to the virtual server help the appliance to select the service. + */ + Dynamicweight string `json:"dynamicweight,omitempty"` + /** + * The target site to be returned in the DNS response when a policy is successfully evaluated against the incoming DNS request. Target site is specified in dotted notation with up to 6 qualifiers. Wildcard `*' is accepted as a valid qualifier token. + */ + Preferredlocation string `json:"preferredlocation,omitempty"` + /** + * Effective state of the gslb svc + */ + Svreffgslbstate string `json:"svreffgslbstate,omitempty"` + /** + * Tells whether threshold exceeded for this service participating in CUSTOMLB + */ + Thresholdvalue int `json:"thresholdvalue,omitempty"` + /** + * Indicates if gslb svc has reached threshold + */ + Gslbthreshold int `json:"gslbthreshold,omitempty"` + /** + * This field is introduced for displaying the cookie in cluster setup. + */ + Sitepersistcookie string `json:"sitepersistcookie,omitempty"` + /** + * Type of Site Persistence set on the bound service + */ + Svcsitepersistence string `json:"svcsitepersistence,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go new file mode 100644 index 000000000..3ae02b014 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/gslb/gslbvserver_spilloverpolicy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package gslb + +/** +* Binding class showing the spilloverpolicy that can be bound to gslbvserver. +*/ +type Gslbvserverspilloverpolicybinding struct { + /** + * Name of the policy bound to the GSLB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + o If gotoPriorityExpression is not present or if it is equal to END then the policy bank evaluation ends here + o Else if the gotoPriorityExpression is equal to NEXT then the next policy in the priority order is evaluated. + o Else gotoPriorityExpression is evaluated. The result of gotoPriorityExpression (which has to be a number) is processed as follows: + - An UNDEF event is triggered if + . gotoPriorityExpression cannot be evaluated + . gotoPriorityExpression evaluates to number which is smaller than the maximum priority in the policy bank but is not same as any policy's priority + . gotoPriorityExpression evaluates to a priority that is smaller than the current policy's priority + - If the gotoPriorityExpression evaluates to the priority of the current policy then the next policy in the priority order is evaluated. + - If the gotoPriorityExpression evaluates to the priority of a policy further ahead in the list then that policy will be evaluated next. + This field is applicable only to rewrite and responder policies. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Type string `json:"type,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the virtual server on which to perform the binding operation. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go index 9518e7d2d..d0c8b9eff 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup.go @@ -39,7 +39,7 @@ type Lbgroup struct { /** * Time period, in minutes, for which backup persistence is in effect. */ - Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Persistence mask to apply to source IPv4 addresses when creating source IP based persistence sessions. */ @@ -51,7 +51,7 @@ type Lbgroup struct { /** * Persistence mask to apply to source IPv6 addresses when creating source IP based persistence sessions. */ - V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Domain attribute for the HTTP cookie. */ @@ -59,7 +59,7 @@ type Lbgroup struct { /** * Time period for which a persistence session is in effect. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Expression, or name of a named expression, against which traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_lbvserver_binding.go new file mode 100644 index 000000000..4f4552b58 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbgroup_lbvserver_binding.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the lbvserver that can be bound to lbgroup. +*/ +type Lbgrouplbvserverbinding struct { + /** + * Virtual server name. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Name for the load balancing virtual server group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my lbgroup" or 'my lbgroup'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go new file mode 100644 index 000000000..e9ebdb6fd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_gslbservicegroup_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the gslbservicegroup that can be bound to lbmonbindings. +*/ +type Lbmonbindingsgslbservicegroupbinding struct { + /** + * The name of the service group. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * The type of service + */ + Servicetype string `json:"servicetype,omitempty"` + /** + * The state of the servicegroup. + */ + Boundservicegroupsvrstate string `json:"boundservicegroupsvrstate,omitempty"` + /** + * The configured state (enable/disable) of Monitor on this service. + */ + Monstate string `json:"monstate,omitempty"` + /** + * The name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go index b9966ad92..995532305 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonbindings_service_binding.go @@ -31,7 +31,7 @@ type Lbmonbindingsservicebinding struct { /** * The port of the service. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The type of service */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go index 555db7fc4..0ca0be882 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor.go @@ -56,7 +56,7 @@ type Lbmonitor struct { /** * Maximum number of hops that the SIP request used for monitoring can traverse to reach the server. Applicable only to monitors of type SIP-UDP. */ - Maxforwards uint32 `json:"maxforwards,omitempty"` + Maxforwards int `json:"maxforwards,omitempty"` /** * SIP method to use for the query. Applicable only to monitors of type SIP-UDP. */ @@ -100,7 +100,7 @@ type Lbmonitor struct { /** * Port number on which the dispatcher listens for the monitoring probe. */ - Dispatcherport int32 `json:"dispatcherport,omitempty"` + Dispatcherport int `json:"dispatcherport,omitempty"` /** * User name with which to probe the RADIUS, NNTP, FTP, FTP-EXTENDED, MYSQL, MSSQL, POP3, CITRIX-AG, CITRIX-XD-DDC, CITRIX-WI-EXTENDED, CITRIX-XNC or CITRIX-XDM server. */ @@ -136,7 +136,7 @@ type Lbmonitor struct { /** * Account Type to be used in Account Request Packet. Applicable to monitors of type RADIUS_ACCOUNTING. */ - Radaccounttype uint32 `json:"radaccounttype,omitempty"` + Radaccounttype int `json:"radaccounttype,omitempty"` /** * Source ip with which the packet will go out . Applicable to monitors of type RADIUS_ACCOUNTING. */ @@ -160,7 +160,7 @@ type Lbmonitor struct { /** * Time value added to the learned average response time in dynamic response time monitoring (DRTM). When a deviation is specified, the appliance learns the average response time of bound services and adds the deviation to the average. The final value is then continually adjusted to accommodate response time variations over time. Specified in milliseconds, seconds, or minutes. */ - Deviation uint32 `json:"deviation,omitempty"` + Deviation int `json:"deviation,omitempty"` /** * Unit of measurement for the Deviation parameter. Cannot be changed after the monitor is created. */ @@ -168,7 +168,7 @@ type Lbmonitor struct { /** * Time interval between two successive probes. Must be greater than the value of Response Time-out. */ - Interval int32 `json:"interval,omitempty"` + Interval int `json:"interval,omitempty"` /** * monitor interval units */ @@ -177,7 +177,7 @@ type Lbmonitor struct { * Amount of time for which the appliance must wait before it marks a probe as FAILED. Must be less than the value specified for the Interval parameter. Note: For UDP-ECV monitors for which a receive string is not configured, response timeout does not apply. For UDP-ECV monitors with no receive string, probe failure is indicated by an ICMP port unreachable error received from the service. */ - Resptimeout int32 `json:"resptimeout,omitempty"` + Resptimeout int `json:"resptimeout,omitempty"` /** * monitor response timeout units */ @@ -185,27 +185,27 @@ type Lbmonitor struct { /** * Response time threshold, specified as a percentage of the Response Time-out parameter. If the response to a monitor probe has not arrived when the threshold is reached, the appliance generates an SNMP trap called monRespTimeoutAboveThresh. After the response time returns to a value below the threshold, the appliance generates a monRespTimeoutBelowThresh SNMP trap. For the traps to be generated, the "MONITOR-RTO-THRESHOLD" alarm must also be enabled. */ - Resptimeoutthresh uint32 `json:"resptimeoutthresh,omitempty"` + Resptimeoutthresh int `json:"resptimeoutthresh,omitempty"` /** * Maximum number of probes to send to establish the state of a service for which a monitoring probe failed. */ - Retries int32 `json:"retries,omitempty"` + Retries int `json:"retries,omitempty"` /** * Number of retries that must fail, out of the number specified for the Retries parameter, for a service to be marked as DOWN. For example, if the Retries parameter is set to 10 and the Failure Retries parameter is set to 6, out of the ten probes sent, at least six probes must fail if the service is to be marked as DOWN. The default value of 0 means that all the retries must fail if the service is to be marked as DOWN. */ - Failureretries int32 `json:"failureretries,omitempty"` + Failureretries int `json:"failureretries,omitempty"` /** * Number of consecutive probe failures after which the appliance generates an SNMP trap called monProbeFailed. */ - Alertretries int32 `json:"alertretries,omitempty"` + Alertretries int `json:"alertretries,omitempty"` /** * Number of consecutive successful probes required to transition a service's state from DOWN to UP. */ - Successretries int32 `json:"successretries,omitempty"` + Successretries int `json:"successretries,omitempty"` /** * Time duration for which to wait before probing a service that has been marked as DOWN. Expressed in milliseconds, seconds, or minutes. */ - Downtime int32 `json:"downtime,omitempty"` + Downtime int `json:"downtime,omitempty"` /** * Unit of measurement for the Down Time parameter. Cannot be changed after the monitor is created. */ @@ -217,7 +217,7 @@ type Lbmonitor struct { /** * TCP or UDP port to which to send the probe. If the parameter is set to 0, the port number of the service to which the monitor is bound is considered the destination port. For a monitor of type USER, however, the destination port is the port number that is included in the HTTP request sent to the dispatcher. Does not apply to monitors of type PING. */ - Destport int32 `json:"destport,omitempty"` + Destport int `json:"destport,omitempty"` /** * State of the monitor. The DISABLED setting disables not only the monitor being configured, but all monitors of the same type, until the parameter is set to ENABLED. If the monitor is bound to a service, the state of the monitor is not taken into account when the state of the service is determined. */ @@ -241,7 +241,7 @@ type Lbmonitor struct { /** * The TOS ID of the specified destination IP. Applicable only when the TOS parameter is set. */ - Tosid uint32 `json:"tosid,omitempty"` + Tosid int `json:"tosid,omitempty"` /** * Use a secure SSL connection when monitoring a service. Applicable only to TCP based monitors. The secure option cannot be used with a CITRIX-AG monitor, because a CITRIX-AG monitor uses a secure connection by default. */ @@ -362,7 +362,7 @@ type Lbmonitor struct { /** * Vendor-Id value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. */ - Vendorid uint32 `json:"vendorid,omitempty"` + Vendorid int `json:"vendorid,omitempty"` /** * Product-Name value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. */ @@ -370,15 +370,15 @@ type Lbmonitor struct { /** * Firmware-Revision value for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. */ - Firmwarerevision uint32 `json:"firmwarerevision,omitempty"` + Firmwarerevision int `json:"firmwarerevision,omitempty"` /** * List of Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring CER message. */ - Authapplicationid []uint32 `json:"authapplicationid,omitempty"` + Authapplicationid []int `json:"authapplicationid,omitempty"` /** * List of Acct-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. */ - Acctapplicationid []uint32 `json:"acctapplicationid,omitempty"` + Acctapplicationid []int `json:"acctapplicationid,omitempty"` /** * Inband-Security-Id for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. */ @@ -386,19 +386,19 @@ type Lbmonitor struct { /** * List of Supported-Vendor-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum eight of these AVPs are supported in a monitoring message. */ - Supportedvendorids []uint32 `json:"supportedvendorids,omitempty"` + Supportedvendorids []int `json:"supportedvendorids,omitempty"` /** * Vendor-Id to use in the Vendor-Specific-Application-Id grouped attribute-value pair (AVP) in the monitoring CER message. To specify Auth-Application-Id or Acct-Application-Id in Vendor-Specific-Application-Id, use vendorSpecificAuthApplicationIds or vendorSpecificAcctApplicationIds, respectively. Only one Vendor-Id is supported for all the Vendor-Specific-Application-Id AVPs in a CER monitoring message. */ - Vendorspecificvendorid uint32 `json:"vendorspecificvendorid,omitempty"` + Vendorspecificvendorid int `json:"vendorspecificvendorid,omitempty"` /** * List of Vendor-Specific-Auth-Application-Id attribute value pairs (AVPs) for the Capabilities-Exchange-Request (CER) message to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. */ - Vendorspecificauthapplicationids []uint32 `json:"vendorspecificauthapplicationids,omitempty"` + Vendorspecificauthapplicationids []int `json:"vendorspecificauthapplicationids,omitempty"` /** * List of Vendor-Specific-Acct-Application-Id attribute value pairs (AVPs) to use for monitoring Diameter servers. A maximum of eight of these AVPs are supported in a monitoring message. The specified value is combined with the value of vendorSpecificVendorId to obtain the Vendor-Specific-Application-Id AVP in the CER monitoring message. */ - Vendorspecificacctapplicationids []uint32 `json:"vendorspecificacctapplicationids,omitempty"` + Vendorspecificacctapplicationids []int `json:"vendorspecificacctapplicationids,omitempty"` /** * KCD Account used by MSSQL monitor */ @@ -414,7 +414,7 @@ type Lbmonitor struct { /** * Code expected when the server is under maintenance */ - Trofscode uint32 `json:"trofscode,omitempty"` + Trofscode int `json:"trofscode,omitempty"` /** * String expected from the server for the service to be marked as trofs. Applicable to HTTP-ECV/TCP-ECV monitors. */ @@ -430,7 +430,7 @@ type Lbmonitor struct { /** * Version of MQTT protocol used in connect message, default is version 3.1.1 [4] */ - Mqttversion uint32 `json:"mqttversion,omitempty"` + Mqttversion int `json:"mqttversion,omitempty"` /** * Metric name in the metric table, whose setting is changed. A value zero disables the metric and it will not be used for load calculation */ @@ -438,11 +438,11 @@ type Lbmonitor struct { /** * Threshold to be used for that metric. */ - Metricthreshold uint64 `json:"metricthreshold,omitempty"` + Metricthreshold int `json:"metricthreshold,omitempty"` /** * The weight for the specified service metric with respect to others. */ - Metricweight uint32 `json:"metricweight,omitempty"` + Metricweight int `json:"metricweight,omitempty"` /** * The name of the service to which the monitor is bound. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go index 76fb19c80..d8ad2228e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_metric_binding.go @@ -35,11 +35,11 @@ type Lbmonitormetricbinding struct { /** * The weight for the specified service metric with respect to others. */ - Metricweight uint32 `json:"metricweight,omitempty"` + Metricweight int `json:"metricweight,omitempty"` /** * Threshold to be used for that metric. */ - Metricthreshold uint64 `json:"metricthreshold,omitempty"` + Metricthreshold int `json:"metricthreshold,omitempty"` /** * Name of the monitor. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go index 6c3ff557d..50ab5a0f0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_service_binding.go @@ -35,7 +35,7 @@ type Lbmonitorservicebinding struct { /** * Weight to assign to the binding between the monitor and service. */ - Dupweight uint32 `json:"dup_weight,omitempty"` + Dupweight int `json:"dup_weight,omitempty"` /** * Name of the service group. */ @@ -47,7 +47,7 @@ type Lbmonitorservicebinding struct { /** * Weight to assign to the binding between the monitor and service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go index 306d29029..8464704af 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_servicegroup_binding.go @@ -35,7 +35,7 @@ type Lbmonitorservicegroupbinding struct { /** * Weight to assign to the binding between the monitor and service. */ - Dupweight uint32 `json:"dup_weight,omitempty"` + Dupweight int `json:"dup_weight,omitempty"` /** * Name of the service group. */ @@ -47,7 +47,7 @@ type Lbmonitorservicegroupbinding struct { /** * Weight to assign to the binding between the monitor and service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_sslcertkey_binding.go new file mode 100644 index 000000000..b2d41952d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbmonitor_sslcertkey_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the sslcertkey that can be bound to lbmonitor. +*/ +type Lbmonitorsslcertkeybinding struct { + /** + * The name of the certificate bound to the monitor. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The rule for use of CRL corresponding to this CA certificate during client authentication. If crlCheck is set to Mandatory, the system will deny all SSL clients if the CRL is missing, expired - NextUpdate date is in the past, or is incomplete with remote CRL refresh enabled. If crlCheck is set to optional, the system will allow SSL clients in the above error cases.However, in any case if the client certificate is revoked in the CRL, the SSL client will be denied access. + */ + Ca bool `json:"ca,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Name of the monitor. + */ + Monitorname string `json:"monitorname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go index a1cb7bd04..8f321d3e8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbparameter.go @@ -59,7 +59,7 @@ type Lbparameter struct { * For an existing virtual server, if one or more services are newly bound or newly enabled, or if the load balancing method is changed, the appliance dynamically computes the number of requests for which to implement startup round robin. It obtains this number by multiplying the request rate by the number of bound services (it includes services that are marked as DOWN). For example, if the current request rate is 20 requests/s and ten services are bound to the virtual server, the appliance performs startup round robin for 200 requests. Not applicable to a virtual server for which a hash based load balancing method is configured. */ - Startuprrfactor uint32 `json:"startuprrfactor,omitempty"` + Startuprrfactor int `json:"startuprrfactor,omitempty"` /** * When a monitor initiates a connection to a service, do not check to determine whether the number of connections to the service has reached the limit specified by the service's Max Clients setting. Enables monitoring to continue even if the service has reached its connection limit. */ @@ -84,11 +84,11 @@ type Lbparameter struct { /** * Specify the TTL for DNS record for domain based service. The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors */ - Dbsttl uint64 `json:"dbsttl,omitempty"` + Dbsttl int `json:"dbsttl,omitempty"` /** * Maximum number of concurrent requests to allow on a single client connection, which is identified by the - tuple. This parameter is applicable to ANY service type and all UDP service types (except DNS) and only when "svrTimeout" is set to zero. A value of 0 (zero) applies no limit to the number of concurrent requests allowed on a single client connection */ - Maxpipelinenat uint32 `json:"maxpipelinenat,omitempty"` + Maxpipelinenat int `json:"maxpipelinenat,omitempty"` /** * String configured as LiteralADCCookieAttribute will be appended as attribute for Citrix ADC cookie (for example: LB cookie persistence , GSLB site persistence, CS cookie persistence, LB group cookie persistence). Sample usage - @@ -121,7 +121,7 @@ type Lbparameter struct { /** * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory */ - Lbhashfingers uint32 `json:"lbhashfingers,omitempty"` + Lbhashfingers int `json:"lbhashfingers,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go index c62edbe3b..2977bc471 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbpersistentsessions.go @@ -27,7 +27,7 @@ type Lbpersistentsessions struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` /** * The persistence parameter whose persistence sessions are to be flushed. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go index 860ad62ac..7dc239cb0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbprofile.go @@ -77,7 +77,7 @@ type Lbprofile struct { /** * This option is used to specify the number of fingers to be used in PRAC and JARH algorithms for hash based LB methods. Increasing the number of fingers might give better distribution of traffic at the expense of additional memory. */ - Lbhashfingers uint32 `json:"lbhashfingers,omitempty"` + Lbhashfingers int `json:"lbhashfingers,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go index 292560120..e19d57ca9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute.go @@ -35,7 +35,7 @@ type Lbroute struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go index 3c2b10d08..841436443 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbroute6.go @@ -31,7 +31,7 @@ type Lbroute6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go index dd2a116d6..f0b2c5f87 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbsipparameters.go @@ -23,15 +23,15 @@ type Lbsipparameters struct { /** * Port number with which to match the source port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. */ - Rnatsrcport int32 `json:"rnatsrcport,omitempty"` + Rnatsrcport int `json:"rnatsrcport,omitempty"` /** * Port number with which to match the destination port in server-initiated SIP traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. */ - Rnatdstport int32 `json:"rnatdstport,omitempty"` + Rnatdstport int `json:"rnatdstport,omitempty"` /** * Time, in seconds, for which a client must wait before initiating a connection after receiving a 503 Service Unavailable response from the SIP server. The time value is sent in the "Retry-After" header in the 503 response. */ - Retrydur int32 `json:"retrydur,omitempty"` + Retrydur int `json:"retrydur,omitempty"` /** * Add the rport parameter to the VIA headers of SIP requests that virtual servers receive from clients or servers. */ @@ -39,15 +39,15 @@ type Lbsipparameters struct { /** * Maximum number of 503 Service Unavailable responses to generate, once every 10 milliseconds, when a SIP virtual server becomes unavailable. */ - Sip503ratethreshold uint32 `json:"sip503ratethreshold,omitempty"` + Sip503ratethreshold int `json:"sip503ratethreshold,omitempty"` /** * Port number with which to match the source port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching source port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. */ - Rnatsecuresrcport int32 `json:"rnatsecuresrcport,omitempty"` + Rnatsecuresrcport int `json:"rnatsecuresrcport,omitempty"` /** * Port number with which to match the destination port in server-initiated SIP over SSL traffic. The rport parameter is added, without a value, to SIP packets that have a matching destination port number, and CALL-ID based persistence is implemented for the responses received by the virtual server. */ - Rnatsecuredstport int32 `json:"rnatsecuredstport,omitempty"` + Rnatsecuredstport int `json:"rnatsecuredstport,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go index 5fbb4f920..a6083a815 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver.go @@ -46,7 +46,7 @@ type Lbvserver struct { /** * Port number for the virtual server. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The list of IPv4/IPv6 addresses bound to ipset would form a part of listening service on the current lb vserver */ @@ -58,7 +58,7 @@ type Lbvserver struct { Note: The Range parameter assigns multiple IP addresses to one virtual server. To generate an array of virtual servers, each of which owns only one IP address, use brackets in the IP Address and Name parameters to specify the range. For example: add lb vserver my_vserver[1-3] HTTP 192.0.2.[1-3] 80 */ - Range uint32 `json:"range,omitempty"` + Range int `json:"range,omitempty"` /** * Type of persistence for the virtual server. Available settings function as follows: * SOURCEIP - Connections from the same client IP address belong to the same persistence session. @@ -78,7 +78,7 @@ type Lbvserver struct { /** * Time period for which a persistence session is in effect. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Backup persistence type for the virtual server. Becomes operational if the primary persistence mechanism fails. */ @@ -86,7 +86,7 @@ type Lbvserver struct { /** * Time period for which backup persistence is in effect. */ - Backuppersistencetimeout uint32 `json:"backuppersistencetimeout,omitempty"` + Backuppersistencetimeout int `json:"backuppersistencetimeout,omitempty"` /** * Load balancing method. The available settings function as follows: * ROUNDROBIN - Distribute requests in rotation, regardless of the load. Weights can be assigned to services to enforce weighted round robin distribution. @@ -111,7 +111,7 @@ type Lbvserver struct { /** * Number of bytes to consider for the hash value used in the URLHASH and DOMAINHASH load balancing methods. */ - Hashlength uint32 `json:"hashlength,omitempty"` + Hashlength int `json:"hashlength,omitempty"` /** * IPv4 subnet mask to apply to the destination IP address or source IP address when the load balancing method is DESTINATIONIPHASH or SOURCEIPHASH. */ @@ -119,7 +119,7 @@ type Lbvserver struct { /** * Number of bits to consider in an IPv6 destination or source IP address, for creating the hash that is required by the DESTINATIONIPHASH and SOURCEIPHASH load balancing methods. */ - V6netmasklen uint32 `json:"v6netmasklen,omitempty"` + V6netmasklen int `json:"v6netmasklen,omitempty"` /** * Backup load balancing method. Becomes operational if the primary load balancing me thod fails or cannot be used. @@ -145,7 +145,7 @@ type Lbvserver struct { /** * Integer specifying the priority of the listen policy. A higher number specifies a lower priority. If a request matches the listen policies of more than one virtual server the virtual server whose listen policy has the highest priority (the lowest priority number) accepts the request. */ - Listenpriority uint32 `json:"listenpriority,omitempty"` + Listenpriority int `json:"listenpriority,omitempty"` /** * Expression specifying which part of a server's response to use for creating rule based persistence sessions (persistence type RULE). Can be either an expression or the name of a named expression. Example: @@ -159,7 +159,7 @@ type Lbvserver struct { /** * Persistence mask for IP based persistence types, for IPv6 virtual servers. */ - V6persistmasklen uint32 `json:"v6persistmasklen,omitempty"` + V6persistmasklen int `json:"v6persistmasklen,omitempty"` /** * Use priority queuing on the virtual server. based persistence types, for IPv6 virtual servers. */ @@ -184,15 +184,15 @@ type Lbvserver struct { /** * TOS ID of the virtual server. Applicable only when the load balancing redirection mode is set to TOS. */ - Tosid uint32 `json:"tosid,omitempty"` + Tosid int `json:"tosid,omitempty"` /** * Length of the token to be extracted from the data segment of an incoming packet, for use in the token method of load balancing. The length of the token, specified in bytes, must not be greater than 24 KB. Applicable to virtual servers of type TCP. */ - Datalength uint32 `json:"datalength,omitempty"` + Datalength int `json:"datalength,omitempty"` /** * Offset to be considered when extracting a token from the TCP payload. Applicable to virtual servers, of type TCP, using the token method of load balancing. Must be within the first 24 KB of the TCP payload. */ - Dataoffset uint32 `json:"dataoffset,omitempty"` + Dataoffset int `json:"dataoffset,omitempty"` /** * Perform load balancing on a per-packet basis, without establishing sessions. Recommended for load balancing of intrusion detection system (IDS) servers and scenarios involving direct server return (DSR), where session information is unnecessary. */ @@ -224,7 +224,7 @@ type Lbvserver struct { /** * Idle time, in seconds, after which a client connection is terminated. */ - Clttimeout uint64 `json:"clttimeout,omitempty"` + Clttimeout int `json:"clttimeout,omitempty"` /** * Type of threshold that, when exceeded, triggers spillover. Available settings function as follows: * CONNECTION - Spillover occurs when the number of client connections exceeds the threshold. @@ -241,15 +241,15 @@ type Lbvserver struct { /** * Timeout for spillover persistence, in minutes. */ - Sopersistencetimeout uint32 `json:"sopersistencetimeout,omitempty"` + Sopersistencetimeout int `json:"sopersistencetimeout,omitempty"` /** * Threshold in percent of active services below which vserver state is made down. If this threshold is 0, vserver state will be up even if one bound service is up. */ - Healththreshold uint32 `json:"healththreshold,omitempty"` + Healththreshold int `json:"healththreshold,omitempty"` /** * Threshold at which spillover occurs. Specify an integer for the CONNECTION spillover method, a bandwidth value in kilobits per second for the BANDWIDTH method (do not enter the units), or a percentage for the HEALTH method (do not enter the percentage symbol). */ - Sothreshold uint32 `json:"sothreshold,omitempty"` + Sothreshold int `json:"sothreshold,omitempty"` /** * Action to be performed if spillover is to take effect, but no backup chain to spillover is usable or exists */ @@ -344,7 +344,7 @@ type Lbvserver struct { /** * MySQL protocol version that the virtual server advertises to clients. */ - Mysqlprotocolversion uint32 `json:"mysqlprotocolversion,omitempty"` + Mysqlprotocolversion int `json:"mysqlprotocolversion,omitempty"` /** * MySQL server version string that the virtual server advertises to clients. */ @@ -352,11 +352,11 @@ type Lbvserver struct { /** * Character set that the virtual server advertises to clients. */ - Mysqlcharacterset uint32 `json:"mysqlcharacterset,omitempty"` + Mysqlcharacterset int `json:"mysqlcharacterset,omitempty"` /** * Server capabilities that the virtual server advertises to clients. */ - Mysqlservercapabilities uint32 `json:"mysqlservercapabilities,omitempty"` + Mysqlservercapabilities int `json:"mysqlservercapabilities,omitempty"` /** * Apply AppFlow logging to the virtual server. */ @@ -383,7 +383,7 @@ type Lbvserver struct { /** * Number of requests, or percentage of the load on existing services, by which to increase the load on a new service at each interval in slow-start mode. A non-zero value indicates that slow-start is applicable. A zero value indicates that the global RR startup parameter is applied. Changing the value to zero will cause services currently in slow start to take the full traffic as determined by the LB method. Subsequently, any new services added will use the global RR factor. */ - Newservicerequest uint32 `json:"newservicerequest,omitempty"` + Newservicerequest int `json:"newservicerequest,omitempty"` /** * Units in which to increment load at each interval in slow-start mode. */ @@ -391,22 +391,22 @@ type Lbvserver struct { /** * Interval, in seconds, between successive increments in the load on a new service or a service whose state has just changed from DOWN to UP. A value of 0 (zero) specifies manual slow start. */ - Newservicerequestincrementinterval uint32 `json:"newservicerequestincrementinterval,omitempty"` + Newservicerequestincrementinterval int `json:"newservicerequestincrementinterval,omitempty"` /** * Minimum number of members expected to be present when vserver is used in Autoscale. */ - Minautoscalemembers uint32 `json:"minautoscalemembers,omitempty"` + Minautoscalemembers int `json:"minautoscalemembers,omitempty"` /** * Maximum number of members expected to be present when vserver is used in Autoscale. */ - Maxautoscalemembers uint32 `json:"maxautoscalemembers,omitempty"` + Maxautoscalemembers int `json:"maxautoscalemembers,omitempty"` /** * Persist AVP number for Diameter Persistency. In case this AVP is not defined in Base RFC 3588 and it is nested inside a Grouped AVP, define a sequence of AVP numbers (max 3) in order of parent to child. So say persist AVP number X is nested inside AVP Y which is nested in Z, then define the list as Z Y X */ - Persistavpno []uint32 `json:"persistavpno,omitempty"` + Persistavpno []int `json:"persistavpno,omitempty"` /** * This argument decides the behavior incase the service which is selected from an existing persistence session has reached threshold. */ @@ -414,7 +414,7 @@ type Lbvserver struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Name of the authentication profile to be used when authentication is turned on. */ @@ -454,7 +454,7 @@ type Lbvserver struct { /** * Port number for the virtual server, from which we absorb the traffic for http redirect */ - Redirectfromport int32 `json:"redirectfromport,omitempty"` + Redirectfromport int `json:"redirectfromport,omitempty"` /** * URL to which all HTTP traffic received on the port specified in the -redirectFromPort parameter is redirected. */ @@ -470,7 +470,7 @@ type Lbvserver struct { /** * Port number for external TCP probe. NetScaler provides support for external TCP health check of the vserver status over the selected port. This option is only supported for vservers assigned with an IPAddress or ipset. */ - Tcpprobeport int32 `json:"tcpprobeport,omitempty"` + Tcpprobeport int `json:"tcpprobeport,omitempty"` /** * Name of QUIC profile which will be attached to the VServer. */ @@ -490,11 +490,11 @@ type Lbvserver struct { /** * Citrix ADC provides support for external health check of the vserver status. Select port for HTTP/TCP monitring */ - Probeport int32 `json:"probeport,omitempty"` + Probeport int `json:"probeport,omitempty"` /** * Weight to assign to the specified service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Service to bind to the virtual server. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_analyticsprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_analyticsprofile_binding.go new file mode 100644 index 000000000..c9b5de4aa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_analyticsprofile_binding.go @@ -0,0 +1,34 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the analyticsprofile that can be bound to lbvserver. +*/ +type Lbvserveranalyticsprofilebinding struct { + /** + * Name of the analytics profile bound to the LB vserver. + */ + Analyticsprofile string `json:"analyticsprofile,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appflowpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appflowpolicy_binding.go new file mode 100644 index 000000000..edb5bb4b4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appflowpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the appflowpolicy that can be bound to lbvserver. +*/ +type Lbvserverappflowpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appfwpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appfwpolicy_binding.go new file mode 100644 index 000000000..e9b37ca81 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appfwpolicy_binding.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the appfwpolicy that can be bound to lbvserver. +*/ +type Lbvserverappfwpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appqoepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appqoepolicy_binding.go new file mode 100644 index 000000000..3ece2d0e3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_appqoepolicy_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the appqoepolicy that can be bound to lbvserver. +*/ +type Lbvserverappqoepolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditnslogpolicy_binding.go new file mode 100644 index 000000000..4786fe614 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditnslogpolicy_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the auditnslogpolicy that can be bound to lbvserver. +*/ +type Lbvserverauditnslogpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..f3693c9a1 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_auditsyslogpolicy_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the auditsyslogpolicy that can be bound to lbvserver. +*/ +type Lbvserverauditsyslogpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_authorizationpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_authorizationpolicy_binding.go new file mode 100644 index 000000000..b87397c5c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_authorizationpolicy_binding.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the authorizationpolicy that can be bound to lbvserver. +*/ +type Lbvserverauthorizationpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_botpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_botpolicy_binding.go new file mode 100644 index 000000000..2d29cd446 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_botpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the botpolicy that can be bound to lbvserver. +*/ +type Lbvserverbotpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cachepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cachepolicy_binding.go new file mode 100644 index 000000000..c9e432c98 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cachepolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the cachepolicy that can be bound to lbvserver. +*/ +type Lbvservercachepolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cmppolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cmppolicy_binding.go new file mode 100644 index 000000000..6071ff148 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_cmppolicy_binding.go @@ -0,0 +1,62 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the cmppolicy that can be bound to lbvserver. +*/ +type Lbvservercmppolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go new file mode 100644 index 000000000..8802302a2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_contentinspectionpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the contentinspectionpolicy that can be bound to lbvserver. +*/ +type Lbvservercontentinspectionpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_csvserver_binding.go new file mode 100644 index 000000000..5370fd905 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_csvserver_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the csvserver that can be bound to lbvserver. +*/ +type Lbvservercsvserverbinding struct { + /** + * Cache virtual server. + */ + Cachevserver string `json:"cachevserver,omitempty"` + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Cache type. + */ + Cachetype string `json:"cachetype,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Number of hits. + */ + Hits int `json:"hits,omitempty"` + /** + * Number of hits. + */ + Pipolicyhits int `json:"pipolicyhits,omitempty"` + Policysubtype int `json:"policysubtype,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dnspolicy64_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dnspolicy64_binding.go new file mode 100644 index 000000000..97f98cb0a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dnspolicy64_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the dnspolicy64 that can be bound to lbvserver. +*/ +type Lbvserverdnspolicy64binding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dospolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dospolicy_binding.go new file mode 100644 index 000000000..bf7c0f7d6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_dospolicy_binding.go @@ -0,0 +1,38 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the dospolicy that can be bound to lbvserver. +*/ +type Lbvserverdospolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_feopolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_feopolicy_binding.go new file mode 100644 index 000000000..fa0e10c54 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_feopolicy_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the feopolicy that can be bound to lbvserver. +*/ +type Lbvserverfeopolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_filterpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_filterpolicy_binding.go new file mode 100644 index 000000000..247c89184 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_filterpolicy_binding.go @@ -0,0 +1,77 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the filterpolicy that can be bound to lbvserver. +*/ +type Lbvserverfilterpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Use SureConnect on the virtual server. + */ + Sc string `json:"sc,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pqpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pqpolicy_binding.go new file mode 100644 index 000000000..f9089b800 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_pqpolicy_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the pqpolicy that can be bound to lbvserver. +*/ +type Lbvserverpqpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Integer specifying the policy's priority. The lower the priority number, the higher the policy's priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_responderpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_responderpolicy_binding.go new file mode 100644 index 000000000..79f57b22a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_responderpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the responderpolicy that can be bound to lbvserver. +*/ +type Lbvserverresponderpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_rewritepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_rewritepolicy_binding.go new file mode 100644 index 000000000..d5d5f4720 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_rewritepolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the rewritepolicy that can be bound to lbvserver. +*/ +type Lbvserverrewritepolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_scpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_scpolicy_binding.go new file mode 100644 index 000000000..7e5f95100 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_scpolicy_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the scpolicy that can be bound to lbvserver. +*/ +type Lbvserverscpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go index 2a378f831..a2e1364d8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_service_binding.go @@ -31,7 +31,7 @@ type Lbvserverservicebinding struct { /** * Port number for the virtual server. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Protocol used by the service (also called the service type). */ @@ -43,11 +43,11 @@ type Lbvserverservicebinding struct { /** * Weight to assign to the specified service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Dynamic weight */ - Dynamicweight uint32 `json:"dynamicweight,omitempty"` + Dynamicweight int `json:"dynamicweight,omitempty"` /** * Encryped Ip address and port of the service that is inserted into the set-cookie http header */ @@ -63,7 +63,7 @@ type Lbvserverservicebinding struct { /** * used for showing ports of bound entities */ - Vsvrbindsvcport int32 `json:"vsvrbindsvcport,omitempty"` + Vsvrbindsvcport int `json:"vsvrbindsvcport,omitempty"` /** * Used for displaying the location of bound services. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go index ed8d9c27f..99fcdde2a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroup_binding.go @@ -36,7 +36,7 @@ type Lbvserverservicegroupbinding struct { /** * Integer specifying the weight of the service. A larger number specifies a greater weight. Defines the capacity of the service relative to the other services in the load balancing configuration. Determines the priority given to the service in load balancing decisions. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go index 0a0fc0ea2..eebbc2c0e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_servicegroupmember_binding.go @@ -31,7 +31,7 @@ type Lbvserverservicegroupmemberbinding struct { /** * Port number for the virtual server. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Protocol used by the service (also called the service type). */ @@ -43,11 +43,11 @@ type Lbvserverservicegroupmemberbinding struct { /** * Weight to assign to the specified service. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Dynamic weight */ - Dynamicweight uint32 `json:"dynamicweight,omitempty"` + Dynamicweight int `json:"dynamicweight,omitempty"` /** * Encryped Ip address and port of the service that is inserted into the set-cookie http header */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_spilloverpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_spilloverpolicy_binding.go new file mode 100644 index 000000000..6421be902 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_spilloverpolicy_binding.go @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the spilloverpolicy that can be bound to lbvserver. +*/ +type Lbvserverspilloverpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go new file mode 100644 index 000000000..cbc439758 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_tmtrafficpolicy_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the tmtrafficpolicy that can be bound to lbvserver. +*/ +type Lbvservertmtrafficpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a priority number that is numerically higher than the highest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Bind point to which to bind the policy. + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Applicable only to rewrite, videooptimization and cache policies. Available settings function as follows: + * reqvserver - Evaluate the request against the request-based policies bound to the specified virtual server. + * resvserver - Evaluate the response against the response-based policies bound to the specified virtual server. + * policylabel - invoke the request or response against the specified user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_transformpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_transformpolicy_binding.go new file mode 100644 index 000000000..98074426f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_transformpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the transformpolicy that can be bound to lbvserver. +*/ +type Lbvservertransformpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go new file mode 100644 index 000000000..20b951588 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationdetectionpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the videooptimizationdetectionpolicy that can be bound to lbvserver. +*/ +type Lbvservervideooptimizationdetectionpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go new file mode 100644 index 000000000..e33f59bb0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbvserver_videooptimizationpacingpolicy_binding.go @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the videooptimizationpacingpolicy that can be bound to lbvserver. +*/ +type Lbvservervideooptimizationpacingpolicybinding struct { + /** + * Name of the policy bound to the LB vserver. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Priority. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * The bindpoint to which the policy is bound + */ + Bindpoint string `json:"bindpoint,omitempty"` + /** + * Invoke policies bound to a virtual server or policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * The invocation type. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label invoked. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name for the virtual server. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at sign (@), equal sign (=), and hyphen (-) characters. Can be changed after the virtual server is created. + CLI Users: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my vserver" or 'my vserver'). + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go index 19d12b76e..b4df223ea 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm.go @@ -31,7 +31,7 @@ type Lbwlm struct { /** * The port of the WLM. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * The LBUID for the Load Balancer to communicate to the Work Load Manager. */ @@ -39,7 +39,7 @@ type Lbwlm struct { /** * The idle time period after which Citrix ADC would probe the WLM. The value ranges from 1 to 1440 minutes. */ - Katimeout uint32 `json:"katimeout,omitempty"` + Katimeout int `json:"katimeout,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_lbvserver_binding.go new file mode 100644 index 000000000..e620dfc00 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/lb/lbwlm_lbvserver_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package lb + +/** +* Binding class showing the lbvserver that can be bound to lbwlm. +*/ +type Lbwlmlbvserverbinding struct { + /** + * Name of the virtual server which is to be bound to the WLM. + */ + Vservername string `json:"vservername,omitempty"` + /** + * The name of the Work Load Manager. + */ + Wlmname string `json:"wlmname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go index 363e68769..337e9f9f8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/Interface.go @@ -61,11 +61,11 @@ type Interface struct { /** * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). */ - Mtu uint32 `json:"mtu,omitempty"` + Mtu int `json:"mtu,omitempty"` /** * The receive ringsize of the interface. A higher number provides more number of buffers in handling incoming traffic. */ - Ringsize uint32 `json:"ringsize,omitempty"` + Ringsize int `json:"ringsize,omitempty"` /** * The receive ringtype of the interface (Fixed or Elastic). A fixed ring type pre-allocates configured number of buffers irrespective of traffic rate. In contrast, an elastic ring, expands and shrinks based on incoming traffic rate. */ @@ -99,7 +99,7 @@ type Interface struct { For an LA channel of the Citrix ADC, this digit specifies the variable x of an LA channel in LA/x notation, where x can range from 1 to 8. For example, if you specify 3 as the LACP key for an LA channel, the interface is bound to the LA channel LA/3. For an LA channel of a cluster configuration, this digit specifies the variable y of a cluster LA channel in CLA/(y-4) notation, where y can range from 5 to 8. For example, if you specify 6 as the LACP key for a cluster LA channel, the interface is bound to the cluster LA channel CLA/2. */ - Lacpkey uint32 `json:"lacpkey,omitempty"` + Lacpkey int `json:"lacpkey,omitempty"` /** * Type of entity (Citrix ADC or cluster configuration) for which to create the channel. */ @@ -107,7 +107,7 @@ type Interface struct { /** * LACP port priority, expressed as an integer. The lower the number, the higher the priority. The Citrix ADC limits the number of interfaces in an LA channel to sixteen. */ - Lacppriority uint32 `json:"lacppriority,omitempty"` + Lacppriority int `json:"lacppriority,omitempty"` /** * Interval at which the Citrix ADC sends LACPDU messages to the peer device on the LA channel. Available settings function as follows: @@ -122,7 +122,7 @@ type Interface struct { /** * Low threshold value for the throughput of the interface, in Mbps. In an HA configuration, failover is triggered if the interface has HA MON enabled and the throughput is below the specified the threshold. */ - Throughput uint32 `json:"throughput,omitempty"` + Throughput int `json:"throughput,omitempty"` /** * Link Redundancy for Cluster LAG. */ @@ -130,11 +130,11 @@ type Interface struct { /** * High threshold value for the bandwidth usage of the interface, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the interface is greater than or equal to the specified high threshold value. */ - Bandwidthhigh uint32 `json:"bandwidthhigh,omitempty"` + Bandwidthhigh int `json:"bandwidthhigh,omitempty"` /** * Normal threshold value for the bandwidth usage of the interface, in Mbps. When the bandwidth usage of the interface becomes less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. */ - Bandwidthnormal uint32 `json:"bandwidthnormal,omitempty"` + Bandwidthnormal int `json:"bandwidthnormal,omitempty"` /** * Link Layer Discovery Protocol (LLDP) mode for an interface. The resultant LLDP mode of an interface depends on the LLDP mode configured at the global and the interface levels. */ @@ -142,7 +142,7 @@ type Interface struct { /** * LRSET port priority, expressed as an integer ranging from 1 to 1024. The highest priority is 1. The Citrix ADC limits the number of interfaces in an LRSET to 8. Within a LRSET the highest LR Priority Interface is considered as the first candidate for the Active interface, if the interface is UP. */ - Lrsetpriority uint32 `json:"lrsetpriority,omitempty"` + Lrsetpriority int `json:"lrsetpriority,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go index d0af267b9..fa5a28860 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/appalgparam.go @@ -23,6 +23,6 @@ type Appalgparam struct { /** * Interval in sec, after which data sessions of PPTP GRE is cleared. */ - Pptpgreidletimeout uint32 `json:"pptpgreidletimeout,omitempty"` + Pptpgreidletimeout int `json:"pptpgreidletimeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go index 0b14292af..9d583a27e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arp.go @@ -27,7 +27,7 @@ type Arp struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * MAC address of the network device. */ @@ -39,7 +39,7 @@ type Arp struct { /** * ID of the VXLAN on which the IP address of this ARP entry is reachable. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * IP address of the VXLAN tunnel endpoint (VTEP) through which the IP address of this ARP entry is reachable. */ @@ -47,11 +47,11 @@ type Arp struct { /** * The VLAN ID through which packets are to be sent after matching the ARP entry. This is a numeric value. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * The owner node for the Arp entry. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * Remove all ARP entries from the ARP table of the Citrix ADC. */ @@ -59,7 +59,7 @@ type Arp struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go index 6423a34df..c37b35dfb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/arpparam.go @@ -23,7 +23,7 @@ type Arpparam struct { /** * Time-out value (aging time) for the dynamically learned ARP entries, in seconds. The new value applies only to ARP entries that are dynamically learned after the new value is set. Previously existing ARP entries expire after the previously configured aging time. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * enable/disable arp spoofing validation */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go index 7fff77b39..07608e86d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup.go @@ -23,7 +23,7 @@ type Bridgegroup struct { /** * An integer that uniquely identifies the bridge group. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * Enable dynamic routing for this bridgegroup. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go index 5b00ca727..7ba665916 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_binding.go @@ -23,7 +23,7 @@ type Bridgegroupbinding struct { /** * The name of the bridge group.
Minimum value = 1
Maximum value = 1000 */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip6_binding.go new file mode 100644 index 000000000..d0e318495 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip6_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to bridgegroup. +*/ +type Bridgegroupnsip6binding struct { + /** + * The IP address assigned to the bridge group. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * Temporary flag used for internal purpose. + */ + Rnat bool `json:"rnat,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * The integer that uniquely identifies the bridge group. + */ + Id int `json:"id,omitempty"` + /** + * A subnet mask associated with the network address. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip_binding.go new file mode 100644 index 000000000..a513a5868 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_nsip_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to bridgegroup. +*/ +type Bridgegroupnsipbinding struct { + /** + * The IP address assigned to the bridge group. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * The network mask for the subnet defined for the bridge group. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Temporary flag used for internal purpose. + */ + Rnat bool `json:"rnat,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * The integer that uniquely identifies the bridge group. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go index bd25cf086..14b27f3b3 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgegroup_vlan_binding.go @@ -23,7 +23,7 @@ type Bridgegroupvlanbinding struct { /** * Names of all member VLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Temporary flag used for internal purpose. */ @@ -31,7 +31,7 @@ type Bridgegroupvlanbinding struct { /** * The integer that uniquely identifies the bridge group. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go index fbc54c14b..cdf3b6329 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/bridgetable.go @@ -27,7 +27,7 @@ type Bridgetable struct { /** * The VXLAN to which this address is associated. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * The IP address of the destination VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides. */ @@ -35,23 +35,23 @@ type Bridgetable struct { /** * The VXLAN VNI Network Identifier (or VXLAN Segment ID) to use to connect to the remote VXLAN tunnel endpoint. If omitted the value specified as vxlan will be used. */ - Vni uint32 `json:"vni,omitempty"` + Vni int `json:"vni,omitempty"` /** * The vlan on which to send multicast packets when the VXLAN tunnel endpoint is a muticast group address. */ - Devicevlan uint32 `json:"devicevlan,omitempty"` + Devicevlan int `json:"devicevlan,omitempty"` /** * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. */ - Bridgeage uint32 `json:"bridgeage,omitempty"` + Bridgeage int `json:"bridgeage,omitempty"` /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` /** * VLAN whose entries are to be removed. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * INTERFACE whose entries are to be removed. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go index 76a44430a..c548cfeed 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel.go @@ -89,23 +89,23 @@ type Channel struct { /** * Low threshold value for the throughput of the LA channel, in Mbps. In an high availability (HA) configuration, failover is triggered when the LA channel has HA MON enabled and the throughput is below the specified threshold. */ - Throughput uint32 `json:"throughput,omitempty"` + Throughput int `json:"throughput,omitempty"` /** * High threshold value for the bandwidth usage of the LA channel, in Mbps. The Citrix ADC generates an SNMP trap message when the bandwidth usage of the LA channel is greater than or equal to the specified high threshold value. */ - Bandwidthhigh uint32 `json:"bandwidthhigh,omitempty"` + Bandwidthhigh int `json:"bandwidthhigh,omitempty"` /** * Normal threshold value for the bandwidth usage of the LA channel, in Mbps. When the bandwidth usage of the LA channel returns to less than or equal to the specified normal threshold after exceeding the high threshold, the Citrix ADC generates an SNMP trap message to indicate that the bandwidth usage has returned to normal. */ - Bandwidthnormal uint32 `json:"bandwidthnormal,omitempty"` + Bandwidthnormal int `json:"bandwidthnormal,omitempty"` /** * The Maximum Transmission Unit (MTU) is the largest packet size, measured in bytes excluding 14 bytes ethernet header and 4 bytes CRC, that can be transmitted and received by an interface. The default value of MTU is 1500 on all the interface of Citrix ADC, some Cloud Platforms will restrict Citrix ADC to use the lesser default value. Any MTU value more than 1500 is called Jumbo MTU and will make the interface as jumbo enabled. The Maximum Jumbo MTU in Citrix ADC is 9216, however, some Virtualized / Cloud Platforms will have lesser Maximum Jumbo MTU Value (9000). In the case of Cluster, the Backplane interface requires an MTU value of 78 bytes more than the Max MTU configured on any other Data-Plane Interface. When the Data plane interfaces are all at default 1500 MTU, Cluster Back Plane will be automatically set to 1578 (1500 + 78) MTU. If a Backplane interface is reset to Data Plane Interface, then the 1578 MTU will be automatically reset to the default MTU of 1500(or whatever lesser default value). If any data plane interface of a Cluster is configured with a Jumbo MTU ( > 1500), then all backplane interfaces require to be configured with a minimum MTU of 'Highest Data Plane MTU in the Cluster + 78'. That makes the maximum Jumbo MTU for any Data-Plane Interface in a Cluster System to be '9138 (9216 - 78)., where 9216 is the maximum Jumbo MTU. On certain Virtualized / Cloud Platforms, the maximum possible MTU is restricted to a lesser value, Similar calculation can be applied, Maximum Data Plane MTU in Cluster = (Maximum possible MTU - 78). */ - Mtu uint32 `json:"mtu,omitempty"` + Mtu int `json:"mtu,omitempty"` /** * Specifies the minimum throughput threshold (in Mbps) to be met by the active subchannel. Setting this parameter automatically divides an LACP channel into logical subchannels, with one subchannel active and the others in standby mode. When the maximum supported throughput of the active channel falls below the lrMinThroughput value, link failover occurs and a standby subchannel becomes active. */ - Lrminthroughput uint32 `json:"lrminthroughput,omitempty"` + Lrminthroughput int `json:"lrminthroughput,omitempty"` /** * Link Redundancy for Cluster LAG. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go index 5c0ca735c..512c07784 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/channel_interface_binding.go @@ -40,27 +40,27 @@ type Channelinterfacebinding struct { /** * State of the member interfaces. */ - Slavestate uint32 `json:"slavestate,omitempty"` + Slavestate int `json:"slavestate,omitempty"` /** * Media type of the member interfaces. */ - Slavemedia uint32 `json:"slavemedia,omitempty"` + Slavemedia int `json:"slavemedia,omitempty"` /** * Speed of the member interfaces. */ - Slavespeed uint32 `json:"slavespeed,omitempty"` + Slavespeed int `json:"slavespeed,omitempty"` /** * Duplex of the member interfaces. */ - Slaveduplex uint32 `json:"slaveduplex,omitempty"` + Slaveduplex int `json:"slaveduplex,omitempty"` /** * Flowcontrol of the member interfaces. */ - Slaveflowctl uint32 `json:"slaveflowctl,omitempty"` + Slaveflowctl int `json:"slaveflowctl,omitempty"` /** * UP time of the member interfaces. */ - Slavetime uint32 `json:"slavetime,omitempty"` + Slavetime int `json:"slavetime,omitempty"` /** * LR set member interface state(active/inactive). */ @@ -68,7 +68,7 @@ type Channelinterfacebinding struct { /** * New attribute added to identify the source of cmd, when SVM fires the nitro cmd, it will set the value of SVMCMD to be 1. */ - Svmcmd uint32 `json:"svmcmd,omitempty"` + Svmcmd int `json:"svmcmd,omitempty"` /** * ID of the LA channel or the cluster LA channel to which you want to bind interfaces. Specify an LA channel in LA/x notation, where x can range from 1 to 8 or a cluster LA channel in CLA/x notation or Link redundant channel in LR/x notation , where x can range from 1 to 4. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go index 602a6b71a..56af8e3ce 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis.go @@ -27,7 +27,7 @@ type Fis struct { /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go index 09e011562..54c1c94c2 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_channel_binding.go @@ -27,7 +27,7 @@ type Fischannelbinding struct { /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * The name of the FIS to which you want to bind interfaces. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go index b8f3d92f5..ced8e8f1c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/fis_interface_binding.go @@ -27,7 +27,7 @@ type Fisinterfacebinding struct { /** * ID of the cluster node for which you are creating the FIS. Can be configured only through the cluster IP address. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * The name of the FIS to which you want to bind interfaces. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go index 1b5232448..036121b36 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/forwardingsession.go @@ -45,7 +45,7 @@ type Forwardingsession struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the forwarding session. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go index 7d16b8b98..a0ae949d9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inat.go @@ -67,7 +67,7 @@ type Inat struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Synchronize connection information with the secondary appliance in a high availability (HA) pair. That is, synchronize all connection-related information for the INAT session */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go index 194245d7d..7b37f6fa5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/inatparam.go @@ -27,7 +27,7 @@ type Inatparam struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Ignore TOS. */ @@ -39,7 +39,7 @@ type Inatparam struct { /** * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. */ - Nat46v6mtu uint32 `json:"nat46v6mtu,omitempty"` + Nat46v6mtu int `json:"nat46v6mtu,omitempty"` /** * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go index c069f491f..0fec1cb19 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/interfacepair.go @@ -23,7 +23,7 @@ type Interfacepair struct { /** * The Interface pair id */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * The constituent interfaces in the interface pair */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go index be570903d..c4f082380 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ip6tunnelparam.go @@ -31,7 +31,7 @@ type Ip6tunnelparam struct { /** * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation. Applies only if dropFragparameter is set to NO. */ - Dropfragcputhreshold uint32 `json:"dropfragcputhreshold,omitempty"` + Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` /** * Use a different source IPv6 address for each new session through a particular IPv6 tunnel, as determined by round robin selection of one of the SNIP6 addresses. This setting is ignored if a common global source IPv6 address has been specified for all the IPv6 tunnels. This setting does not apply to a tunnel for which a source IPv6 address has been specified. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go index 8d07b4a48..a50553d68 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset.go @@ -27,6 +27,6 @@ type Ipset struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip6_binding.go new file mode 100644 index 000000000..399e425d0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip6_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to ipset. +*/ +type Ipsetnsip6binding struct { + /** + * One or more IP addresses bound to the IP set. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the IP set to which to bind IP addresses. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip_binding.go new file mode 100644 index 000000000..c6e627829 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipset_nsip_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to ipset. +*/ +type Ipsetnsipbinding struct { + /** + * One or more IP addresses bound to the IP set. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Name of the IP set to which to bind IP addresses. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go index dd144af97..b22f26ee1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnel.go @@ -51,7 +51,7 @@ type Iptunnel struct { /** * The vlan for mulicast packets */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * The owner node group in a Cluster for the iptunnel. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go index b697988d4..9099a4c47 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/iptunnelparam.go @@ -31,7 +31,7 @@ type Iptunnelparam struct { /** * Threshold value, as a percentage of CPU usage, at which to drop packets that require fragmentation to use the IP tunnel. Applies only if dropFragparameter is set to NO. The default value, 0, specifies that this parameter is not set. */ - Dropfragcputhreshold uint32 `json:"dropfragcputhreshold,omitempty"` + Dropfragcputhreshold int `json:"dropfragcputhreshold,omitempty"` /** * Use a different source IP address for each new session through a particular IP tunnel, as determined by round robin selection of one of the SNIP addresses. This setting is ignored if a common global source IP address has been specified for all the IP tunnels. This setting does not apply to a tunnel for which a source IP address has been specified. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go index fabe61726..9c8a7bc9d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/ipv6.go @@ -31,11 +31,11 @@ type Ipv6 struct { /** * Base reachable time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, that the Citrix ADC assumes an adjacent device is reachable after receiving a reachability confirmation. */ - Ndbasereachtime uint32 `json:"ndbasereachtime,omitempty"` + Ndbasereachtime int `json:"ndbasereachtime,omitempty"` /** * Retransmission time of the Neighbor Discovery (ND6) protocol. The time, in milliseconds, between retransmitted Neighbor Solicitation (NS) messages, to an adjacent device. */ - Ndretransmissiontime uint32 `json:"ndretransmissiontime,omitempty"` + Ndretransmissiontime int `json:"ndretransmissiontime,omitempty"` /** * Prefix used for translating packets from private IPv6 servers to IPv4 packets. This prefix has a length of 96 bits (128-32 = 96). The IPv6 servers embed the destination IP address of the IPv4 servers or hosts in the last 32 bits of the destination IP address field of the IPv6 packets. The first 96 bits of the destination IP address field are set as the IPv6 NAT prefix. IPv6 packets addressed to this prefix have to be routed to the Citrix ADC to ensure that the IPv6-IPv4 translation is done by the appliance. */ @@ -43,7 +43,7 @@ type Ipv6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Enable the Citrix ADC to do Duplicate Address Detection (DAD) for all the Citrix ADC owned IPv6 addresses regardless of whether they are obtained through stateless auto configuration, DHCPv6, or manual configuration. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go index a4f7d8e29..e167aeb56 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l2param.go @@ -23,11 +23,11 @@ type L2param struct { /** * When mbf_instant_learning is enabled, learn any changes in peer's MAC after this time interval, which is in 10ms ticks. */ - Mbfpeermacupdate uint32 `json:"mbfpeermacupdate,omitempty"` + Mbfpeermacupdate int `json:"mbfpeermacupdate,omitempty"` /** * Maximum bridge collision for loop detection */ - Maxbridgecollision uint32 `json:"maxbridgecollision,omitempty"` + Maxbridgecollision int `json:"maxbridgecollision,omitempty"` /** * Set/reset proxy ARP in bridge group deployment */ @@ -79,7 +79,7 @@ type L2param struct { /** * Time-out value for the bridge table entries, in seconds. The new value applies only to the entries that are dynamically learned after the new value is set. Previously existing bridge table entries expire after the previously configured time-out value. */ - Bridgeagetimeout uint32 `json:"bridgeagetimeout,omitempty"` + Bridgeagetimeout int `json:"bridgeagetimeout,omitempty"` /** * Control source parameters (IP and Port) for FreeBSD initiated traffic. If enabled proxy the source parameters based on netprofile source ip. If netprofile does not have ip configured, then it will continue to use NSIP as earlier. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go index 7bda714d4..0c4720282 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/l3param.go @@ -27,7 +27,7 @@ type L3param struct { /** * NS generated ICMP pkts per 10ms rate threshold */ - Icmpgenratethreshold uint32 `json:"icmpgenratethreshold,omitempty"` + Icmpgenratethreshold int `json:"icmpgenratethreshold,omitempty"` /** * USNIP/USIP settings override RNAT settings for configured service/virtual server traffic.. @@ -64,7 +64,7 @@ type L3param struct { /** * Parameter to tune acl logging time */ - Acllogtime uint32 `json:"acllogtime,omitempty"` + Acllogtime int `json:"acllogtime,omitempty"` /** * Do not apply ACLs for internal ports */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go index 0081e3f42..bd35c780f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/lacp.go @@ -23,11 +23,11 @@ type Lacp struct { /** * Priority number that determines which peer device of an LACP LA channel can have control over the LA channel. This parameter is globally applied to all LACP channels on the Citrix ADC. The lower the number, the higher the priority. */ - Syspriority uint32 `json:"syspriority,omitempty"` + Syspriority int `json:"syspriority,omitempty"` /** * The owner node in a cluster for which we want to set the lacp priority. Owner node can vary from 0 to 31. Ownernode value of 254 is used for Cluster. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go index bbb01442d..841e4efe4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/mapbmr.go @@ -33,15 +33,15 @@ type Mapbmr struct { /** * Start bit position of Port Set Identifier(PSID) value in Embedded Address (EA) bits. */ - Psidoffset uint32 `json:"psidoffset,omitempty"` + Psidoffset int `json:"psidoffset,omitempty"` /** * The Embedded Address (EA) bit field encodes the CE-specific IPv4 address and port information. The EA bit field, which is unique for a given Rule IPv6 prefix. */ - Eabitlength uint32 `json:"eabitlength,omitempty"` + Eabitlength int `json:"eabitlength,omitempty"` /** * Length of Port Set IdentifierPort Set Identifier(PSID) in Embedded Address (EA) bits */ - Psidlength uint32 `json:"psidlength,omitempty"` + Psidlength int `json:"psidlength,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go index 4607892d0..8c9f04b47 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nat64param.go @@ -23,7 +23,7 @@ type Nat64param struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Ignore TOS. */ @@ -35,7 +35,7 @@ type Nat64param struct { /** * MTU setting for the IPv6 side. If the incoming IPv4 packet greater than this, either fragment or send icmp need fragmentation error. */ - Nat64v6mtu uint32 `json:"nat64v6mtu,omitempty"` + Nat64v6mtu int `json:"nat64v6mtu,omitempty"` /** * When disabled, translator will not insert IPv6 fragmentation header for non fragmented IPv4 packets */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go index 51ab021b5..d3654f1db 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6.go @@ -35,11 +35,11 @@ type Nd6 struct { /** * Integer value that uniquely identifies the VLAN on which the adjacent network device exists. */ - Vlan int32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN on which the IPv6 address of this ND6 entry is reachable. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * IP address of the VXLAN tunnel endpoint (VTEP) through which the IPv6 address of this ND6 entry is reachable. */ @@ -47,11 +47,11 @@ type Nd6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go index 013a5b2d9..6e9f2bee5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables.go @@ -23,7 +23,7 @@ type Nd6ravariables struct { /** * The VLAN number. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Cease router advertisements on this vlan. */ @@ -51,31 +51,31 @@ type Nd6ravariables struct { /** * Current Hop limit. */ - Currhoplimit uint32 `json:"currhoplimit,omitempty"` + Currhoplimit int `json:"currhoplimit,omitempty"` /** * Maximum time allowed between unsolicited multicast RAs, in seconds. */ - Maxrtadvinterval uint32 `json:"maxrtadvinterval,omitempty"` + Maxrtadvinterval int `json:"maxrtadvinterval,omitempty"` /** * Minimum time interval between RA messages, in seconds. */ - Minrtadvinterval uint32 `json:"minrtadvinterval,omitempty"` + Minrtadvinterval int `json:"minrtadvinterval,omitempty"` /** * The Link MTU. */ - Linkmtu uint32 `json:"linkmtu,omitempty"` + Linkmtu int `json:"linkmtu,omitempty"` /** * Reachable time, in milliseconds. */ - Reachabletime uint32 `json:"reachabletime,omitempty"` + Reachabletime int `json:"reachabletime,omitempty"` /** * Retransmission time, in milliseconds. */ - Retranstime uint32 `json:"retranstime,omitempty"` + Retranstime int `json:"retranstime,omitempty"` /** * Default life time, in seconds. */ - Defaultlifetime int32 `json:"defaultlifetime,omitempty"` + Defaultlifetime int `json:"defaultlifetime,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go index 7e0a59c62..d39b1bd27 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_binding.go @@ -23,7 +23,7 @@ type Nd6ravariablesbinding struct { /** * The VLAN number.
Minimum value = 1
Maximum value = 4094 */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go index b3060935b..9df26beb5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.go @@ -27,7 +27,7 @@ type Nd6ravariablesonlinkipv6prefixbinding struct { /** * The VLAN number. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip6_binding.go new file mode 100644 index 000000000..8c7bed0d2 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to netbridge. +*/ +type Netbridgensip6binding struct { + /** + * The subnet that is extended by this network bridge. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The network mask for the subnet. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip_binding.go new file mode 100644 index 000000000..77068bd86 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_nsip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to netbridge. +*/ +type Netbridgensipbinding struct { + /** + * The subnet that is extended by this network bridge. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * The network mask for the subnet. + */ + Netmask string `json:"netmask,omitempty"` + /** + * The name of the network bridge. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go index d16f23de5..8e2b2dfb0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netbridge_vlan_binding.go @@ -23,7 +23,7 @@ type Netbridgevlanbinding struct { /** * The VLAN that is extended by this network bridge. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * The name of the network bridge. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go index 45d9d3468..60efc83c8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/netprofile.go @@ -27,7 +27,7 @@ type Netprofile struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * IP address or the name of an IP set. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go index 67447f4b5..3bed08554 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/onlinkipv6prefix.go @@ -43,11 +43,11 @@ type Onlinkipv6prefix struct { /** * Valide life time of the prefix, in seconds. */ - Prefixvalidelifetime uint32 `json:"prefixvalidelifetime,omitempty"` + Prefixvalidelifetime int `json:"prefixvalidelifetime,omitempty"` /** * Preferred life time of the prefix, in seconds. */ - Prefixpreferredlifetime uint32 `json:"prefixpreferredlifetime,omitempty"` + Prefixpreferredlifetime int `json:"prefixpreferredlifetime,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go index 2643e8e48..96a85a4ca 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat.go @@ -35,7 +35,7 @@ type Rnat struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * The owner node group in a Cluster for this rnat rule. */ @@ -47,7 +47,7 @@ type Rnat struct { /** * Port number to which the IPv4 packets are redirected. Applicable to TCP and UDP protocols. */ - Redirectport int32 `json:"redirectport,omitempty"` + Redirectport int `json:"redirectport,omitempty"` /** * Any NetScaler-owned IPv4 address except the NSIP address. The NetScaler appliance replaces the source IP addresses of server-generated packets with the IP address specified. The IP address must be a public NetScaler-owned IP address. If you specify multiple addresses for this field, NATIP selection uses the round robin algorithm for each session. By specifying a range of IP addresses, you can specify all NetScaler-owned IP addresses, except the NSIP, that fall within the specified range. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go index e7aa030be..07c0e780e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6.go @@ -35,11 +35,11 @@ type Rnat6 struct { /** * Port number to which the IPv6 packets are redirected. Applicable to TCP and UDP protocols. */ - Redirectport int32 `json:"redirectport,omitempty"` + Redirectport int `json:"redirectport,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Enable source ip persistency, which enables the Citrix ADC to use the RNAT ips using source ip. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_nsip6_binding.go new file mode 100644 index 000000000..2df8514ac --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat6_nsip6_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to rnat6. +*/ +type Rnat6nsip6binding struct { + /** + * Nat IP Address. + */ + Natip6 string `json:"natip6,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Name of the RNAT6 rule to which to bind NAT IPs. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_nsip_binding.go new file mode 100644 index 000000000..8e7a4caeb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnat_nsip_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to rnat. +*/ +type Rnatnsipbinding struct { + /** + * Any NetScaler-owned IPv4 address except the NSIP address. The NetScaler appliance replaces the source IP addresses of server-generated packets with the IP address specified. The IP address must be a public NetScaler-owned IP address. If you specify multiple addresses for this field, NATIP selection uses the round robin algorithm for each session. By specifying a range of IP addresses, you can specify all NetScaler-owned IP addresses, except the NSIP, that fall within the specified range. + */ + Natip string `json:"natip,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this rnat rule. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Name of the RNAT rule to which to bind NAT IPs. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..cb2b6f7f7 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/rnatglobal_auditsyslogpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the auditsyslogpolicy that can be bound to rnatglobal. +*/ +type Rnatglobalauditsyslogpolicybinding struct { + /** + * The policy Name. + */ + Policy string `json:"policy,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Remove all RNAT global config + */ + All bool `json:"all,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go index e80c178c4..8ea80e6a4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route.go @@ -35,27 +35,27 @@ type Route struct { /** * VLAN as the gateway for this route. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Positive integer used by the routing algorithms to determine preference for using this route. The lower the cost, the higher the preference. */ - Cost uint32 `json:"cost,omitempty"` + Cost int `json:"cost,omitempty"` /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Administrative distance of this route, which determines the preference of this route over other routes, with same destination, from different routing protocols. A lower value is preferred. */ - Distance uint32 `json:"distance,omitempty"` + Distance int `json:"distance,omitempty"` /** * The cost of a route is used to compare routes of the same type. The route having the lowest cost is the most preferred route. Possible values: 0 through 65535. Default: 0. */ - Cost1 uint32 `json:"cost1,omitempty"` + Cost1 int `json:"cost1,omitempty"` /** * Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Advertise this route. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go index 5a1ef0049..3bbda0927 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/route6.go @@ -31,23 +31,23 @@ type Route6 struct { /** * Integer value that uniquely identifies a VLAN through which the Citrix ADC forwards the packets for this route. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Integer value that uniquely identifies a VXLAN through which the Citrix ADC forwards the packets for this route. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * Positive integer used by the routing algorithms to determine preference for this route over others of equal cost. The lower the weight, the higher the preference. */ - Weight uint32 `json:"weight,omitempty"` + Weight int `json:"weight,omitempty"` /** * Administrative distance of this route from the appliance. */ - Distance uint32 `json:"distance,omitempty"` + Distance int `json:"distance,omitempty"` /** * Positive integer used by the routing algorithms to determine preference for this route. The lower the cost, the higher the preference. */ - Cost uint32 `json:"cost,omitempty"` + Cost int `json:"cost,omitempty"` /** * Advertise this route. */ @@ -63,7 +63,7 @@ type Route6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * The owner node group in a Cluster for this route6. If owner node group is not specified then the route is treated as Striped route. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go index 6f4a3fd2f..bce6908da 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan.go @@ -23,7 +23,7 @@ type Vlan struct { /** * A positive integer that uniquely identifies a VLAN. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * A name for the VLAN. Must begin with a letter, a number, or the underscore symbol, and can consist of from 1 to 31 letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the VLAN. However, you cannot perform any VLAN operation by specifying this name instead of the VLAN ID. */ @@ -39,7 +39,7 @@ type Vlan struct { /** * Specifies the maximum transmission unit (MTU), in bytes. The MTU is the largest packet size, excluding 14 bytes of ethernet header and 4 bytes of crc, that can be transmitted and received over this VLAN. */ - Mtu uint32 `json:"mtu,omitempty"` + Mtu int `json:"mtu,omitempty"` /** * If sharing is enabled, then this vlan can be shared across multiple partitions by binding it to all those partitions. If sharing is disabled, then this vlan can be bound to only one of the partitions. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go index f493bf97a..f9e5eb985 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_binding.go @@ -23,7 +23,7 @@ type Vlanbinding struct { /** * Integer that uniquely identifies the VLAN for which the details are to be displayed.
Minimum value = 1
Maximum value = 4094 */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go index 1ae6a793c..4a8296b0d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_channel_binding.go @@ -31,7 +31,7 @@ type Vlanchannelbinding struct { /** * Specifies the virtual LAN ID. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * The owner node group in a Cluster for this vlan. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go index 4bc6b6f90..d56365273 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_interface_binding.go @@ -31,7 +31,7 @@ type Vlaninterfacebinding struct { /** * Specifies the virtual LAN ID. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * The owner node group in a Cluster for this vlan. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go index f80ba5671..1e3a2fee8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_linkset_binding.go @@ -31,7 +31,7 @@ type Vlanlinksetbinding struct { /** * Specifies the virtual LAN ID. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * The owner node group in a Cluster for this vlan. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip6_binding.go new file mode 100644 index 000000000..601c17afe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip6_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to vlan. +*/ +type Vlannsip6binding struct { + /** + * The IP address assigned to the VLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id int `json:"id,omitempty"` + /** + * Subnet mask for the network address defined for this VLAN. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip_binding.go new file mode 100644 index 000000000..51445edba --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vlan_nsip_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to vlan. +*/ +type Vlannsipbinding struct { + /** + * The IP address assigned to the VLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Subnet mask for the network address defined for this VLAN. + */ + Netmask string `json:"netmask,omitempty"` + /** + * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. + */ + Td int `json:"td,omitempty"` + /** + * The owner node group in a Cluster for this vlan. + */ + Ownergroup string `json:"ownergroup,omitempty"` + /** + * Specifies the virtual LAN ID. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go index b15a996b7..155f9e6c1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid.go @@ -23,11 +23,11 @@ type Vrid struct { /** * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * Base priority (BP), in an active-active mode configuration, which ordinarily determines the master VIP address. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * In an active-active mode configuration, make a backup VIP address the master if its priority becomes higher than that of a master VIP address bound to this VMAC address. If you disable pre-emption while a backup VIP address is the master, the backup VIP address remains master until the original master VIP's priority becomes higher than that of the current master. @@ -50,15 +50,15 @@ type Vrid struct { /** * In a cluster setup, assign a cluster node as the owner of this VMAC address for IP based VRRP configuration. If no owner is configured, owner node is displayed as ALL and one node is dynamically elected as the owner. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * Priority by which the Effective priority will be reduced if any of the tracked interfaces goes down in an active-active configuration. */ - Trackifnumpriority uint32 `json:"trackifnumpriority,omitempty"` + Trackifnumpriority int `json:"trackifnumpriority,omitempty"` /** * Preemption delay time, in seconds, in an active-active configuration. If any high priority node will come in network, it will wait for these many seconds before becoming master. */ - Preemptiondelaytimer uint64 `json:"preemptiondelaytimer,omitempty"` + Preemptiondelaytimer int `json:"preemptiondelaytimer,omitempty"` /** * Remove all the configured VMAC addresses from the Citrix ADC. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go index b635c9cac..96343c425 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6.go @@ -23,11 +23,11 @@ type Vrid6 struct { /** * Integer value that uniquely identifies a VMAC6 address. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * Base priority (BP), in an active-active mode configuration, which ordinarily determines the master VIP address. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * In an active-active mode configuration, make a backup VIP address the master if its priority becomes higher than that of a master VIP address bound to this VMAC address. If you disable pre-emption while a backup VIP address is the master, the backup VIP address remains master until the original master VIP's priority becomes higher than that of the current master. @@ -50,15 +50,15 @@ type Vrid6 struct { /** * Preemption delay time in seconds, in an active-active configuration. If any high priority node will come in network, it will wait for these many seconds before becoming master. */ - Preemptiondelaytimer uint64 `json:"preemptiondelaytimer,omitempty"` + Preemptiondelaytimer int `json:"preemptiondelaytimer,omitempty"` /** * Priority by which the Effective priority will be reduced if any of the tracked interfaces goes down in an active-active configuration. */ - Trackifnumpriority uint32 `json:"trackifnumpriority,omitempty"` + Trackifnumpriority int `json:"trackifnumpriority,omitempty"` /** * In a cluster setup, assign a cluster node as the owner of this VMAC address for IP based VRRP configuration. If no owner is configured, ow ner node is displayed as ALL and one node is dynamically elected as the owner. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * Remove all configured VMAC6 addresses from the Citrix ADC. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go index 6b59fc484..7a5a109ff 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_binding.go @@ -23,7 +23,7 @@ type Vrid6binding struct { /** * Integer value that uniquely identifies a VMAC6 address.
Minimum value = 1
Maximum value = 255 */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go index 45acc145a..366565313 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_channel_binding.go @@ -27,15 +27,15 @@ type Vrid6channelbinding struct { /** * The VLAN in which this VRID resides. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer value that uniquely identifies a VMAC6 address. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go index 140a0d6a0..4a4998a51 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_interface_binding.go @@ -27,15 +27,15 @@ type Vrid6interfacebinding struct { /** * The VLAN in which this VRID resides. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer value that uniquely identifies a VMAC6 address. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip6_binding.go new file mode 100644 index 000000000..0fe56ba93 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to vrid6. +*/ +type Vrid6nsip6binding struct { + /** + * The IP address bound to the VRID6 + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags int `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip_binding.go new file mode 100644 index 000000000..e85847e0c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_nsip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to vrid6. +*/ +type Vrid6nsipbinding struct { + /** + * The IP address bound to the VRID6 + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags int `json:"flags,omitempty"` + /** + * Integer value that uniquely identifies a VMAC6 address. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go index 1ec2b601e..6bb08008e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid6_trackinterface_binding.go @@ -27,11 +27,11 @@ type Vrid6trackinterfacebinding struct { /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer value that uniquely identifies a VMAC6 address. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go index b3c2017a6..84b254c7a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_binding.go @@ -23,7 +23,7 @@ type Vridbinding struct { /** * Integer value that uniquely identifies the VMAC address.
Minimum value = 1
Maximum value = 255 */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go index 070346c3e..696b2b7f4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_channel_binding.go @@ -27,15 +27,15 @@ type Vridchannelbinding struct { /** * The VLAN in which this VRID resides. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go index 44c58bb3f..9865af1f0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_interface_binding.go @@ -27,15 +27,15 @@ type Vridinterfacebinding struct { /** * The VLAN in which this VRID resides. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip6_binding.go new file mode 100644 index 000000000..3e2f2385c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to vrid. +*/ +type Vridnsip6binding struct { + /** + * The IP address bound to the VRID. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags int `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip_binding.go new file mode 100644 index 000000000..6c0f04f19 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_nsip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to vrid. +*/ +type Vridnsipbinding struct { + /** + * The IP address bound to the VRID. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Flags. + */ + Flags int `json:"flags,omitempty"` + /** + * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go index 4204bf557..3837b3ee2 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vrid_trackinterface_binding.go @@ -27,11 +27,11 @@ type Vridtrackinterfacebinding struct { /** * Flags. */ - Flags uint32 `json:"flags,omitempty"` + Flags int `json:"flags,omitempty"` /** * Integer that uniquely identifies the VMAC address. The generic VMAC address is in the form of 00:00:5e:00:01:. For example, if you add a VRID with a value of 60 and bind it to an interface, the resulting VMAC address is 00:00:5e:00:01:3c, where 3c is the hexadecimal representation of 60. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go index c60d3c18e..f4e7e7740 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vridparam.go @@ -27,10 +27,10 @@ type Vridparam struct { /** * Interval, in milliseconds, between vrrp advertisement messages sent to the peer node in active-active mode. */ - Hellointerval uint32 `json:"hellointerval,omitempty"` + Hellointerval int `json:"hellointerval,omitempty"` /** * Number of seconds after which a peer node in active-active mode is marked down if vrrp advertisements are not received from the peer node. */ - Deadinterval uint64 `json:"deadinterval,omitempty"` + Deadinterval int `json:"deadinterval,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go index 2f38182be..325aa384a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan.go @@ -23,15 +23,15 @@ type Vxlan struct { /** * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * ID of VLANs whose traffic is allowed over this VXLAN. If you do not specify any VLAN IDs, the Citrix ADC allows traffic of all VLANs that are not part of any other VXLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Specifies UDP destination port for VXLAN packets. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Enable dynamic routing on this VXLAN. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go index 67c6e8d76..9069b3a3d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_binding.go @@ -23,7 +23,7 @@ type Vxlanbinding struct { /** * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN.
Minimum value = 1
Maximum value = 16777215 */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go index a0b4323f0..1df956575 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_iptunnel_binding.go @@ -23,7 +23,7 @@ type Vxlaniptunnelbinding struct { /** * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` /** * Specifies the name of the configured tunnel to be associated with this VXLAN. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip6_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip6_binding.go new file mode 100644 index 000000000..9bafdb266 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip6_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip6 that can be bound to vxlan. +*/ +type Vxlannsip6binding struct { + /** + * The IP address assigned to the VXLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id int `json:"id,omitempty"` + /** + * Subnet mask for the network address defined for this VXLAN. + */ + Netmask string `json:"netmask,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip_binding.go new file mode 100644 index 000000000..365c7325c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_nsip_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package network + +/** +* Binding class showing the nsip that can be bound to vxlan. +*/ +type Vxlannsipbinding struct { + /** + * The IP address assigned to the VXLAN. + */ + Ipaddress string `json:"ipaddress,omitempty"` + /** + * Subnet mask for the network address defined for this VXLAN. + */ + Netmask string `json:"netmask,omitempty"` + /** + * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. + */ + Id int `json:"id,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go index 69d58fcab..178377167 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlan_srcip_binding.go @@ -27,7 +27,7 @@ type Vxlansrcipbinding struct { /** * A positive integer, which is also called VXLAN Network Identifier (VNI), that uniquely identifies a VXLAN. */ - Id uint32 `json:"id,omitempty"` + Id int `json:"id,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go index e9b86fd06..7d1c76d74 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/network/vxlanvlanmap_vxlan_binding.go @@ -23,7 +23,7 @@ type Vxlanvlanmapvxlanbinding struct { /** * The VXLAN assigned to the vlan inside the cloud. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * The vlan id or the range of vlan ids in the on-premise network. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go index 23e4ef0f1..0c27b11b1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl.go @@ -35,7 +35,7 @@ type Nsacl struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an incoming IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. */ @@ -97,7 +97,7 @@ type Nsacl struct { /** * Number of seconds, in multiples of four, after which the extended ACL rule expires. If you do not want the extended ACL rule to expire, do not specify a TTL value. */ - Ttl uint32 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * MAC address to match against the source MAC address of an incoming IPv4 packet. */ @@ -113,15 +113,15 @@ type Nsacl struct { /** * Protocol to match against the protocol of an incoming IPv4 packet. */ - Protocolnumber uint32 `json:"protocolnumber,omitempty"` + Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL rule to the incoming packets on all VLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC applies the ACL rule only to the incoming packets of the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL rule to the incoming packets on all VXLANs. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC applies the ACL rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL rule to the incoming packets of all interfaces. */ @@ -134,16 +134,16 @@ type Nsacl struct { * ICMP Message type to match against the message type of an incoming ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. Note: This parameter can be specified only for the ICMP protocol. */ - Icmptype uint32 `json:"icmptype,omitempty"` + Icmptype int `json:"icmptype,omitempty"` /** * Code of a particular ICMP message type to match against the ICMP code of an incoming ICMP packet. For example, to block DESTINATION HOST UNREACHABLE messages, specify 3 as the ICMP type and 1 as the ICMP code. If you set this parameter, you must set the ICMP Type parameter. */ - Icmpcode uint32 `json:"icmpcode,omitempty"` + Icmpcode int `json:"icmpcode,omitempty"` /** * Priority for the extended ACL rule that determines the order in which it is evaluated relative to the other extended ACL rules. If you do not specify priorities while creating extended ACL rules, the ACL rules are evaluated in the order in which they are created. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Enable or disable the extended ACL rule. After you apply the extended ACL rules, the Citrix ADC compares incoming packets against the enabled extended ACL rules. */ @@ -155,7 +155,7 @@ type Nsacl struct { /** * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. */ - Ratelimit uint32 `json:"ratelimit,omitempty"` + Ratelimit int `json:"ratelimit,omitempty"` /** * Type of the acl ,default will be CLASSIC. Available options as follows: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go index 4d6b25192..5a70fae0b 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsacl6.go @@ -35,7 +35,7 @@ type Nsacl6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an incoming IPv6 packet. In the command line interface, separate the range with a hyphen. */ @@ -89,7 +89,7 @@ type Nsacl6 struct { /** * Time to expire this ACL6 (in seconds). */ - Ttl uint32 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` /** * MAC address to match against the source MAC address of an incoming IPv6 packet. */ @@ -105,15 +105,15 @@ type Nsacl6 struct { /** * Protocol, identified by protocol number, to match against the protocol of an incoming IPv6 packet. */ - Protocolnumber uint32 `json:"protocolnumber,omitempty"` + Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VLAN. If you do not specify a VLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC applies the ACL6 rule only to the incoming packets on the specified VXLAN. If you do not specify a VXLAN ID, the appliance applies the ACL6 rule to the incoming packets on all VXLANs. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC applies the ACL6 rule only to the incoming packets from the specified interface. If you do not specify any value, the appliance applies the ACL6 rule to the incoming packets from all interfaces. */ @@ -126,16 +126,16 @@ type Nsacl6 struct { * ICMP Message type to match against the message type of an incoming IPv6 ICMP packet. For example, to block DESTINATION UNREACHABLE messages, you must specify 3 as the ICMP type. Note: This parameter can be specified only for the ICMP protocol. */ - Icmptype uint32 `json:"icmptype,omitempty"` + Icmptype int `json:"icmptype,omitempty"` /** * Code of a particular ICMP message type to match against the ICMP code of an incoming IPv6 ICMP packet. For example, to block DESTINATION HOST UNREACHABLE messages, specify 3 as the ICMP type and 1 as the ICMP code. If you set this parameter, you must set the ICMP Type parameter. */ - Icmpcode uint32 `json:"icmpcode,omitempty"` + Icmpcode int `json:"icmpcode,omitempty"` /** * Priority for the ACL6 rule, which determines the order in which it is evaluated relative to the other ACL6 rules. If you do not specify priorities while creating ACL6 rules, the ACL6 rules are evaluated in the order in which they are created. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * State of the ACL6. */ @@ -154,7 +154,7 @@ type Nsacl6 struct { /** * hashprefix to be applied to SIP/DIP to generate rsshash FP.eg 128 => hash calculated on the complete IP */ - Dfdprefix uint32 `json:"dfdprefix,omitempty"` + Dfdprefix int `json:"dfdprefix,omitempty"` /** * If stateful option is enabled, transparent sessions are created for the traffic hitting this ACL6 and not hitting any other features like LB, INAT etc. */ @@ -166,7 +166,7 @@ type Nsacl6 struct { /** * Maximum number of log messages to be generated per second. If you set this parameter, you must enable the Log State parameter. */ - Ratelimit uint32 `json:"ratelimit,omitempty"` + Ratelimit int `json:"ratelimit,omitempty"` /** * Action associated with the ACL6. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go index 2b908c98c..39b550ac0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowcollector.go @@ -31,6 +31,6 @@ type Nsappflowcollector struct { /** * The UDP port on which the AppFlow collector is listening. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go index fc44d6fb5..572bd44ce 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsappflowparam.go @@ -23,11 +23,11 @@ type Nsappflowparam struct { /** * IPFIX template refresh interval (in seconds). */ - Templaterefresh uint64 `json:"templaterefresh,omitempty"` + Templaterefresh int `json:"templaterefresh,omitempty"` /** * MTU to be used for IPFIX UDP packets. */ - Udppmtu uint32 `json:"udppmtu,omitempty"` + Udppmtu int `json:"udppmtu,omitempty"` /** * Enable AppFlow HTTP URL logging. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go index 669581d75..29dda5d7b 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscapacity.go @@ -23,7 +23,7 @@ type Nscapacity struct { /** * System bandwidth limit. */ - Bandwidth uint32 `json:"bandwidth,omitempty"` + Bandwidth int `json:"bandwidth,omitempty"` /** * appliance platform type. */ @@ -43,7 +43,7 @@ type Nscapacity struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go index 43ef251ce..edc8dcc9e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconfig.go @@ -53,7 +53,7 @@ type Nsconfig struct { /** * VLAN (NSVLAN) for the subnet on which the IP address resides. */ - Nsvlan uint32 `json:"nsvlan,omitempty"` + Nsvlan int `json:"nsvlan,omitempty"` /** * Interfaces of the appliances that must be bound to the NSVLAN. */ @@ -66,15 +66,15 @@ type Nsconfig struct { /** * The HTTP ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. */ - Httpport []int32 `json:"httpport,omitempty"` + Httpport []int `json:"httpport,omitempty"` /** * The maximum number of connections that will be made from the system to the web server(s) attached to it. The value entered here is applied globally to all attached servers. */ - Maxconn uint32 `json:"maxconn,omitempty"` + Maxconn int `json:"maxconn,omitempty"` /** * The maximum number of requests that the system can pass on a particular connection between the system and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * The option to control (enable or disable) the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. @@ -97,11 +97,11 @@ type Nsconfig struct { /** * The minimum Path MTU. */ - Pmtumin uint32 `json:"pmtumin,omitempty"` + Pmtumin int `json:"pmtumin,omitempty"` /** * The timeout value in minutes. */ - Pmtutimeout uint32 `json:"pmtutimeout,omitempty"` + Pmtutimeout int `json:"pmtutimeout,omitempty"` /** * Port range configured for FTP services. */ @@ -117,19 +117,19 @@ type Nsconfig struct { /** * The percentage of shared quota to be granted at a time for maxClient */ - Grantquotamaxclient uint32 `json:"grantquotamaxclient,omitempty"` + Grantquotamaxclient int `json:"grantquotamaxclient,omitempty"` /** * The percentage of maxClient to be given to PEs */ - Exclusivequotamaxclient uint32 `json:"exclusivequotamaxclient,omitempty"` + Exclusivequotamaxclient int `json:"exclusivequotamaxclient,omitempty"` /** * The percentage of shared quota to be granted at a time for spillover */ - Grantquotaspillover uint32 `json:"grantquotaspillover,omitempty"` + Grantquotaspillover int `json:"grantquotaspillover,omitempty"` /** * The percentage of max limit to be given to PEs */ - Exclusivequotaspillover uint32 `json:"exclusivequotaspillover,omitempty"` + Exclusivequotaspillover int `json:"exclusivequotaspillover,omitempty"` /** * Use this option to do saveconfig for all partitions */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go index b354a556f..d62348482 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsconnectiontable.go @@ -177,7 +177,7 @@ type Nsconnectiontable struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go index 88e18d8b6..7d66d7a32 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nscqaparam.go @@ -23,7 +23,7 @@ type Nscqaparam struct { /** * HARQ retransmission delay (in ms). */ - Harqretxdelay uint32 `json:"harqretxdelay,omitempty"` + Harqretxdelay int `json:"harqretxdelay,omitempty"` /** * Name of the network label. */ @@ -31,7 +31,7 @@ type Nscqaparam struct { /** * MIN RTT (in ms) for the first network. */ - Minrttnet1 uint32 `json:"minrttnet1,omitempty"` + Minrttnet1 int `json:"minrttnet1,omitempty"` /** * coefficients values for Label1. */ @@ -59,7 +59,7 @@ type Nscqaparam struct { /** * MIN RTT (in ms) for the second network. */ - Minrttnet2 uint32 `json:"minrttnet2,omitempty"` + Minrttnet2 int `json:"minrttnet2,omitempty"` /** * coefficients values for Label 2. */ @@ -87,7 +87,7 @@ type Nscqaparam struct { /** * MIN RTT (in ms) for the third network. */ - Minrttnet3 uint32 `json:"minrttnet3,omitempty"` + Minrttnet3 int `json:"minrttnet3,omitempty"` /** * Three congestion level scores limits corresponding to None, Low, Medium. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go index bccbaac4c..6092a17ee 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsdiameter.go @@ -41,6 +41,6 @@ type Nsdiameter struct { /** * ID of the cluster node for which the diameter id is set, can be configured only through CLIP */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go index 0e5e1af0b..f45db0f7e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsevents.go @@ -23,7 +23,7 @@ type Nsevents struct { /** * Event number starting from which events must be shown. */ - Eventno uint32 `json:"eventno,omitempty"` + Eventno int `json:"eventno,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go index 953d38415..a8be97acb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsextension_extensionfunction_binding.go @@ -27,7 +27,7 @@ type Nsextensionextensionfunctionbinding struct { /** * Line number of the function in file. */ - Extensionfunctionlinenumber uint32 `json:"extensionfunctionlinenumber,omitempty"` + Extensionfunctionlinenumber int `json:"extensionfunctionlinenumber,omitempty"` /** * Extension function class type. */ @@ -39,7 +39,7 @@ type Nsextensionextensionfunctionbinding struct { /** * Extension function is in use or not. */ - Activeextensionfunction int32 `json:"activeextensionfunction,omitempty"` + Activeextensionfunction int `json:"activeextensionfunction,omitempty"` /** * List of extension function's arguments types */ @@ -51,7 +51,7 @@ type Nsextensionextensionfunctionbinding struct { /** * Number of parameters in the extension function */ - Extensionfunctionargcount uint32 `json:"extensionfunctionargcount,omitempty"` + Extensionfunctionargcount int `json:"extensionfunctionargcount,omitempty"` /** * List of classes (including inherited) that the function is present in. */ @@ -59,7 +59,7 @@ type Nsextensionextensionfunctionbinding struct { /** * Number of classes the function is present in. */ - Extensionfunctionclassescount uint32 `json:"extensionfunctionclassescount,omitempty"` + Extensionfunctionclassescount int `json:"extensionfunctionclassescount,omitempty"` /** * List of parameters (including promotions) that the function can accept. */ @@ -67,7 +67,7 @@ type Nsextensionextensionfunctionbinding struct { /** * Number of parameters (including promotions) that the function can accept. */ - Extensionfunctionallparamscount uint32 `json:"extensionfunctionallparamscount,omitempty"` + Extensionfunctionallparamscount int `json:"extensionfunctionallparamscount,omitempty"` /** * Name of the extension object. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go index ff2d3467e..847feedda 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshostname.go @@ -27,6 +27,6 @@ type Nshostname struct { /** * ID of the cluster node for which you are setting the hostname. Can be configured only through the cluster IP address. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go index 195363944..3b05bf1fb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpparam.go @@ -51,7 +51,7 @@ type Nshttpparam struct { /** * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. */ - Maxreusepool uint32 `json:"maxreusepool,omitempty"` + Maxreusepool int `json:"maxreusepool,omitempty"` /** * Enable/Disable HTTP/2 on server side */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go index 012a07b52..45b3dccda 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nshttpprofile.go @@ -60,7 +60,7 @@ type Nshttpprofile struct { /** * Maximum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. If non-zero value is given, it has to be greater than or equal to the number of running Packet Engines. */ - Maxreusepool uint32 `json:"maxreusepool,omitempty"` + Maxreusepool int `json:"maxreusepool,omitempty"` /** * Drop any extra 'CR' and 'LF' characters present after the header. */ @@ -68,7 +68,7 @@ type Nshttpprofile struct { /** * Maximum time to wait, in milliseconds, between incomplete header packets. If the header packets take longer to arrive at Citrix ADC, the connection is silently dropped. */ - Incomphdrdelay uint32 `json:"incomphdrdelay,omitempty"` + Incomphdrdelay int `json:"incomphdrdelay,omitempty"` /** * HTTP connection to be upgraded to a web socket connection. Once upgraded, Citrix ADC does not process Layer 7 traffic on this connection. */ @@ -80,7 +80,7 @@ type Nshttpprofile struct { /** * Time, in seconds, within which the HTTP request must complete. If the request does not complete within this time, the specified request timeout action is executed. Zero disables the timeout. */ - Reqtimeout uint32 `json:"reqtimeout,omitempty"` + Reqtimeout int `json:"reqtimeout,omitempty"` /** * Adapts the configured request timeout based on flow conditions. The timeout is increased or decreased internally and applied on the flow. */ @@ -107,7 +107,7 @@ type Nshttpprofile struct { /** * Maximum number of requests allowed on a single connection. Zero implies no limit on the number of requests. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * Generate the persistent Citrix ADC specific ETag for the HTTP response with ETag header. */ @@ -143,67 +143,67 @@ type Nshttpprofile struct { /** * Idle timeout (in seconds) for server connections in re-use pool. Connections in the re-use pool are flushed, if they remain idle for the configured timeout. */ - Reusepooltimeout uint32 `json:"reusepooltimeout,omitempty"` + Reusepooltimeout int `json:"reusepooltimeout,omitempty"` /** * Number of bytes to be queued to look for complete header before returning error. If complete header is not obtained after queuing these many bytes, request will be marked as invalid and no L7 processing will be done for that TCP connection. */ - Maxheaderlen uint32 `json:"maxheaderlen,omitempty"` + Maxheaderlen int `json:"maxheaderlen,omitempty"` /** * Minimum limit on the number of connections, from the Citrix ADC to a particular server that are kept in the reuse pool. This setting is helpful for optimal memory utilization and for reducing the idle connections to the server just after the peak time. Zero implies no limit on reuse pool size. */ - Minreusepool uint32 `json:"minreusepool,omitempty"` + Minreusepool int `json:"minreusepool,omitempty"` /** * Maximum size of header list that the Citrix ADC is prepared to accept, in bytes. NOTE: The actual plain text header size that the Citrix ADC accepts is limited by maxHeaderLen. Please change maxHeaderLen parameter as well when modifying http2MaxHeaderListSize. */ - Http2maxheaderlistsize uint32 `json:"http2maxheaderlistsize,omitempty"` + Http2maxheaderlistsize int `json:"http2maxheaderlistsize,omitempty"` /** * Maximum size of the frame payload that the Citrix ADC is willing to receive, in bytes. */ - Http2maxframesize uint32 `json:"http2maxframesize,omitempty"` + Http2maxframesize int `json:"http2maxframesize,omitempty"` /** * Maximum number of concurrent streams that is allowed per connection. */ - Http2maxconcurrentstreams uint32 `json:"http2maxconcurrentstreams,omitempty"` + Http2maxconcurrentstreams int `json:"http2maxconcurrentstreams,omitempty"` /** * Initial window size for connection level flow control, in bytes. */ - Http2initialconnwindowsize uint32 `json:"http2initialconnwindowsize,omitempty"` + Http2initialconnwindowsize int `json:"http2initialconnwindowsize,omitempty"` /** * Initial window size for stream level flow control, in bytes. */ - Http2initialwindowsize uint32 `json:"http2initialwindowsize,omitempty"` + Http2initialwindowsize int `json:"http2initialwindowsize,omitempty"` /** * Maximum size of the header compression table used to decode header blocks, in bytes. */ - Http2headertablesize uint32 `json:"http2headertablesize,omitempty"` + Http2headertablesize int `json:"http2headertablesize,omitempty"` /** * Minimum number of HTTP2 connections established to backend server, on receiving HTTP requests from client before multiplexing the streams into the available HTTP/2 connections. */ - Http2minseverconn uint32 `json:"http2minseverconn,omitempty"` + Http2minseverconn int `json:"http2minseverconn,omitempty"` /** * Maximum number of ping frames allowed in HTTP2 connection per minute */ - Http2maxpingframespermin uint32 `json:"http2maxpingframespermin,omitempty"` + Http2maxpingframespermin int `json:"http2maxpingframespermin,omitempty"` /** * Maximum number of settings frames allowed in HTTP2 connection per minute */ - Http2maxsettingsframespermin uint32 `json:"http2maxsettingsframespermin,omitempty"` + Http2maxsettingsframespermin int `json:"http2maxsettingsframespermin,omitempty"` /** * Maximum number of reset frames allowed in HTTP/2 connection per minute */ - Http2maxresetframespermin uint32 `json:"http2maxresetframespermin,omitempty"` + Http2maxresetframespermin int `json:"http2maxresetframespermin,omitempty"` /** * Maximum number of empty frames allowed in HTTP2 connection per minute */ - Http2maxemptyframespermin uint32 `json:"http2maxemptyframespermin,omitempty"` + Http2maxemptyframespermin int `json:"http2maxemptyframespermin,omitempty"` /** * Maximum size in bytes allowed to buffer gRPC packets till trailer is received */ - Grpcholdlimit uint32 `json:"grpcholdlimit,omitempty"` + Grpcholdlimit int `json:"grpcholdlimit,omitempty"` /** * Maximum time in milliseconds allowed to buffer gRPC packets till trailer is received. The value should be in multiples of 100 */ - Grpcholdtimeout uint32 `json:"grpcholdtimeout,omitempty"` + Grpcholdtimeout int `json:"grpcholdtimeout,omitempty"` /** * Set to DISABLED for gRPC without a length delimitation. */ @@ -211,7 +211,7 @@ type Nshttpprofile struct { /** * This option sets the satisfactory threshold (T) for client response time in milliseconds to be used for APDEX calculations. This means a transaction responding in less than this threshold is considered satisfactory. Transaction responding between T and 4*T is considered tolerable. Any transaction responding in more than 4*T time is considered frustrating. Citrix ADC maintains stats for such tolerable and frustrating transcations. And client response time related apdex counters are only updated on a vserver which receives clients traffic. */ - Apdexcltresptimethreshold uint32 `json:"apdexcltresptimethreshold,omitempty"` + Apdexcltresptimethreshold int `json:"apdexcltresptimethreshold,omitempty"` /** * Choose whether to enable support for HTTP/3. */ @@ -219,15 +219,15 @@ type Nshttpprofile struct { /** * Maximum size of the HTTP/3 header field section, in bytes. */ - Http3maxheaderfieldsectionsize uint32 `json:"http3maxheaderfieldsectionsize,omitempty"` + Http3maxheaderfieldsectionsize int `json:"http3maxheaderfieldsectionsize,omitempty"` /** * Maximum size of the HTTP/3 QPACK dynamic header table, in bytes. */ - Http3maxheadertablesize uint32 `json:"http3maxheadertablesize,omitempty"` + Http3maxheadertablesize int `json:"http3maxheadertablesize,omitempty"` /** * Maximum number of HTTP/3 streams that can be blocked while HTTP/3 headers are being decoded. */ - Http3maxheaderblockedstreams uint32 `json:"http3maxheaderblockedstreams,omitempty"` + Http3maxheaderblockedstreams int `json:"http3maxheaderblockedstreams,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go index 4a72ead94..c146472d0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsicapprofile.go @@ -32,7 +32,7 @@ type Nsicapprofile struct { /** * Value of Preview Header field. Citrix ADC uses the minimum of this set value and the preview size received on OPTIONS response. */ - Previewlength uint32 `json:"previewlength,omitempty"` + Previewlength int `json:"previewlength,omitempty"` /** * URI representing icap service. It is a mandatory argument while creating an icapprofile. */ @@ -74,7 +74,7 @@ type Nsicapprofile struct { /** * Time, in seconds, within which the remote server should respond to the ICAP-request. If the Netscaler does not receive full response with this time, the specified request timeout action is performed. Zero value disables this timeout functionality. */ - Reqtimeout uint32 `json:"reqtimeout,omitempty"` + Reqtimeout int `json:"reqtimeout,omitempty"` /** * Name of the action to perform if the Vserver/Server representing the remote service does not respond with any response within the timeout value configured. The Supported actions are * BYPASS - This Ignores the remote server response and sends the request/response to Client/Server. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go index 74af25fd3..5c4715ee5 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip.go @@ -111,7 +111,7 @@ type Nsip struct { /** * Tag value for the network/host route associated with this IP. */ - Tag uint32 `json:"tag,omitempty"` + Tag int `json:"tag,omitempty"` /** * IP address of the gateway of the route for this VIP address. */ @@ -119,7 +119,7 @@ type Nsip struct { /** * Integer value to add to or subtract from the cost of the route advertised for the VIP address. */ - Metric int32 `json:"metric,omitempty"` + Metric int `json:"metric,omitempty"` /** * Advertise the route for the Virtual IP (VIP) address on the basis of the state of the virtual servers associated with that VIP. * NONE - Advertise the route for the VIP address, regardless of the state of the virtual servers associated with the address. @@ -139,7 +139,7 @@ type Nsip struct { /** * ID of the area in which the type1 link-state advertisements (LSAs) are to be advertised for this virtual IP (VIP) address by the OSPF protocol running on the Citrix ADC. When this parameter is not set, the VIP is advertised on all areas. */ - Ospfarea uint32 `json:"ospfarea,omitempty"` + Ospfarea int `json:"ospfarea,omitempty"` /** * Enable or disable the IP address. */ @@ -147,7 +147,7 @@ type Nsip struct { /** * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. */ - Vrid uint32 `json:"vrid,omitempty"` + Vrid int `json:"vrid,omitempty"` /** * Respond to ICMP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: * NONE - The Citrix ADC responds to any ICMP request for the VIP address, irrespective of the states of the virtual servers associated with the address. @@ -163,7 +163,7 @@ type Nsip struct { /** * The owner node in a Cluster for this IP address. Owner node can vary from 0 to 31. If ownernode is not specified then the IP is treated as Striped IP. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * Respond to ARP requests for a Virtual IP (VIP) address on the basis of the states of the virtual servers associated with that VIP. Available settings function as follows: * NONE - The Citrix ADC responds to any ARP request for the VIP address, irrespective of the states of the virtual servers associated with the address. @@ -178,11 +178,11 @@ type Nsip struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. TD id 4095 is used reserved for LSN use */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * The arp owner in a Cluster for this IP address. It can vary from 0 to 31. */ - Arpowner uint32 `json:"arpowner,omitempty"` + Arpowner int `json:"arpowner,omitempty"` /** * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go index d2b2ce2a7..af12580d9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsip6.go @@ -35,7 +35,7 @@ type Nsip6 struct { /** * The VLAN number. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Respond to Neighbor Discovery (ND) requests for this IP address. */ @@ -99,7 +99,7 @@ type Nsip6 struct { /** * Tag value for the network/host route associated with this IP. */ - Tag uint32 `json:"tag,omitempty"` + Tag int `json:"tag,omitempty"` /** * IPv6 address of the gateway for the route. If Gateway is not set, VIP uses :: as the gateway. */ @@ -107,7 +107,7 @@ type Nsip6 struct { /** * Integer value to add to or subtract from the cost of the route advertised for the VIP6 address. */ - Metric int32 `json:"metric,omitempty"` + Metric int `json:"metric,omitempty"` /** * Advertise or do not advertise the route for the Virtual IP (VIP6) address on the basis of the state of the virtual servers associated with that VIP6. * NONE - Advertise the route for the VIP6 address, irrespective of the state of the virtual servers associated with the address. @@ -127,7 +127,7 @@ type Nsip6 struct { /** * ID of the area in which the Intra-Area-Prefix LSAs are to be advertised for the VIP6 address by the IPv6 OSPF protocol running on the Citrix ADC. When ospfArea is not set, VIP6 is advertised on all areas. */ - Ospfarea uint32 `json:"ospfarea,omitempty"` + Ospfarea int `json:"ospfarea,omitempty"` /** * Enable or disable the IP address. */ @@ -139,11 +139,11 @@ type Nsip6 struct { /** * A positive integer that uniquely identifies a VMAC address for binding to this VIP address. This binding is used to set up Citrix ADCs in an active-active configuration using VRRP. */ - Vrid6 uint32 `json:"vrid6,omitempty"` + Vrid6 int `json:"vrid6,omitempty"` /** * ID of the cluster node for which you are adding the IP address. Must be used if you want the IP address to be active only on the specific node. Can be configured only through the cluster IP address. Cannot be changed after the IP address is created. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` /** * in cluster system, if the owner node is down, whether should it respond to icmp/arp */ @@ -151,11 +151,11 @@ type Nsip6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * NdOwner in Cluster for VIPS and Striped SNIPS */ - Ndowner uint32 `json:"ndowner,omitempty"` + Ndowner int `json:"ndowner,omitempty"` /** * If enabled, this IP will be advertised by Citrix ADC to MPTCP enabled clients as part of ADD_ADDR option. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go index 33184c7d3..c37d2a72d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseparameters.go @@ -23,10 +23,10 @@ type Nslicenseparameters struct { /** * If ADC remains in grace for the configured hours then first grace alert will be raised */ - Alert1gracetimeout uint32 `json:"alert1gracetimeout,omitempty"` + Alert1gracetimeout int `json:"alert1gracetimeout,omitempty"` /** * If ADC remains in grace for the configured hours then major grace alert will be raised */ - Alert2gracetimeout uint32 `json:"alert2gracetimeout,omitempty"` + Alert2gracetimeout int `json:"alert2gracetimeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go index d35d48e9f..82596c6d4 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseproxyserver.go @@ -31,6 +31,6 @@ type Nslicenseproxyserver struct { /** * License proxy server port. */ - Port uint32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go index 59b6ce6fe..103faa6b1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslicenseserver.go @@ -31,7 +31,7 @@ type Nslicenseserver struct { /** * License server port. */ - Port uint32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * If this flag is used while adding the licenseserver, existing config will be overwritten. Use this flag only if you are sure that the new licenseserver has the required capacity. */ @@ -39,7 +39,7 @@ type Nslicenseserver struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go index e9d99f673..d29d23660 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier.go @@ -28,11 +28,11 @@ type Nslimitidentifier struct { * Maximum number of requests that are allowed in the given timeslice when requests (mode is set as REQUEST_RATE) are tracked per timeslice. When connections (mode is set as CONNECTION) are tracked, it is the total number of connections that would be let through. */ - Threshold uint32 `json:"threshold,omitempty"` + Threshold int `json:"threshold,omitempty"` /** * Time interval, in milliseconds, specified in multiples of 10, during which requests are tracked to check if they cross the threshold. This argument is needed only when the mode is set to REQUEST_RATE. */ - Timeslice uint32 `json:"timeslice,omitempty"` + Timeslice int `json:"timeslice,omitempty"` /** * Defines the type of traffic to be tracked. * REQUEST_RATE - Tracks requests/timeslice. @@ -64,11 +64,11 @@ type Nslimitidentifier struct { /** * Maximum bandwidth permitted, in kbps. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Number of traps to be sent in the timeslice configured. A value of 0 indicates that traps are disabled. */ - Trapsintimeslice uint32 `json:"trapsintimeslice,omitempty"` + Trapsintimeslice int `json:"trapsintimeslice,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go new file mode 100644 index 000000000..21f62e778 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nslimitidentifier_nslimitsessions_binding.go @@ -0,0 +1,29 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the nslimitsessions that can be bound to nslimitidentifier. +*/ +type Nslimitidentifiernslimitsessionsbinding struct { + /** + * Name of the rate limit identifier about which to display information. If a name is not provided, information about all rate limit identifiers is shown. + */ + Limitidentifier string `json:"limitidentifier,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go index cf8963be4..deb0e49ee 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsparam.go @@ -23,15 +23,15 @@ type Nsparam struct { /** * HTTP ports on the web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. */ - Httpport []int32 `json:"httpport,omitempty"` + Httpport []int `json:"httpport,omitempty"` /** * Maximum number of connections that will be made from the appliance to the web server(s) attached to it. The value entered here is applied globally to all attached servers. - */ - Maxconn uint32 `json:"maxconn,omitempty"` + */ + Maxconn int `json:"maxconn"` // Zero is a valid value /** * Maximum number of requests that the system can pass on a particular connection between the appliance and a server attached to it. Setting this value to 0 allows an unlimited number of requests to be passed. This value is overridden by the maximum number of requests configured on the individual service. */ - Maxreq uint32 `json:"maxreq,omitempty"` + Maxreq int `json:"maxreq,omitempty"` /** * Enable or disable the insertion of the actual client IP address into the HTTP header request passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. * If the CIP header is specified, it will be used as the client IP header. @@ -53,11 +53,11 @@ type Nsparam struct { /** * Minimum path MTU value that Citrix ADC will process in the ICMP fragmentation needed message. If the ICMP message contains a value less than this value, then this value is used instead. */ - Pmtumin uint32 `json:"pmtumin,omitempty"` + Pmtumin int `json:"pmtumin,omitempty"` /** * Interval, in minutes, for flushing the PMTU entries. */ - Pmtutimeout uint32 `json:"pmtutimeout,omitempty"` + Pmtutimeout int `json:"pmtutimeout,omitempty"` /** * Minimum and maximum port (port range) that FTP services are allowed to use. */ @@ -73,19 +73,19 @@ type Nsparam struct { /** * Percentage of shared quota to be granted at a time for maxClient. */ - Grantquotamaxclient uint32 `json:"grantquotamaxclient,omitempty"` + Grantquotamaxclient int `json:"grantquotamaxclient,omitempty"` /** * Percentage of maxClient to be given to PEs. */ - Exclusivequotamaxclient uint32 `json:"exclusivequotamaxclient,omitempty"` + Exclusivequotamaxclient int `json:"exclusivequotamaxclient,omitempty"` /** * Percentage of shared quota to be granted at a time for spillover. */ - Grantquotaspillover uint32 `json:"grantquotaspillover,omitempty"` + Grantquotaspillover int `json:"grantquotaspillover,omitempty"` /** * Percentage of maximum limit to be given to PEs. */ - Exclusivequotaspillover uint32 `json:"exclusivequotaspillover,omitempty"` + Exclusivequotaspillover int `json:"exclusivequotaspillover,omitempty"` /** * Enable/Disable use_proxy_port setting */ @@ -102,7 +102,7 @@ type Nsparam struct { * The ICA ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. */ - Icaports []int32 `json:"icaports,omitempty"` + Icaports []int `json:"icaports,omitempty"` /** * Enable or disable the insertion of the client TCP/IP header in TCP payload passed from the client to one, some, or all servers attached to the system. The passed address can then be accessed through a minor modification to the server. */ @@ -110,20 +110,20 @@ type Nsparam struct { /** * VLAN on which the subscriber traffic arrives on the appliance. */ - Servicepathingressvlan uint32 `json:"servicepathingressvlan,omitempty"` + Servicepathingressvlan int `json:"servicepathingressvlan,omitempty"` /** * The Secure ICA ports on the Web server. This allows the system to perform connection off-load for any client request that has a destination port matching one of these configured ports. */ - Secureicaports []int32 `json:"secureicaports,omitempty"` + Secureicaports []int `json:"secureicaports,omitempty"` /** * This allow the configuration of management HTTP port. */ - Mgmthttpport int32 `json:"mgmthttpport,omitempty"` + Mgmthttpport int `json:"mgmthttpport,omitempty"` /** * This allows the configuration of management HTTPS port. */ - Mgmthttpsport int32 `json:"mgmthttpsport,omitempty"` + Mgmthttpsport int `json:"mgmthttpsport,omitempty"` /** * Disable/Enable v1 or v2 proxy protocol header for client info insertion */ @@ -135,7 +135,7 @@ type Nsparam struct { /** * Set the IP Time to Live (TTL) and Hop Limit value for all outgoing packets from Citrix ADC. */ - Ipttl uint32 `json:"ipttl,omitempty"` + Ipttl int `json:"ipttl,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go index 1c62bba85..ebc86ad8a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition.go @@ -27,19 +27,19 @@ type Nspartition struct { /** * Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits. */ - Maxbandwidth uint32 `json:"maxbandwidth,omitempty"` + Maxbandwidth int `json:"maxbandwidth,omitempty"` /** * Minimum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits */ - Minbandwidth uint32 `json:"minbandwidth,omitempty"` + Minbandwidth int `json:"minbandwidth,omitempty"` /** * Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections. */ - Maxconn uint32 `json:"maxconn,omitempty"` + Maxconn int `json:"maxconn,omitempty"` /** * Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits. */ - Maxmemlimit uint64 `json:"maxmemlimit,omitempty"` + Maxmemlimit int `json:"maxmemlimit,omitempty"` /** * Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go index ae1b7fb4d..f6e6b07db 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_bridgegroup_binding.go @@ -23,7 +23,7 @@ type Nspartitionbridgegroupbinding struct { /** * Identifier of the bridge group that is assigned to this partition. */ - Bridgegroup uint32 `json:"bridgegroup,omitempty"` + Bridgegroup int `json:"bridgegroup,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go index a6071214f..a12a4f5e8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vlan_binding.go @@ -23,7 +23,7 @@ type Nspartitionvlanbinding struct { /** * Identifier of the vlan that is assigned to this partition. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go index 88e4c15cd..365d7ed3f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspartition_vxlan_binding.go @@ -23,7 +23,7 @@ type Nspartitionvxlanbinding struct { /** * Identifier of the vxlan that is assigned to this partition. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go index 04b7b2410..96541b572 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr.go @@ -34,7 +34,7 @@ type Nspbr struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * IP address or range of IP addresses to match against the source IP address of an outgoing IPv4 packet. In the command line interface, separate the range with a hyphen. For example: 10.102.29.30-10.102.29.189. */ @@ -123,15 +123,15 @@ type Nspbr struct { /** * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv4 packet. */ - Protocolnumber uint32 `json:"protocolnumber,omitempty"` + Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC compares the PBR only to the outgoing packets on the specified VXLAN. If you do not specify any interface ID, the appliance compares the PBR to the outgoing packets on all VXLANs. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC compares the PBR only to the outgoing packets on the specified interface. If you do not specify any value, the appliance compares the PBR to the outgoing packets on all interfaces. */ @@ -139,7 +139,7 @@ type Nspbr struct { /** * Priority of the PBR, which determines the order in which it is evaluated relative to the other PBRs. If you do not specify priorities while creating PBRs, the PBRs are evaluated in the order in which they are created. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Monitor the route specified byte Next Hop parameter. This parameter is not applicable if you specify a link load balancing (LLB) virtual server name with the Next Hop parameter. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go index 852d11fc8..bd1e3cfed 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nspbr6.go @@ -27,7 +27,7 @@ type Nspbr6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Action to perform on the outgoing IPv6 packets that match the PBR6. Available settings function as follows: @@ -99,15 +99,15 @@ type Nspbr6 struct { /** * Protocol, identified by protocol number, to match against the protocol of an outgoing IPv6 packet. */ - Protocolnumber uint32 `json:"protocolnumber,omitempty"` + Protocolnumber int `json:"protocolnumber,omitempty"` /** * ID of the VLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VLANs. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * ID of the VXLAN. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified VXLAN. If you do not specify an interface ID, the appliance compares the PBR6 to the outgoing packets on all VXLANs. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * ID of an interface. The Citrix ADC compares the PBR6 only to the outgoing packets on the specified interface. If you do not specify a value, the appliance compares the PBR6 to the outgoing packets on all interfaces. */ @@ -115,7 +115,7 @@ type Nspbr6 struct { /** * Priority of the PBR6, which determines the order in which it is evaluated relative to the other PBR6s. If you do not specify priorities while creating PBR6s, the PBR6s are evaluated in the order in which they are created. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Enable or disable the PBR6. After you apply the PBR6s, the Citrix ADC compares outgoing packets to the enabled PBR6s. */ @@ -147,7 +147,7 @@ type Nspbr6 struct { /** * VLAN number to be used for link local nexthop . */ - Nexthopvlan uint32 `json:"nexthopvlan,omitempty"` + Nexthopvlan int `json:"nexthopvlan,omitempty"` /** * The owner node group in a Cluster for this pbr rule. If owner node group is not specified then the pbr rule is treated as Striped pbr rule. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go index bf6c94782..f741d2dfd 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsratecontrol.go @@ -23,18 +23,18 @@ type Nsratecontrol struct { /** * Number of SYNs permitted per 10 milliseconds. */ - Tcpthreshold uint32 `json:"tcpthreshold,omitempty"` + Tcpthreshold int `json:"tcpthreshold,omitempty"` /** * Number of UDP packets permitted per 10 milliseconds. */ - Udpthreshold uint32 `json:"udpthreshold,omitempty"` + Udpthreshold int `json:"udpthreshold,omitempty"` /** * Number of ICMP packets permitted per 10 milliseconds. */ - Icmpthreshold uint32 `json:"icmpthreshold,omitempty"` + Icmpthreshold int `json:"icmpthreshold,omitempty"` /** * The number of TCP RST packets permitted per 10 milli second. zero means rate control is disabled and 0xffffffff means every thing is rate controlled */ - Tcprstthreshold uint32 `json:"tcprstthreshold,omitempty"` + Tcprstthreshold int `json:"tcprstthreshold,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go index 8bc0ba744..fdc938aad 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicefunction.go @@ -27,6 +27,6 @@ type Nsservicefunction struct { /** * VLAN ID on which the traffic from service function reaches Citrix ADC. */ - Ingressvlan uint32 `json:"ingressvlan,omitempty"` + Ingressvlan int `json:"ingressvlan,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_nsservicefunction_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_nsservicefunction_binding.go new file mode 100644 index 000000000..368c1e5e8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsservicepath_nsservicefunction_binding.go @@ -0,0 +1,39 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the nsservicefunction that can be bound to nsservicepath. +*/ +type Nsservicepathnsservicefunctionbinding struct { + /** + * List of service functions constituting the chain. + */ + Servicefunction string `json:"servicefunction,omitempty"` + /** + * The serviceindex of each servicefunction in path. + */ + Index int `json:"index,omitempty"` + /** + * Name for the Service path. Must begin with an ASCII alphanumeric or underscore (_) character, and must + contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) + characters. + */ + Servicepathname string `json:"servicepathname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go index 66f49ebd3..cdad1c947 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl.go @@ -31,7 +31,7 @@ type Nssimpleacl struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * IP address to match against the source IP address of an incoming IPv4 packet. */ @@ -40,7 +40,7 @@ type Nssimpleacl struct { * Port number to match against the destination port number of an incoming IPv4 packet. DestPort is mandatory while setting Protocol. Omitting the port number and protocol creates an all-ports and all protocols simple ACL rule, which matches any port and any protocol. In that case, you cannot create another simple ACL rule specifying a specific port and the same source IPv4 address. */ - Destport int32 `json:"destport,omitempty"` + Destport int `json:"destport,omitempty"` /** * Protocol to match against the protocol of an incoming IPv4 packet. You must set this parameter if you have set the Destination Port parameter. */ @@ -48,7 +48,7 @@ type Nssimpleacl struct { /** * Number of seconds, in multiples of four, after which the simple ACL rule expires. If you do not want the simple ACL rule to expire, do not specify a TTL value. */ - Ttl uint32 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` Estsessions bool `json:"estsessions,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go index 246bb697c..c27a58e78 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssimpleacl6.go @@ -27,7 +27,7 @@ type Nssimpleacl6 struct { /** * Integer value that uniquely identifies the traffic domain in which you want to configure the entity. If you do not specify an ID, the entity becomes part of the default traffic domain, which has an ID of 0. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Drop incoming IPv6 packets that match the simple ACL6 rule. */ @@ -40,7 +40,7 @@ type Nssimpleacl6 struct { * Port number to match against the destination port number of an incoming IPv6 packet. DestPort is mandatory while setting Protocol. Omitting the port number and protocol creates an all-ports and all protocol simple ACL6 rule, which matches any port and any protocol. In that case, you cannot create another simple ACL6 rule specifying a specific port and the same source IPv6 address. */ - Destport int32 `json:"destport,omitempty"` + Destport int `json:"destport,omitempty"` /** * Protocol to match against the protocol of an incoming IPv6 packet. You must set this parameter if you set the Destination Port parameter. */ @@ -48,7 +48,7 @@ type Nssimpleacl6 struct { /** * Number of seconds, in multiples of four, after which the simple ACL6 rule expires. If you do not want the simple ACL6 rule to expire, do not specify a TTL value. */ - Ttl uint32 `json:"ttl,omitempty"` + Ttl int `json:"ttl,omitempty"` Estsessions bool `json:"estsessions,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go index 1a2c66c1c..ec35d574e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsspparams.go @@ -23,7 +23,7 @@ type Nsspparams struct { /** * Maximum number of server connections that can be opened before surge protection is activated. */ - Basethreshold int32 `json:"basethreshold,omitempty"` + Basethreshold int `json:"basethreshold,omitempty"` /** * Rate at which the system opens connections to the server. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go index a4838a18e..914a52133 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nssurgeq.go @@ -31,6 +31,6 @@ type Nssurgeq struct { /** * port on which server is bound to the entity(Servicegroup). */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go index 550bc6300..90cc961c8 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpbufparam.go @@ -23,11 +23,11 @@ type Nstcpbufparam struct { /** * TCP buffering size per connection, in kilobytes. */ - Size uint64 `json:"size,omitempty"` + Size int `json:"size,omitempty"` /** * Maximum memory, in megabytes, that can be used for buffering. */ - Memlimit uint64 `json:"memlimit,omitempty"` + Memlimit int `json:"memlimit,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go index 48872dead..4b5d42883 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpparam.go @@ -28,7 +28,7 @@ type Nstcpparam struct { * Factor used to calculate the new window size. This argument is needed only when the window scaling is enabled. */ - Wsval uint32 `json:"wsval,omitempty"` + Wsval int `json:"wsval,omitempty"` /** * Enable or disable Selective ACKnowledgement (SACK). */ @@ -40,19 +40,19 @@ type Nstcpparam struct { /** * Maximum number of TCP segments allowed in a burst. */ - Maxburst uint32 `json:"maxburst,omitempty"` + Maxburst int `json:"maxburst,omitempty"` /** * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. */ - Initialcwnd uint32 `json:"initialcwnd,omitempty"` + Initialcwnd int `json:"initialcwnd,omitempty"` /** * TCP Receive buffer size */ - Recvbuffsize uint32 `json:"recvbuffsize,omitempty"` + Recvbuffsize int `json:"recvbuffsize,omitempty"` /** * Timeout for TCP delayed ACK, in milliseconds. */ - Delayedack uint32 `json:"delayedack,omitempty"` + Delayedack int `json:"delayedack,omitempty"` /** * Flag to switch on RST on down services. */ @@ -68,7 +68,7 @@ type Nstcpparam struct { /** * Maximum size of out-of-order packets queue. A value of 0 means no limit. */ - Oooqsize uint32 `json:"oooqsize,omitempty"` + Oooqsize int `json:"oooqsize,omitempty"` /** * Send immediate positive acknowledgement (ACK) on receipt of TCP packets with PUSH flag. */ @@ -76,47 +76,47 @@ type Nstcpparam struct { /** * Maximum number of TCP packets allowed per maximum segment size (MSS). */ - Maxpktpermss uint32 `json:"maxpktpermss,omitempty"` + Maxpktpermss int `json:"maxpktpermss,omitempty"` /** * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. */ - Pktperretx int32 `json:"pktperretx,omitempty"` + Pktperretx int `json:"pktperretx,omitempty"` /** * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). */ - Minrto int32 `json:"minrto,omitempty"` + Minrto int `json:"minrto,omitempty"` /** * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. */ - Slowstartincr int32 `json:"slowstartincr,omitempty"` + Slowstartincr int `json:"slowstartincr,omitempty"` /** * Maximum number of probes that Citrix ADC can send out in 10 milliseconds, to dynamically learn a service. Citrix ADC probes for the existence of the origin in case of wildcard virtual server or services. */ - Maxdynserverprobes uint32 `json:"maxdynserverprobes,omitempty"` + Maxdynserverprobes int `json:"maxdynserverprobes,omitempty"` /** * Maximum threshold. After crossing this threshold number of outstanding probes for origin, the Citrix ADC reduces the number of connection retries for probe connections. */ - Synholdfastgiveup uint32 `json:"synholdfastgiveup,omitempty"` + Synholdfastgiveup int `json:"synholdfastgiveup,omitempty"` /** * Limit the number of client connections (SYN) waiting for status of single probe. Any new SYN packets will be dropped. */ - Maxsynholdperprobe uint32 `json:"maxsynholdperprobe,omitempty"` + Maxsynholdperprobe int `json:"maxsynholdperprobe,omitempty"` /** * Limit the number of client connections (SYN) waiting for status of probe system wide. Any new SYN packets will be dropped. */ - Maxsynhold uint32 `json:"maxsynhold,omitempty"` + Maxsynhold int `json:"maxsynhold,omitempty"` /** * Duration, in seconds, to sample the Maximum Segment Size (MSS) of the services. The Citrix ADC determines the best MSS to set for the virtual server based on this sampling. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. */ - Msslearninterval uint32 `json:"msslearninterval,omitempty"` + Msslearninterval int `json:"msslearninterval,omitempty"` /** * Frequency, in seconds, at which the virtual servers learn the Maximum segment size (MSS) from the services. The argument to enable maximum segment size (MSS) for virtual servers must be enabled. */ - Msslearndelay uint32 `json:"msslearndelay,omitempty"` + Msslearndelay int `json:"msslearndelay,omitempty"` /** * Maximum number of connections to hold in the TCP TIME_WAIT state on a packet engine. New connections entering TIME_WAIT state are proactively cleaned up. */ - Maxtimewaitconn uint32 `json:"maxtimewaitconn,omitempty"` + Maxtimewaitconn int `json:"maxtimewaitconn,omitempty"` /** * Update last activity for KA probes */ @@ -124,7 +124,7 @@ type Nstcpparam struct { /** * When 'syncookie' is disabled in the TCP profile that is bound to the virtual server or service, and the number of TCP SYN+ACK retransmission by Citrix ADC for that virtual server or service crosses this threshold, the Citrix ADC responds by using the TCP SYN-Cookie mechanism. */ - Maxsynackretx uint32 `json:"maxsynackretx,omitempty"` + Maxsynackretx int `json:"maxsynackretx,omitempty"` /** * Detect TCP SYN packet flood and send an SNMP trap. */ @@ -140,7 +140,7 @@ type Nstcpparam struct { /** * Flush an existing connection (as configured through -connFlushIfNoMem FIFO) if the system has more than specified number of connections, and a new connection is to be established. Note: This value may be rounded down to be a whole multiple of the number of packet engines running. */ - Connflushthres uint32 `json:"connflushthres,omitempty"` + Connflushthres int `json:"connflushthres,omitempty"` /** * Accept DATA_FIN/FAST_CLOSE on passive subflow */ @@ -152,27 +152,27 @@ type Nstcpparam struct { /** * The timeout value in seconds for idle mptcp subflows. If this timeout is not set, idle subflows are cleared after cltTimeout of vserver */ - Mptcpsftimeout uint64 `json:"mptcpsftimeout,omitempty"` + Mptcpsftimeout int `json:"mptcpsftimeout,omitempty"` /** * The minimum idle time value in seconds for idle mptcp subflows after which the sublow is replaced by new incoming subflow if maximum subflow limit is reached. The priority for replacement is given to those subflow without any transaction */ - Mptcpsfreplacetimeout uint64 `json:"mptcpsfreplacetimeout,omitempty"` + Mptcpsfreplacetimeout int `json:"mptcpsfreplacetimeout,omitempty"` /** * Maximum number of subflow connections supported in established state per mptcp connection. */ - Mptcpmaxsf uint32 `json:"mptcpmaxsf,omitempty"` + Mptcpmaxsf int `json:"mptcpmaxsf,omitempty"` /** * Maximum number of subflow connections supported in pending join state per mptcp connection. */ - Mptcpmaxpendingsf uint32 `json:"mptcpmaxpendingsf,omitempty"` + Mptcpmaxpendingsf int `json:"mptcpmaxpendingsf,omitempty"` /** * Maximum system level pending join connections allowed. */ - Mptcppendingjointhreshold uint32 `json:"mptcppendingjointhreshold,omitempty"` + Mptcppendingjointhreshold int `json:"mptcppendingjointhreshold,omitempty"` /** * Number of RTO's at subflow level, after which MPCTP should start using other subflow. */ - Mptcprtostoswitchsf uint32 `json:"mptcprtostoswitchsf,omitempty"` + Mptcprtostoswitchsf int `json:"mptcprtostoswitchsf,omitempty"` /** * When enabled, if NS receives a DSS on a backup subflow, NS will start using that subflow to send data. And if disabled, NS will continue to transmit on current chosen subflow. In case there is some error on a subflow (like RTO's/RST etc.) then NS can choose a backup subflow irrespective of this tunable. */ @@ -180,7 +180,7 @@ type Nstcpparam struct { /** * Number of RTO's after which a connection should be freed. */ - Tcpmaxretries uint32 `json:"tcpmaxretries,omitempty"` + Tcpmaxretries int `json:"tcpmaxretries,omitempty"` /** * Allow subflows to close immediately on FIN before the DATA_FIN exchange is completed at mptcp level. */ @@ -200,15 +200,15 @@ type Nstcpparam struct { /** * Timeout in seconds after which a new TFO Key is computed for generating TFO Cookie. If zero, the same key is used always. If timeout is less than 120seconds, NS defaults to 120seconds timeout. */ - Tcpfastopencookietimeout uint64 `json:"tcpfastopencookietimeout,omitempty"` + Tcpfastopencookietimeout int `json:"tcpfastopencookietimeout,omitempty"` /** * Timeout for the server to function in syncookie mode after the synattack. This is valid if TCP syncookie is disabled on the profile and server acts in non syncookie mode by default. */ - Autosyncookietimeout uint32 `json:"autosyncookietimeout,omitempty"` + Autosyncookietimeout int `json:"autosyncookietimeout,omitempty"` /** * The amount of time in seconds, after which a TCP connnection in the TCP TIME-WAIT state is flushed. */ - Tcpfintimeout uint64 `json:"tcpfintimeout,omitempty"` + Tcpfintimeout int `json:"tcpfintimeout,omitempty"` /** * If enabled, non-negotiated TCP options are removed from the received packet while proxying it. By default, non-negotiated TCP options would be replaced by NOPs in the proxied packets. This option is not applicable for Citrix ADC generated packets. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go index 1cb2270ea..70980cd2d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstcpprofile.go @@ -37,7 +37,7 @@ type Nstcpprofile struct { * Factor used to calculate the new window size. This argument is needed only when window scaling is enabled. */ - Wsval uint32 `json:"wsval,omitempty"` + Wsval int `json:"wsval,omitempty"` /** * Enable or disable the Nagle algorithm on TCP connections. */ @@ -49,43 +49,43 @@ type Nstcpprofile struct { /** * Maximum number of octets to allow in a TCP data segment. */ - Mss uint32 `json:"mss,omitempty"` + Mss int `json:"mss,omitempty"` /** * Maximum number of TCP segments allowed in a burst. */ - Maxburst uint32 `json:"maxburst,omitempty"` + Maxburst int `json:"maxburst,omitempty"` /** * Initial maximum upper limit on the number of TCP packets that can be outstanding on the TCP link to the server. */ - Initialcwnd uint32 `json:"initialcwnd,omitempty"` + Initialcwnd int `json:"initialcwnd,omitempty"` /** * Timeout for TCP delayed ACK, in milliseconds. */ - Delayedack uint32 `json:"delayedack,omitempty"` + Delayedack int `json:"delayedack,omitempty"` /** * Maximum size of out-of-order packets queue. A value of 0 means no limit. */ - Oooqsize uint32 `json:"oooqsize,omitempty"` + Oooqsize int `json:"oooqsize,omitempty"` /** * Maximum number of TCP packets allowed per maximum segment size (MSS). */ - Maxpktpermss uint32 `json:"maxpktpermss,omitempty"` + Maxpktpermss int `json:"maxpktpermss,omitempty"` /** * Maximum limit on the number of packets that should be retransmitted on receiving a partial ACK. */ - Pktperretx uint32 `json:"pktperretx,omitempty"` + Pktperretx int `json:"pktperretx,omitempty"` /** * Minimum retransmission timeout, in milliseconds, specified in 10-millisecond increments (value must yield a whole number if divided by 10). */ - Minrto uint32 `json:"minrto,omitempty"` + Minrto int `json:"minrto,omitempty"` /** * Multiplier that determines the rate at which slow start increases the size of the TCP transmission window after each acknowledgement of successful transmission. */ - Slowstartincr uint32 `json:"slowstartincr,omitempty"` + Slowstartincr int `json:"slowstartincr,omitempty"` /** * TCP buffering size, in bytes. */ - Buffersize uint32 `json:"buffersize,omitempty"` + Buffersize int `json:"buffersize,omitempty"` /** * Enable or disable the SYNCOOKIE mechanism for TCP handshake with clients. Disabling SYNCOOKIE prevents SYN attack protection on the Citrix ADC. */ @@ -110,19 +110,19 @@ type Nstcpprofile struct { /** * Duration, in seconds, for the connection to be idle, before sending a keep-alive (KA) probe. */ - Kaconnidletime uint32 `json:"kaconnidletime,omitempty"` + Kaconnidletime int `json:"kaconnidletime,omitempty"` /** * Number of keep-alive (KA) probes to be sent when not acknowledged, before assuming the peer to be down. */ - Kamaxprobes uint32 `json:"kamaxprobes,omitempty"` + Kamaxprobes int `json:"kamaxprobes,omitempty"` /** * Time interval, in seconds, before the next keep-alive (KA) probe, if the peer does not respond. */ - Kaprobeinterval uint32 `json:"kaprobeinterval,omitempty"` + Kaprobeinterval int `json:"kaprobeinterval,omitempty"` /** * TCP Send Buffer Size */ - Sendbuffsize uint32 `json:"sendbuffsize,omitempty"` + Sendbuffsize int `json:"sendbuffsize,omitempty"` /** * Enable or disable Multipath TCP. */ @@ -162,7 +162,7 @@ type Nstcpprofile struct { /** * MPTCP session timeout in seconds. If this value is not set, idle MPTCP sessions are flushed after vserver's client idle timeout. */ - Mptcpsessiontimeout uint32 `json:"mptcpsessiontimeout,omitempty"` + Mptcpsessiontimeout int `json:"mptcpsessiontimeout,omitempty"` /** * Enable or Disable TCP Timestamp option (RFC 1323) */ @@ -182,7 +182,7 @@ type Nstcpprofile struct { /** * TCP Maximum Congestion Window. */ - Maxcwnd uint32 `json:"maxcwnd,omitempty"` + Maxcwnd int `json:"maxcwnd,omitempty"` /** * Enable or disable FACK (Forward ACK). */ @@ -202,7 +202,7 @@ type Nstcpprofile struct { /** * TCP dupack threshold. */ - Dupackthresh uint32 `json:"dupackthresh,omitempty"` + Dupackthresh int `json:"dupackthresh,omitempty"` /** * TCP Burst Rate Control DISABLED/FIXED/DYNAMIC. FIXED requires a TCP rate to be set. */ @@ -210,11 +210,11 @@ type Nstcpprofile struct { /** * TCP connection payload send rate in Kb/s */ - Tcprate uint32 `json:"tcprate,omitempty"` + Tcprate int `json:"tcprate,omitempty"` /** * Maximum connection queue size in bytes, when BurstRateControl is used */ - Rateqmax uint32 `json:"rateqmax,omitempty"` + Rateqmax int `json:"rateqmax,omitempty"` /** * Silently drop tcp half closed connections on idle timeout */ @@ -230,7 +230,7 @@ type Nstcpprofile struct { /** * TCP FastOpen Cookie size. This accepts only even numbers. Odd number is trimmed down to nearest even number. */ - Tcpfastopencookiesize uint32 `json:"tcpfastopencookiesize,omitempty"` + Tcpfastopencookiesize int `json:"tcpfastopencookiesize,omitempty"` /** * TCP tail loss probe optimizations */ @@ -242,7 +242,7 @@ type Nstcpprofile struct { /** * ClientIP TCP Option number */ - Clientiptcpoptionnumber uint32 `json:"clientiptcpoptionnumber,omitempty"` + Clientiptcpoptionnumber int `json:"clientiptcpoptionnumber,omitempty"` /** * Set C bit in MP-CAPABLE Syn-Ack sent by Citrix ADC */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go index 222b987fd..74f517f87 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimeout.go @@ -23,66 +23,66 @@ type Nstimeout struct { /** * Interval, in seconds, at which the Citrix ADC zombie cleanup process must run. This process cleans up inactive TCP connections. */ - Zombie uint32 `json:"zombie,omitempty"` + Zombie int `json:"zombie,omitempty"` /** * Client idle timeout (in seconds). If zero, the service-type default value is taken when service is created. */ - Client uint32 `json:"client,omitempty"` + Client int `json:"client,omitempty"` /** * Server idle timeout (in seconds). If zero, the service-type default value is taken when service is created. */ - Server uint32 `json:"server,omitempty"` + Server int `json:"server,omitempty"` /** * Global idle timeout, in seconds, for client connections of HTTP service type. This value is over ridden by the client timeout that is configured on individual entities. */ - Httpclient uint32 `json:"httpclient,omitempty"` + Httpclient int `json:"httpclient,omitempty"` /** * Global idle timeout, in seconds, for server connections of HTTP service type. This value is over ridden by the server timeout that is configured on individual entities. */ - Httpserver uint32 `json:"httpserver,omitempty"` + Httpserver int `json:"httpserver,omitempty"` /** * Global idle timeout, in seconds, for non-HTTP client connections of TCP service type. This value is over ridden by the client timeout that is configured on individual entities. */ - Tcpclient uint32 `json:"tcpclient,omitempty"` + Tcpclient int `json:"tcpclient,omitempty"` /** * Global idle timeout, in seconds, for non-HTTP server connections of TCP service type. This value is over ridden by the server timeout that is configured on entities. */ - Tcpserver uint32 `json:"tcpserver,omitempty"` + Tcpserver int `json:"tcpserver,omitempty"` /** * Global idle timeout, in seconds, for non-TCP client connections. This value is over ridden by the client timeout that is configured on individual entities. */ - Anyclient uint32 `json:"anyclient,omitempty"` + Anyclient int `json:"anyclient,omitempty"` /** * Global idle timeout, in seconds, for non TCP server connections. This value is over ridden by the server timeout that is configured on individual entities. */ - Anyserver uint32 `json:"anyserver,omitempty"` + Anyserver int `json:"anyserver,omitempty"` /** * Global idle timeout, in seconds, for TCP client connections. This value takes precedence over entity level timeout settings (vserver/service). This is applicable only to transport protocol TCP. */ - Anytcpclient uint32 `json:"anytcpclient,omitempty"` + Anytcpclient int `json:"anytcpclient,omitempty"` /** * Global idle timeout, in seconds, for TCP server connections. This value takes precedence over entity level timeout settings ( vserver/service). This is applicable only to transport protocol TCP. */ - Anytcpserver uint32 `json:"anytcpserver,omitempty"` + Anytcpserver int `json:"anytcpserver,omitempty"` /** * Idle timeout, in seconds, for connections that are in TCP half-closed state. */ - Halfclose uint32 `json:"halfclose,omitempty"` + Halfclose int `json:"halfclose,omitempty"` /** * Interval at which the zombie clean-up process for non-TCP connections should run. Inactive IP NAT connections will be cleaned up. */ - Nontcpzombie uint32 `json:"nontcpzombie,omitempty"` + Nontcpzombie int `json:"nontcpzombie,omitempty"` /** * Alternative idle timeout, in seconds, for closed TCP NATPCB connections. */ - Reducedfintimeout uint32 `json:"reducedfintimeout,omitempty"` + Reducedfintimeout int `json:"reducedfintimeout,omitempty"` /** * Timer interval, in seconds, for abruptly terminated TCP NATPCB connections. */ - Reducedrsttimeout uint32 `json:"reducedrsttimeout,omitempty"` + Reducedrsttimeout int `json:"reducedrsttimeout,omitempty"` /** * Timer interval, in seconds, for new TCP NATPCB connections on which no data was received. */ - Newconnidletimeout uint32 `json:"newconnidletimeout,omitempty"` + Newconnidletimeout int `json:"newconnidletimeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go index cad90123e..2206428da 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer.go @@ -27,7 +27,7 @@ type Nstimer struct { /** * The frequency at which the policies bound to this timer are invoked. The minimum value is 20 msec. The maximum value is 20940 in seconds and 349 in minutes */ - Interval int32 `json:"interval,omitempty"` + Interval int `json:"interval,omitempty"` /** * Timer interval unit */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_autoscalepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_autoscalepolicy_binding.go new file mode 100644 index 000000000..5b782e935 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstimer_autoscalepolicy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ns + +/** +* Binding class showing the autoscalepolicy that can be bound to nstimer. +*/ +type Nstimerautoscalepolicybinding struct { + /** + * The timer policy associated with the timer. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the timer policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Name of the vserver which provides the context for the rule in timer policy. When not specified it is treated as a Global Default context. + */ + Vserver string `json:"vserver,omitempty"` + /** + * Denotes the sample size. Sample size value of 'x' means that previous '(x - 1)' policy's rule evaluation results and the current evaluation result are present with the binding. For example, sample size of 10 means that there is a state of previous 9 policy evaluation results and also the current policy evaluation result. + */ + Samplesize int `json:"samplesize,omitempty"` + /** + * Denotes the threshold. If the rule of the policy in the binding relation evaluates 'threshold size' number of times in 'sample size' to true, then the corresponding action is taken. Its value needs to be less than or equal to the sample size value. + */ + Threshold int `json:"threshold,omitempty"` + /** + * Timer name. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go index ba0b5cafd..d91f8961a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain.go @@ -23,7 +23,7 @@ type Nstrafficdomain struct { /** * Integer value that uniquely identifies a traffic domain. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` /** * Name of traffic domain being added. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go index d40c0d08f..c63e10d08 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_binding.go @@ -23,7 +23,7 @@ type Nstrafficdomainbinding struct { /** * Integer value that uniquely identifies a traffic domain.
Minimum value = 1
Maximum value = 4094 */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go index d162e0ee8..b2d041c89 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_bridgegroup_binding.go @@ -23,11 +23,11 @@ type Nstrafficdomainbridgegroupbinding struct { /** * ID of the configured bridge to bind to this traffic domain. More than one bridge group can be bound to a traffic domain, but the same bridge group cannot be a part of multiple traffic domains. */ - Bridgegroup uint32 `json:"bridgegroup,omitempty"` + Bridgegroup int `json:"bridgegroup,omitempty"` /** * Integer value that uniquely identifies a traffic domain. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go index 48e7aed1c..eb609c753 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vlan_binding.go @@ -23,11 +23,11 @@ type Nstrafficdomainvlanbinding struct { /** * ID of the VLAN to bind to this traffic domain. More than one VLAN can be bound to a traffic domain, but the same VLAN cannot be a part of multiple traffic domains. */ - Vlan uint32 `json:"vlan,omitempty"` + Vlan int `json:"vlan,omitempty"` /** * Integer value that uniquely identifies a traffic domain. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go index 25b07d043..ac1e203f3 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nstrafficdomain_vxlan_binding.go @@ -23,11 +23,11 @@ type Nstrafficdomainvxlanbinding struct { /** * ID of the VXLAN to bind to this traffic domain. More than one VXLAN can be bound to a traffic domain, but the same VXLAN cannot be a part of multiple traffic domains. */ - Vxlan uint32 `json:"vxlan,omitempty"` + Vxlan int `json:"vxlan,omitempty"` /** * Integer value that uniquely identifies a traffic domain. */ - Td uint32 `json:"td,omitempty"` + Td int `json:"td,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go index 75b2aa33d..dd9498f88 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvariable.go @@ -81,7 +81,7 @@ type Nsvariable struct { /** * Value expiration in seconds. If the value is not referenced within the expiration period it will be deleted. 0 (the default) means no expiration. */ - Expires uint32 `json:"expires,omitempty"` + Expires int `json:"expires,omitempty"` /** * Comments associated with this variable. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go index bba491eba..b54d56e7a 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsvpxparam.go @@ -43,7 +43,7 @@ type Nsvpxparam struct { /** * ID of the cluster node for which you are setting the cpuyield. It can be configured only through the cluster IP address. */ - Ownernode uint32 `json:"ownernode,omitempty"` + Ownernode int `json:"ownernode,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go index 8c4152286..7234ffaa0 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ns/nsweblogparam.go @@ -23,7 +23,7 @@ type Nsweblogparam struct { /** * Buffer size, in MB, allocated for log transaction data on the system. The maximum value is limited to the memory available on the system. */ - Buffersizemb uint32 `json:"buffersizemb,omitempty"` + Buffersizemb int `json:"buffersizemb,omitempty"` /** * Name(s) of HTTP request headers whose values should be exported by the Web Logging feature. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go index f91b33689..6014d4662 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policydataset_value_binding.go @@ -27,7 +27,7 @@ type Policydatasetvaluebinding struct { /** * The index of the value (ipv4, ipv6, number) associated with the set. */ - Index uint32 `json:"index,omitempty"` + Index int `json:"index,omitempty"` /** * Any comments to preserve information about this dataset or a data bound to this dataset. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go index f2c09a2b0..c4adb7949 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyhttpcallout.go @@ -32,7 +32,7 @@ type Policyhttpcallout struct { /** * Server port to which the HTTP callout agent is mapped. Mutually exclusive with the Virtual Server parameter. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Name of the load balancing, content switching, or cache redirection virtual server (the callout agent) to which the HTTP callout is sent. The service type of the virtual server must be HTTP. Mutually exclusive with the IP address and port parameters. Therefore, you cannot set the and the Virtual Server in the same HTTP callout. */ @@ -88,7 +88,7 @@ type Policyhttpcallout struct { * Duration, in seconds, for which the callout response is cached. The cached responses are stored in an integrated caching content group named "calloutContentGroup". If no duration is configured, the callout responses will not be cached unless normal caching configuration is used to cache them. This parameter takes precedence over any normal caching configuration that would otherwise apply to these responses. Note that the calloutContentGroup definition may not be modified or removed nor may it be used with other cache policies. */ - Cacheforsecs uint64 `json:"cacheforsecs,omitempty"` + Cacheforsecs int `json:"cacheforsecs,omitempty"` /** * Any comments to preserve information about this HTTP callout. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go index 811d5a75e..113aed3b2 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyparam.go @@ -23,6 +23,6 @@ type Policyparam struct { /** * Maximum time in milliseconds to allow for processing expressions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go index 25712f503..df7255d23 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policypatset_pattern_binding.go @@ -28,7 +28,7 @@ type Policypatsetpatternbinding struct { /** * The index of the string associated with the patset. */ - Index uint32 `json:"index,omitempty"` + Index int `json:"index,omitempty"` /** * Character set associated with the characters in the string. Note: UTF-8 characters can be entered directly (if the UI supports it) or can be encoded as a sequence of hexadecimal bytes '\xNN'. For example, the UTF-8 character 'ue' can be encoded as '\xC3\xBC'. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go index 2d4cdd7e3..2ed28ab7e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/policy/policyurlset.go @@ -51,7 +51,7 @@ type Policyurlset struct { /** * The interval, in seconds, rounded down to the nearest 15 minutes, at which the update of urlset occurs. */ - Interval uint64 `json:"interval,omitempty"` + Interval int `json:"interval,omitempty"` /** * Prevent this urlset from being exported. */ @@ -63,7 +63,7 @@ type Policyurlset struct { /** * An ID that would be sent to AppFlow to indicate which URLSet was the last one that matched the requested URL. */ - Matchedid uint32 `json:"matchedid,omitempty"` + Matchedid int `json:"matchedid,omitempty"` /** * Add this URL to this urlset. Used for testing when contents of urlset is kept confidential. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go index 2c440e558..c795fbbb2 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderaction.go @@ -63,7 +63,7 @@ type Responderaction struct { /** * HTTP response status code, for example 200, 302, 404, etc. The default value for the redirect action type is 302 and for respondwithhtmlpage is 200 */ - Responsestatuscode uint32 `json:"responsestatuscode,omitempty"` + Responsestatuscode int `json:"responsestatuscode,omitempty"` /** * Expression specifying the reason phrase of the HTTP response. The reason phrase may be a string literal with quotes or a PI expression. For example: "Invalid URL: " + HTTP.REQ.URL */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_responderpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_responderpolicy_binding.go new file mode 100644 index 000000000..41b8c0e96 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderglobal_responderpolicy_binding.go @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the responderpolicy that can be bound to responderglobal. +*/ +type Responderglobalresponderpolicybinding struct { + /** + * Name of the responder policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the bind point whose policies you want to display. Available settings function as follows: + * REQ_OVERRIDE - Request override. Binds the policy to the priority request queue. + * REQ_DEFAULT - Binds the policy to the default request queue. + * OTHERTCP_REQ_OVERRIDE - Binds the policy to the non-HTTP TCP priority request queue. + * OTHERTCP_REQ_DEFAULT - Binds the policy to the non-HTTP TCP default request queue.. + * SIPUDP_REQ_OVERRIDE - Binds the policy to the SIP UDP priority response queue.. + * SIPUDP_REQ_DEFAULT - Binds the policy to the SIP UDP default response queue. + * RADIUS_REQ_OVERRIDE - Binds the policy to the RADIUS priority response queue.. + * RADIUS_REQ_DEFAULT - Binds the policy to the RADIUS default response queue. + * MSSQL_REQ_OVERRIDE - Binds the policy to the Microsoft SQL priority response queue.. + * MSSQL_REQ_DEFAULT - Binds the policy to the Microsoft SQL default response queue. + * MYSQL_REQ_OVERRIDE - Binds the policy to the MySQL priority response queue. + * MYSQL_REQ_DEFAULT - Binds the policy to the MySQL default response queue. + * HTTPQUIC_REQ_OVERRIDE - Binds the policy to the HTTP_QUIC override response queue. + * HTTPQUIC_REQ_DEFAULT - Binds the policy to the HTTP_QUIC default response queue. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation, Available settings function as follows: + * vserver - Forward the request to the specified virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke. If the current policy evaluates to TRUE, the invoke parameter is set, and Label Type is policylabel. + */ + Labelname string `json:"labelname,omitempty"` + /** + * number of polices bound to label. + */ + Numpol int `json:"numpol,omitempty"` + /** + * flowtype of the bound responder policy. + */ + Flowtype int `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go index 6486fbfcb..85f58dfa1 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderparam.go @@ -30,6 +30,6 @@ type Responderparam struct { /** * Maximum time in milliseconds to allow for processing all the policies and their selected actions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_crvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_crvserver_binding.go new file mode 100644 index 000000000..8ff72c5aa --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_crvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the crvserver that can be bound to responderpolicy. +*/ +type Responderpolicycrvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_csvserver_binding.go new file mode 100644 index 000000000..daab870e4 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_csvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the csvserver that can be bound to responderpolicy. +*/ +type Responderpolicycsvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_lbvserver_binding.go new file mode 100644 index 000000000..3a753396e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_lbvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the lbvserver that can be bound to responderpolicy. +*/ +type Responderpolicylbvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderglobal_binding.go new file mode 100644 index 000000000..4bd593752 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderglobal_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the responderglobal that can be bound to responderpolicy. +*/ +type Responderpolicyresponderglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderpolicylabel_binding.go new file mode 100644 index 000000000..91b3c7a94 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_responderpolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the responderpolicylabel that can be bound to responderpolicy. +*/ +type Responderpolicyresponderpolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vpnvserver_binding.go new file mode 100644 index 000000000..7eefa0077 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicy_vpnvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the vpnvserver that can be bound to responderpolicy. +*/ +type Responderpolicyvpnvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the responder policy for which to display settings. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go index 8a052abbd..b2d88ee47 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Responderpolicylabelpolicybindingbinding struct { /** * Specifies the priority of the policy. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_responderpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_responderpolicy_binding.go new file mode 100644 index 000000000..783ef27f6 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/responder/responderpolicylabel_responderpolicy_binding.go @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package responder + +/** +* Binding class showing the responderpolicy that can be bound to responderpolicylabel. +*/ +type Responderpolicylabelresponderpolicybinding struct { + /** + * Name of the responder policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label and evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Available settings function as follows: + * vserver - Invoke an unnamed policy label associated with a virtual server. + * policylabel - Invoke a user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the responder policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.go new file mode 100644 index 000000000..9d06dbcdb --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the rewritepolicy that can be bound to rewriteglobal. +*/ +type Rewriteglobalrewritepolicybinding struct { + /** + * Name of the rewrite policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The bindpoint to which to policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * resvserver - Forward the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server to which to forward the request of response. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol int `json:"numpol,omitempty"` + /** + * flowtype of the bound rewrite policy. + */ + Flowtype int `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go index 6aa0aeb51..720ec295f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewriteparam.go @@ -31,6 +31,6 @@ type Rewriteparam struct { /** * Maximum time in milliseconds to allow for processing all the policies and their selected actions without interruption. If the timeout is reached then the evaluation causes an UNDEF to be raised and no further processing is performed. Note that some rewrites may have already been performed. */ - Timeout uint32 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` } diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_csvserver_binding.go new file mode 100644 index 000000000..d74bb0210 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_csvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the csvserver that can be bound to rewritepolicy. +*/ +type Rewritepolicycsvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_lbvserver_binding.go new file mode 100644 index 000000000..7e409ae05 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_lbvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the lbvserver that can be bound to rewritepolicy. +*/ +type Rewritepolicylbvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewriteglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewriteglobal_binding.go new file mode 100644 index 000000000..486fd7eaf --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewriteglobal_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the rewriteglobal that can be bound to rewritepolicy. +*/ +type Rewritepolicyrewriteglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go new file mode 100644 index 000000000..b7a6f050d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_rewritepolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the rewritepolicylabel that can be bound to rewritepolicy. +*/ +type Rewritepolicyrewritepolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vpnvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vpnvserver_binding.go new file mode 100644 index 000000000..6aa541371 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicy_vpnvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the vpnvserver that can be bound to rewritepolicy. +*/ +type Rewritepolicyvpnvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the rewrite policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go index 7119aefdf..d5a63c9de 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Rewritepolicylabelpolicybindingbinding struct { /** * Specifies the priority of the policy. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go new file mode 100644 index 000000000..5931bbf88 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/rewrite/rewritepolicylabel_rewritepolicy_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package rewrite + +/** +* Binding class showing the rewritepolicy that can be bound to rewritepolicylabel. +*/ +type Rewritepolicylabelrewritepolicybinding struct { + /** + * Name of the rewrite policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Suspend evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * resvserver - Forward the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * * If labelType is policylabel, name of the policy label to invoke. + * If labelType is reqvserver or resvserver, name of the virtual server to which to forward the request or response. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the rewrite policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go index 879cb8034..f0899de49 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/router/routerdynamicrouting.go @@ -27,7 +27,7 @@ type Routerdynamicrouting struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_sslcertkey_binding.go new file mode 100644 index 000000000..dfac0557a --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcacertgroup_sslcertkey_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslcacertgroup. +*/ +type Sslcacertgroupsslcertkeybinding struct { + /** + * Name for the certkey added to the Citrix ADC. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the certificate-key pair is created.The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cert" or 'my cert'). + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Name given to the CA certificate group. The name will be used to add the CA certificates to the group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my file" or 'my file'). + */ + Cacertgroupname string `json:"cacertgroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go index 19ffdeac5..770d4d30c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcert.go @@ -49,7 +49,7 @@ type Sslcert struct { /** * Number of days for which the certificate will be valid, beginning with the time and day (system time) of creation. */ - Days uint32 `json:"days,omitempty"` + Days int `json:"days,omitempty"` /** * Subject Alternative Name (SAN) is an extension to X.509 that allows various values to be associated with a security certificate using a subjectAltName field. These values are called "Subject Alternative Names" (SAN). Names include: 1. Email addresses diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_sslcertkey_binding.go new file mode 100644 index 000000000..1a619998d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertchain_sslcertkey_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslcertchain. +*/ +type Sslcertchainsslcertkeybinding struct { + /** + * Name of the Linked Certificate + */ + Linkcertkeyname string `json:"linkcertkeyname,omitempty"` + /** + * Used to find if certificate is linked + */ + Islinked bool `json:"islinked,omitempty"` + /** + * Used to find if certificate is a CA + */ + Isca bool `json:"isca,omitempty"` + /** + * Used to find if certificate is linked + */ + Addsubject bool `json:"addsubject,omitempty"` + /** + * Name of the Certificate + */ + Certkeyname string `json:"certkeyname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go index dfbeceae1..a55926537 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey.go @@ -64,7 +64,7 @@ type Sslcertkey struct { /** * Time, in number of days, before certificate expiration, at which to generate an alert that the certificate is about to expire. */ - Notificationperiod uint32 `json:"notificationperiod,omitempty"` + Notificationperiod int `json:"notificationperiod,omitempty"` /** * Parse the certificate chain as a single file after linking the server certificate to its issuer's certificate within the file. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go index bf82afeab..2b2c6c79f 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_service_binding.go @@ -27,11 +27,11 @@ type Sslcertkeyservicebinding struct { /** * Vserver Id */ - Data uint32 `json:"data,omitempty"` + Data int `json:"data,omitempty"` /** * Version. */ - Version int32 `json:"version,omitempty"` + Version int `json:"version,omitempty"` /** * Name of the certificate-key pair. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslocspresponder_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslocspresponder_binding.go new file mode 100644 index 000000000..91037785d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslocspresponder_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslocspresponder that can be bound to sslcertkey. +*/ +type Sslcertkeysslocspresponderbinding struct { + /** + * OCSP responders bound to this certkey + */ + Ocspresponder string `json:"ocspresponder,omitempty"` + /** + * ocsp priority + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslprofile_binding.go new file mode 100644 index 000000000..c94163c33 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslprofile_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslprofile that can be bound to sslcertkey. +*/ +type Sslcertkeysslprofilebinding struct { + /** + * SSL profile name to which the certificate key pair is bound. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslvserver_binding.go new file mode 100644 index 000000000..4c2210809 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcertkey_sslvserver_binding.go @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslvserver that can be bound to sslcertkey. +*/ +type Sslcertkeysslvserverbinding struct { + /** + * Vserver name to which the certificate key pair is bound. + */ + Servername string `json:"servername,omitempty"` + /** + * Vserver Id + */ + Data int `json:"data,omitempty"` + /** + * Version. + */ + Version int `json:"version,omitempty"` + /** + * Name of the certificate-key pair. + */ + Certkey string `json:"certkey,omitempty"` + /** + * The name of the SSL virtual server name to which the certificate-key pair needs to be bound. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Specify this option to bind the certificate to an SSL virtual server. + Note: The default option is -vServer. + */ + Vserver bool `json:"vserver,omitempty"` + /** + * The certificate-key pair being unbound is a Certificate Authority (CA) certificate. If you choose this option, the certificate-key pair is unbound from the list of CA certificates that were bound to the specified SSL virtual server or SSL service. + */ + Ca bool `json:"ca,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go index 5b635f7df..08a18240e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher.go @@ -38,7 +38,7 @@ type Sslcipher struct { /** * This indicates priority assigned to the particular cipher */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` /** * Name of the profile to which cipher is attached. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go index 6bf500d27..81a643d60 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_individualcipher_binding.go @@ -31,7 +31,7 @@ type Sslcipherindividualcipherbinding struct { /** * This indicates priority assigned to the particular cipher */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` /** * Name of the user-defined cipher group. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go index aa722cac7..b910fc893 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_service_binding.go @@ -55,7 +55,7 @@ type Sslcipherservicebinding struct { /** * Priority of the cipher to be added */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go index 5f4d85d18..8e2f04ac6 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_servicegroup_binding.go @@ -55,7 +55,7 @@ type Sslcipherservicegroupbinding struct { /** * Priority of the cipher to be added */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslciphersuite_binding.go new file mode 100644 index 000000000..f02dfe114 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslciphersuite_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslciphersuite that can be bound to sslcipher. +*/ +type Sslciphersslciphersuitebinding struct { + /** + * Cipher name. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * Name for the user-defined cipher group. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Cannot be changed after the cipher group is created. + The following requirement applies only to the Citrix ADC CLI: + If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my ciphergroup" or 'my ciphergroup'). + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * Cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * This indicates priority assigned to the particular cipher + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslprofile_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslprofile_binding.go new file mode 100644 index 000000000..063cf07f3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslprofile_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslprofile that can be bound to sslcipher. +*/ +type Sslciphersslprofilebinding struct { + /** + * Name of the profile to which cipher is attached. + */ + Sslprofile string `json:"sslprofile,omitempty"` + /** + * Cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslvserver_binding.go new file mode 100644 index 000000000..0a732cd54 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcipher_sslvserver_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslvserver that can be bound to sslcipher. +*/ +type Sslciphersslvserverbinding struct { + /** + * Name of the user-defined cipher group. + */ + Ciphergroupname string `json:"ciphergroupname,omitempty"` + /** + * The name of the SSL virtual server to which the cipher-suite is to be bound. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Select the -vServer flag when the cipher + operation is performed on an SSL virtual server. + Note: By default the bind ssl cipher command internally assumes the flag of -vServer argument. Hence, while working with the SSL vserver, you need not specify this flag. + */ + Vserver bool `json:"vserver,omitempty"` + /** + * The operation that is performed when adding the cipher-suite. + Possible cipher operations are: + ADD - Appends the given cipher-suite to the existing one configured for the virtual server. + REM - Removes the given cipher-suite from the existing one configured for the virtual server. + ORD - Overrides the current configured cipher-suite for the virtual server with the given cipher-suite. + */ + Cipheroperation string `json:"cipheroperation,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphgrpals string `json:"ciphgrpals,omitempty"` + /** + * Priority of the cipher to be added + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go index e8208c52a..889ecdd55 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslcrl.go @@ -59,7 +59,7 @@ type Sslcrl struct { /** * Port for the LDAP server. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` /** * Base distinguished name (DN), which is used in an LDAP search to search for a CRL. Citrix recommends searching for the Base DN instead of the Issuer Name from the CA certificate, because the Issuer Name field might not exactly match the LDAP directory structure's DN. */ @@ -77,7 +77,7 @@ type Sslcrl struct { /** * Day on which to refresh the CRL, or, if the Interval parameter is not set, the number of days after which to refresh the CRL. If Interval is set to MONTHLY, specify the date. If Interval is set to WEEKLY, specify the day of the week (for example, Sun=0 and Sat=6). This parameter is not applicable if the Interval is set to DAILY. */ - Day uint32 `json:"day,omitempty"` + Day int `json:"day,omitempty"` /** * Time, in hours (1-24) and minutes (1-60), at which to refresh the CRL. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go index 2445716cd..7f1504452 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldhparam.go @@ -27,7 +27,7 @@ type Ssldhparam struct { /** * Size, in bits, of the DH key being generated. */ - Bits uint32 `json:"bits,omitempty"` + Bits int `json:"bits,omitempty"` /** * Random number required for generating the DH key. Required as part of the DH key generation algorithm. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go index d9830eb91..af075e394 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/ssldtlsprofile.go @@ -31,11 +31,11 @@ type Ssldtlsprofile struct { /** * Maximum size of records that can be sent if PMTU is disabled. */ - Maxrecordsize uint32 `json:"maxrecordsize,omitempty"` + Maxrecordsize int `json:"maxrecordsize,omitempty"` /** * Wait for the specified time, in seconds, before resending the request. */ - Maxretrytime uint32 `json:"maxretrytime,omitempty"` + Maxretrytime int `json:"maxretrytime,omitempty"` /** * Send a Hello Verify request to validate the client. */ @@ -47,15 +47,15 @@ type Ssldtlsprofile struct { /** * Maximum number of packets to reassemble. This value helps protect against a fragmented packet attack. */ - Maxpacketsize uint32 `json:"maxpacketsize,omitempty"` + Maxpacketsize int `json:"maxpacketsize,omitempty"` /** * Maximum number of datagrams that can be queued at DTLS layer for processing */ - Maxholdqlen uint32 `json:"maxholdqlen,omitempty"` + Maxholdqlen int `json:"maxholdqlen,omitempty"` /** * Maximum number of bad MAC errors to ignore for a connection prior disconnect. Disabling parameter terminateSession terminates session immediately when bad MAC is detected in the connection. */ - Maxbadmacignorecount uint32 `json:"maxbadmacignorecount,omitempty"` + Maxbadmacignorecount int `json:"maxbadmacignorecount,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go index ad9798af2..cfb3824ef 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslfipskey.go @@ -39,7 +39,7 @@ type Sslfipskey struct { /** * Modulus, in multiples of 64, of the FIPS key to be created. */ - Modulus uint32 `json:"modulus,omitempty"` + Modulus int `json:"modulus,omitempty"` /** * Only p_256 (prime256v1) and P_384 (secp384r1) are supported. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_sslpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_sslpolicy_binding.go new file mode 100644 index 000000000..41f3c7960 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslglobal_sslpolicy_binding.go @@ -0,0 +1,66 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslpolicy that can be bound to sslglobal. +*/ +type Sslglobalsslpolicybinding struct { + /** + * The name for the SSL policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Global bind point to which the policy is bound. + */ + Type string `json:"type,omitempty"` + /** + * The priority of the policy binding. + */ + Priority int `json:"priority,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + * USE_INVOCATION_RESULT - Applicable if this policy invokes another policy label. If the final goto in the invoked policy label has a value of END, the evaluation stops. If the final goto is anything other than END, the current policy label performs a NEXT. + * An expression that evaluates to a number. + If you specify an expression, the number to which it evaluates determines the next policy to evaluate, as follows: + * If the expression evaluates to a higher numbered priority, the policy with that priority is evaluated next. + * If the expression evaluates to the priority of the current policy, the policy with the next higher numbered priority is evaluated next. + * If the expression evaluates to a number that is larger than the largest numbered priority, policy evaluation ends. + An UNDEF event is triggered if: + * The expression is invalid. + * The expression evaluates to a priority number that is numerically lower than the current policy's priority. + * The expression evaluates to a priority number that is between the current policy's priority number (say, 30) and the highest priority number (say, 100), but does not match any configured priority number (for example, the expression evaluates to the number 85). This example assumes that the priority number increments by 10 for every successive policy, and therefore a priority number of 85 does not exist in the policy label. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke policies bound to a virtual server, service, or policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label to invoke. Specify virtual server for a policy label associated with a virtual server, or policy label for a user-defined policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the virtual server or user-defined policy label to invoke if the policy evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go index ac8bf0db5..ddad9e93c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslocspresponder.go @@ -37,23 +37,23 @@ type Sslocspresponder struct { /** * Timeout for caching the OCSP response. After the timeout, the Citrix ADC sends a fresh request to the OCSP responder for the certificate status. If a timeout is not specified, the timeout provided in the OCSP response applies. */ - Cachetimeout uint32 `json:"cachetimeout,omitempty"` + Cachetimeout int `json:"cachetimeout,omitempty"` /** * Number of client certificates to batch together into one OCSP request. Batching avoids overloading the OCSP responder. A value of 1 signifies that each request is queried independently. For a value greater than 1, specify a timeout (batching delay) to avoid inordinately delaying the processing of a single certificate. */ - Batchingdepth uint32 `json:"batchingdepth,omitempty"` + Batchingdepth int `json:"batchingdepth,omitempty"` /** * Maximum time, in milliseconds, to wait to accumulate OCSP requests to batch. Does not apply if the Batching Depth is 1. */ - Batchingdelay uint32 `json:"batchingdelay,omitempty"` + Batchingdelay int `json:"batchingdelay,omitempty"` /** * Time, in milliseconds, to wait for an OCSP response. When this time elapses, an error message appears or the transaction is forwarded, depending on the settings on the virtual server. Includes Batching Delay time. */ - Resptimeout uint32 `json:"resptimeout,omitempty"` + Resptimeout int `json:"resptimeout,omitempty"` /** * Time, in milliseconds, to wait for an OCSP URL Resolution. When this time elapses, an error message appears or the transaction is forwarded, depending on the settings on the virtual server. */ - Ocspurlresolvetimeout uint32 `json:"ocspurlresolvetimeout,omitempty"` + Ocspurlresolvetimeout int `json:"ocspurlresolvetimeout,omitempty"` Respondercert string `json:"respondercert,omitempty"` /** * A certificate to use to validate OCSP responses. Alternatively, if -trustResponder is specified, no verification will be done on the reponse. If both are omitted, only the response times (producedAt, lastUpdate, nextUpdate) will be verified. @@ -62,7 +62,7 @@ type Sslocspresponder struct { /** * Time, in seconds, for which the Citrix ADC waits before considering the response as invalid. The response is considered invalid if the Produced At time stamp in the OCSP response exceeds or precedes the current Citrix ADC clock time by the amount of time specified. */ - Producedattimeskew uint32 `json:"producedattimeskew,omitempty"` + Producedattimeskew int `json:"producedattimeskew,omitempty"` /** * Certificate-key pair that is used to sign OCSP requests. If this parameter is not set, the requests are not signed. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go index b7b6c23f0..c2948ed1d 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslparameter.go @@ -27,7 +27,7 @@ type Sslparameter struct { /** * Maximum memory size to use for certificate revocation lists (CRLs). This parameter reserves memory for a CRL but sets a limit to the maximum memory that the CRLs loaded on the appliance can consume. */ - Crlmemorysizemb uint32 `json:"crlmemorysizemb,omitempty"` + Crlmemorysizemb int `json:"crlmemorysizemb,omitempty"` /** * Enable strict CA certificate checks on the appliance. */ @@ -35,7 +35,7 @@ type Sslparameter struct { /** * Time, in milliseconds, after which encryption is triggered for transactions that are not tracked on the Citrix ADC because their length is not known. There can be a delay of up to 10ms from the specified timeout value before the packet is pushed into the queue. */ - Ssltriggertimeout uint32 `json:"ssltriggertimeout,omitempty"` + Ssltriggertimeout int `json:"ssltriggertimeout,omitempty"` /** * Send an SSL Close-Notify message to the client at the end of a transaction. */ @@ -43,7 +43,7 @@ type Sslparameter struct { /** * Maximum number of queued packets after which encryption is triggered. Use this setting for SSL transactions that send small packets from server to Citrix ADC. */ - Encrypttriggerpktcount uint32 `json:"encrypttriggerpktcount,omitempty"` + Encrypttriggerpktcount int `json:"encrypttriggerpktcount,omitempty"` /** * Deny renegotiation in specified circumstances. Available settings function as follows: * NO - Allow SSL renegotiation. @@ -60,7 +60,7 @@ type Sslparameter struct { /** * Size, per packet engine, in megabytes, of the OCSP cache. A maximum of 10% of the packet engine memory can be assigned. Because the maximum allowed packet engine memory is 4GB, the maximum value that can be assigned to the OCSP cache is approximately 410 MB. */ - Ocspcachesize uint32 `json:"ocspcachesize,omitempty"` + Ocspcachesize int `json:"ocspcachesize,omitempty"` /** * Insert PUSH flag into decrypted, encrypted, or all records. If the PUSH flag is set to a value other than 0, the buffered records are forwarded on the basis of the value of the PUSH flag. Available settings function as follows: 0 - Auto (PUSH flag is not set.) @@ -68,7 +68,7 @@ type Sslparameter struct { 2 -Insert PUSH flag into every encrypted record. 3 - Insert PUSH flag into every decrypted and encrypted record. */ - Pushflag uint32 `json:"pushflag,omitempty"` + Pushflag int `json:"pushflag,omitempty"` /** * Host header check for SNI enabled sessions. If this check is enabled and the HTTP request does not contain the host header for SNI enabled sessions(i.e vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension), the request is dropped. */ @@ -92,11 +92,11 @@ type Sslparameter struct { /** * PUSH encryption trigger timeout value. The timeout value is applied only if you set the Push Encryption Trigger parameter to Timer in the SSL virtual server settings. */ - Pushenctriggertimeout uint32 `json:"pushenctriggertimeout,omitempty"` + Pushenctriggertimeout int `json:"pushenctriggertimeout,omitempty"` /** * Limit to the number of disabled SSL chips after which the ADC restarts. A value of zero implies that the ADC does not automatically restart. */ - Cryptodevdisablelimit uint32 `json:"cryptodevdisablelimit,omitempty"` + Cryptodevdisablelimit int `json:"cryptodevdisablelimit,omitempty"` /** * Name of the undefined built-in control action: CLIENTAUTH, NOCLIENTAUTH, NOOP, RESET, or DROP. */ @@ -113,7 +113,7 @@ type Sslparameter struct { * Citrix ADC CPU utilization threshold (in percentage) beyond which crypto operations are not done in software. A value of zero implies that CPU is not utilized for doing crypto in software. */ - Softwarecryptothreshold uint32 `json:"softwarecryptothreshold,omitempty"` + Softwarecryptothreshold int `json:"softwarecryptothreshold,omitempty"` /** * When this mode is enabled, system will use additional crypto hardware to accelerate symmetric crypto operations. */ @@ -133,7 +133,7 @@ type Sslparameter struct { /** * Specify the maximum memory that can be used for caching the learned data. This memory is used as a LRU cache so that the old entries gets replaced with new entry once the set memory limit is fully utilised. A value of 0 decides the limit automatically. */ - Sslimaxerrorcachemem uint32 `json:"sslimaxerrorcachemem,omitempty"` + Sslimaxerrorcachemem int `json:"sslimaxerrorcachemem,omitempty"` /** * To insert space between lines in the certificate header of request */ @@ -152,7 +152,7 @@ type Sslparameter struct { /** * Limit in percentage of capacity of the crypto operations queue beyond which new SSL connections are not accepted until the queue is reduced. */ - Operationqueuelimit uint32 `json:"operationqueuelimit,omitempty"` + Operationqueuelimit int `json:"operationqueuelimit,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_csvserver_binding.go new file mode 100644 index 000000000..f4a368bb3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_csvserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the csvserver that can be bound to sslpolicy. +*/ +type Sslpolicycsvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_lbvserver_binding.go new file mode 100644 index 000000000..2b9e5624e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_lbvserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the lbvserver that can be bound to sslpolicy. +*/ +type Sslpolicylbvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslglobal_binding.go new file mode 100644 index 000000000..220113d49 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslglobal_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslglobal that can be bound to sslpolicy. +*/ +type Sslpolicysslglobalbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslpolicylabel_binding.go new file mode 100644 index 000000000..28ff157b3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslpolicylabel_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslpolicylabel that can be bound to sslpolicy. +*/ +type Sslpolicysslpolicylabelbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslservice_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslservice_binding.go new file mode 100644 index 000000000..f0b192fe3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslservice_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslservice that can be bound to sslpolicy. +*/ +type Sslpolicysslservicebinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslvserver_binding.go new file mode 100644 index 000000000..a2255761e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicy_sslvserver_binding.go @@ -0,0 +1,47 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslvserver that can be bound to sslpolicy. +*/ +type Sslpolicysslvserverbinding struct { + /** + * The entity name to which policy is bound + */ + Boundto string `json:"boundto,omitempty"` + Priority int `json:"priority,omitempty"` + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL policy for which to display detailed information. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_sslpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_sslpolicy_binding.go new file mode 100644 index 000000000..364bc9cd9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslpolicylabel_sslpolicy_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslpolicy that can be bound to sslpolicylabel. +*/ +type Sslpolicylabelsslpolicybinding struct { + /** + * Name of the SSL policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the SSL policy label to which to bind policies. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Invoke policies bound to a policy label. After the invoked policies are evaluated, the flow returns to the policy with the next priority. + */ + Invoke bool `json:"invoke,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go index ef74e6116..cb4508f68 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile.go @@ -36,7 +36,7 @@ type Sslprofile struct { * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. This parameter is not applicable when configuring a backend profile. Allowed DH count values are 0 and >= 500. */ - Dhcount uint32 `json:"dhcount,omitempty"` + Dhcount int `json:"dhcount,omitempty"` /** * State of Diffie-Hellman (DH) key exchange. This parameter is not applicable when configuring a backend profile. @@ -54,7 +54,7 @@ type Sslprofile struct { /** * The refresh count for the re-generation of RSA public-key and private-key pair. */ - Ersacount uint32 `json:"ersacount,omitempty"` + Ersacount int `json:"ersacount,omitempty"` /** * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. */ @@ -62,7 +62,7 @@ type Sslprofile struct { /** * The Session timeout value in seconds. */ - Sesstimeout uint32 `json:"sesstimeout,omitempty"` + Sesstimeout int `json:"sesstimeout,omitempty"` /** * State of Cipher Redirect. If this parameter is set to ENABLED, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. This parameter is not applicable when configuring a backend profile. @@ -150,7 +150,7 @@ type Sslprofile struct { /** * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. */ - Cleartextport int32 `json:"cleartextport,omitempty"` + Cleartextport int `json:"cleartextport,omitempty"` /** * Encoding method used to insert the subject or issuer's name in HTTP requests to servers. */ @@ -175,7 +175,7 @@ type Sslprofile struct { /** * Maximum number of queued packets after which encryption is triggered. Use this setting for SSL transactions that send small packets from server to Citrix ADC. */ - Encrypttriggerpktcount uint32 `json:"encrypttriggerpktcount,omitempty"` + Encrypttriggerpktcount int `json:"encrypttriggerpktcount,omitempty"` /** * Insert PUSH flag into decrypted, encrypted, or all records. If the PUSH flag is set to a value other than 0, the buffered records are forwarded on the basis of the value of the PUSH flag. Available settings function as follows: 0 - Auto (PUSH flag is not set.) @@ -183,7 +183,7 @@ type Sslprofile struct { 2 -Insert PUSH flag into every encrypted record. 3 - Insert PUSH flag into every decrypted and encrypted record. */ - Pushflag uint32 `json:"pushflag,omitempty"` + Pushflag int `json:"pushflag,omitempty"` /** * Host header check for SNI enabled sessions. If this check is enabled and the HTTP request does not contain the host header for SNI enabled sessions(i.e vserver or profile bound to vserver has SNI enabled and 'Client Hello' arrived with SNI extension), the request is dropped. */ @@ -207,11 +207,11 @@ type Sslprofile struct { /** * PUSH encryption trigger timeout value. The timeout value is applied only if you set the Push Encryption Trigger parameter to Timer in the SSL virtual server settings. */ - Pushenctriggertimeout uint32 `json:"pushenctriggertimeout,omitempty"` + Pushenctriggertimeout int `json:"pushenctriggertimeout,omitempty"` /** * Time, in milliseconds, after which encryption is triggered for transactions that are not tracked on the Citrix ADC because their length is not known. There can be a delay of up to 10ms from the specified timeout value before the packet is pushed into the queue. */ - Ssltriggertimeout uint32 `json:"ssltriggertimeout,omitempty"` + Ssltriggertimeout int `json:"ssltriggertimeout,omitempty"` /** * Certficates bound on the VIP are used for validating the client cert. Certficates came along with client cert are not used for validating the client cert */ @@ -231,7 +231,7 @@ type Sslprofile struct { /** * Maximum ssl session to be cached per dynamic origin server. A unique ssl session is created for each SNI received from the client on ClientHello and the matching session is used for server session reuse. */ - Sslimaxsessperserver uint32 `json:"sslimaxsessperserver,omitempty"` + Sslimaxsessperserver int `json:"sslimaxsessperserver,omitempty"` /** * This option enables the use of session tickets, as per the RFC 5077 */ @@ -239,7 +239,7 @@ type Sslprofile struct { /** * This option sets the life time of session tickets issued by NS in secs */ - Sessionticketlifetime uint32 `json:"sessionticketlifetime,omitempty"` + Sessionticketlifetime int `json:"sessionticketlifetime,omitempty"` /** * This option enables the use of session tickets, as per the RFC 5077 */ @@ -251,11 +251,11 @@ type Sslprofile struct { /** * This option sets the life time of symm key used to generate session tickets issued by NS in secs */ - Sessionkeylifetime uint32 `json:"sessionkeylifetime,omitempty"` + Sessionkeylifetime int `json:"sessionkeylifetime,omitempty"` /** * This option sets the life time of symm key used to generate session tickets issued by NS in secs */ - Prevsessionkeylifetime uint32 `json:"prevsessionkeylifetime,omitempty"` + Prevsessionkeylifetime int `json:"prevsessionkeylifetime,omitempty"` /** * State of HSTS protocol support for the SSL profile. Using HSTS, a server can enforce the use of an HTTPS connection for all communication with a client */ @@ -263,7 +263,7 @@ type Sslprofile struct { /** * Set the maximum time, in seconds, in the strict transport security (STS) header during which the client must send only HTTPS requests to the server */ - Maxage uint32 `json:"maxage,omitempty"` + Maxage int `json:"maxage,omitempty"` /** * Enable HSTS for subdomains. If set to Yes, a client must send only HTTPS requests for subdomains. */ @@ -286,7 +286,7 @@ type Sslprofile struct { This value can be increased to enable clients to open multiple parallel connections using a fresh ticket for each connection. No tickets are sent if resumption is disabled. */ - Tls13sessionticketsperauthcontext uint32 `json:"tls13sessionticketsperauthcontext,omitempty"` + Tls13sessionticketsperauthcontext int `json:"tls13sessionticketsperauthcontext,omitempty"` /** * Whether or not the SSL Virtual Server will require a DHE key exchange to occur when a PSK is accepted during a TLS 1.3 resumption handshake. A DHE key exchange ensures forward secrecy even in the event that ticket keys are compromised, at the expense of an additional round trip and resources required to carry out the DHE key exchange. @@ -313,7 +313,7 @@ type Sslprofile struct { /** * cipher priority */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` /** * Parameter indicating to check whether peer entity certificate during TLS1.2 handshake is signed with one of signature-hash combination supported by Citrix ADC. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go index e3f613c30..54cee2bbe 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_ecccurve_binding.go @@ -31,7 +31,7 @@ type Sslprofileecccurvebinding struct { /** * Priority of the cipher binding */ - Cipherpriority uint32 `json:"cipherpriority,omitempty"` + Cipherpriority int `json:"cipherpriority,omitempty"` } \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcertkey_binding.go new file mode 100644 index 000000000..65e7e3a60 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcertkey_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslprofile. +*/ +type Sslprofilesslcertkeybinding struct { + /** + * The certkey (CA certificate + private key) to be used for SSL interception. + */ + Sslicacertkey string `json:"sslicacertkey,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Priority of the cipher binding + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcipher_binding.go new file mode 100644 index 000000000..4a527aa01 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslcipher_binding.go @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcipher that can be bound to sslprofile. +*/ +type Sslprofilesslcipherbinding struct { + /** + * The name of the cipher group/alias/individual cipheri bindings. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * cipher priority + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Name of the cipher. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslciphersuite_binding.go new file mode 100644 index 000000000..1fed2c3dd --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslciphersuite_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslciphersuite that can be bound to sslprofile. +*/ +type Sslprofilesslciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * cipher priority + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslvserver_binding.go new file mode 100644 index 000000000..533f48bf0 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslprofile_sslvserver_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslvserver that can be bound to sslprofile. +*/ +type Sslprofilesslvserverbinding struct { + /** + * Service name. + */ + Servicename string `json:"servicename,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL profile. + */ + Name string `json:"name,omitempty"` + /** + * Priority of the cipher binding + */ + Cipherpriority int `json:"cipherpriority,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go index 7aae17ad0..e06862702 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslrsakey.go @@ -27,7 +27,7 @@ type Sslrsakey struct { /** * Size, in bits, of the RSA key. */ - Bits uint32 `json:"bits,omitempty"` + Bits int `json:"bits,omitempty"` /** * Public exponent for the RSA key. The exponent is part of the cipher algorithm and is required for creating the RSA key. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go index 436074072..35dea9b67 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice.go @@ -35,7 +35,7 @@ type Sslservice struct { /** * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. This parameter is not applicable when configuring a backend service. Allowed DH count values are 0 and >= 500. */ - Dhcount uint32 `json:"dhcount,omitempty"` + Dhcount int `json:"dhcount,omitempty"` /** * This option enables the use of NIST recommended (NIST Special Publication 800-56A) bit size for private-key size. For example, for DH params of size 2048bit, the private-key size recommended is 224bits. This is rounded-up to 256bits. */ @@ -49,7 +49,7 @@ type Sslservice struct { * Refresh count for regeneration of RSA public-key and private-key pair. Zero (0) specifies infinite usage (no refresh). This parameter is not applicable when configuring a backend service. */ - Ersacount uint32 `json:"ersacount,omitempty"` + Ersacount int `json:"ersacount,omitempty"` /** * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. */ @@ -57,7 +57,7 @@ type Sslservice struct { /** * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. */ - Sesstimeout uint32 `json:"sesstimeout,omitempty"` + Sesstimeout int `json:"sesstimeout,omitempty"` /** * State of Cipher Redirect. If this parameter is set to ENABLED, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. This parameter is not applicable when configuring a backend service. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcertkey_binding.go new file mode 100644 index 000000000..2cc3efea9 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcertkey_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslservice. +*/ +type Sslservicesslcertkeybinding struct { + /** + * The certificate key pair binding. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The clearTextPort settings. + */ + Cleartextport int `json:"cleartextport,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * Rule to use for the OCSP responder associated with the CA certificate during client authentication. If MANDATORY is specified, deny all SSL clients if the OCSP check fails because of connectivity issues with the remote OCSP server, or any other reason that prevents the OCSP check. With the OPTIONAL setting, allow SSL clients even if the OCSP check fails except when the client certificate is revoked. + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The flag is used to indicate whether this particular CA certificate's CA_Name needs to be sent to the SSL client while requesting for client certificate in a SSL handshake + */ + Skipcaname bool `json:"skipcaname,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcipher_binding.go new file mode 100644 index 000000000..1d56db148 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslcipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcipher that can be bound to sslservice. +*/ +type Sslservicesslcipherbinding struct { + /** + * The cipher group/alias/individual cipher configuration. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + /** + * Name of the individual cipher, user-defined cipher group, or predefined (built-in) cipher alias. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslciphersuite_binding.go new file mode 100644 index 000000000..080177d44 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslciphersuite that can be bound to sslservice. +*/ +type Sslservicesslciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslpolicy_binding.go new file mode 100644 index 000000000..5451dd3de --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservice_sslpolicy_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslpolicy that can be bound to sslservice. +*/ +type Sslservicesslpolicybinding struct { + /** + * The SSL policy binding. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policies bound to this SSL service + */ + Priority int `json:"priority,omitempty"` + /** + * Whether the bound policy is a inherited policy or not + */ + Polinherit int `json:"polinherit,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. This attribute is relevant only for ADVANCED policies + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL service for which to set advanced configuration. + */ + Servicename string `json:"servicename,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go index 132ea2963..e347681b3 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup.go @@ -35,7 +35,7 @@ type Sslservicegroup struct { /** * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. */ - Sesstimeout uint32 `json:"sesstimeout,omitempty"` + Sesstimeout int `json:"sesstimeout,omitempty"` /** * State of SSLv3 protocol support for the SSL service group. Note: On platforms with SSL acceleration chips, if the SSL chip does not support SSLv3, this parameter cannot be set to ENABLED. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcertkey_binding.go new file mode 100644 index 000000000..0b10d8042 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcertkey_binding.go @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslservicegroup. +*/ +type Sslservicegroupsslcertkeybinding struct { + /** + * The name of the certificate bound to the SSL service group. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcipher_binding.go new file mode 100644 index 000000000..33c1fbafe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslcipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcipher that can be bound to sslservicegroup. +*/ +type Sslservicegroupsslcipherbinding struct { + /** + * The name of the cipher group/alias/name configured for the SSL service group. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The description of the cipher. + */ + Description string `json:"description,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + /** + * A cipher-suite can consist of an individual cipher name, the system predefined cipher-alias name, or user defined cipher-group name. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslciphersuite_binding.go new file mode 100644 index 000000000..ea295da8d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslservicegroup_sslciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslciphersuite that can be bound to sslservicegroup. +*/ +type Sslservicegroupsslciphersuitebinding struct { + /** + * The name of the cipher group/alias/name configured for the SSL service group. + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The description of the cipher. + */ + Description string `json:"description,omitempty"` + /** + * The name of the SSL service to which the SSL policy needs to be bound. + */ + Servicegroupname string `json:"servicegroupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go index 09564c988..5fdaef238 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver.go @@ -27,7 +27,7 @@ type Sslvserver struct { /** * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. */ - Cleartextport int32 `json:"cleartextport,omitempty"` + Cleartextport int `json:"cleartextport,omitempty"` /** * State of Diffie-Hellman (DH) key exchange. */ @@ -39,7 +39,7 @@ type Sslvserver struct { /** * Number of interactions, between the client and the Citrix ADC, after which the DH private-public pair is regenerated. A value of zero (0) specifies refresh every time. */ - Dhcount uint32 `json:"dhcount,omitempty"` + Dhcount int `json:"dhcount,omitempty"` /** * This option enables the use of NIST recommended (NIST Special Publication 800-56A) bit size for private-key size. For example, for DH params of size 2048bit, the private-key size recommended is 224bits. This is rounded-up to 256bits. */ @@ -51,7 +51,7 @@ type Sslvserver struct { /** * Refresh count for regeneration of the RSA public-key and private-key pair. Zero (0) specifies infinite usage (no refresh). */ - Ersacount uint32 `json:"ersacount,omitempty"` + Ersacount int `json:"ersacount,omitempty"` /** * State of session reuse. Establishing the initial handshake requires CPU-intensive public key encryption operations. With the ENABLED setting, session key exchange is avoided for session resumption requests received from the client. */ @@ -59,7 +59,7 @@ type Sslvserver struct { /** * Time, in seconds, for which to keep the session active. Any session resumption request received after the timeout period will require a fresh SSL handshake and establishment of a new SSL session. */ - Sesstimeout uint32 `json:"sesstimeout,omitempty"` + Sesstimeout int `json:"sesstimeout,omitempty"` /** * State of Cipher Redirect. If cipher redirect is enabled, you can configure an SSL virtual server or service to display meaningful error messages if the SSL handshake fails because of a cipher mismatch between the virtual server or service and the client. */ @@ -165,7 +165,7 @@ type Sslvserver struct { /** * Set the maximum time, in seconds, in the strict transport security (STS) header during which the client must send only HTTPS requests to the server */ - Maxage uint32 `json:"maxage,omitempty"` + Maxage int `json:"maxage,omitempty"` /** * Enable HSTS for subdomains. If set to Yes, a client must send only HTTPS requests for subdomains. */ @@ -188,7 +188,7 @@ type Sslvserver struct { This value can be increased to enable clients to open multiple parallel connections using a fresh ticket for each connection. No tickets are sent if resumption is disabled. */ - Tls13sessionticketsperauthcontext uint32 `json:"tls13sessionticketsperauthcontext,omitempty"` + Tls13sessionticketsperauthcontext int `json:"tls13sessionticketsperauthcontext,omitempty"` /** * Whether or not the SSL Virtual Server will require a DHE key exchange to occur when a PSK is accepted during a TLS 1.3 resumption handshake. A DHE key exchange ensures forward secrecy even in the event that ticket keys are compromised, at the expense of an additional round trip and resources required to carry out the DHE key exchange. diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcertkey_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcertkey_binding.go new file mode 100644 index 000000000..0524cbffe --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcertkey_binding.go @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcertkey that can be bound to sslvserver. +*/ +type Sslvserversslcertkeybinding struct { + /** + * The name of the certificate key pair binding. + */ + Certkeyname string `json:"certkeyname,omitempty"` + /** + * The state of the CRL check parameter. (Mandatory/Optional) + */ + Crlcheck string `json:"crlcheck,omitempty"` + /** + * The state of the OCSP check parameter. (Mandatory/Optional) + */ + Ocspcheck string `json:"ocspcheck,omitempty"` + /** + * Port on which clear-text data is sent by the appliance to the server. Do not specify this parameter for SSL offloading with end-to-end encryption. + */ + Cleartextport int `json:"cleartextport,omitempty"` + /** + * CA certificate. + */ + Ca bool `json:"ca,omitempty"` + /** + * The name of the CertKey. Use this option to bind Certkey(s) which will be used in SNI processing. + */ + Snicert bool `json:"snicert,omitempty"` + /** + * The flag is used to indicate whether this particular CA certificate's CA_Name needs to be sent to the SSL client while requesting for client certificate in a SSL handshake + */ + Skipcaname bool `json:"skipcaname,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcipher_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcipher_binding.go new file mode 100644 index 000000000..8ff493c58 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslcipher_binding.go @@ -0,0 +1,41 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslcipher that can be bound to sslvserver. +*/ +type Sslvserversslcipherbinding struct { + /** + * The name of the cipher group/alias/individual cipheri bindings. + */ + Cipheraliasname string `json:"cipheraliasname,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + /** + * Name of the individual cipher, user-defined cipher group, or predefined (built-in) cipher alias. + */ + Ciphername string `json:"ciphername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslciphersuite_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslciphersuite_binding.go new file mode 100644 index 000000000..f2f0e8020 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslciphersuite_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslciphersuite that can be bound to sslvserver. +*/ +type Sslvserversslciphersuitebinding struct { + /** + * The cipher group/alias/individual cipher configuration + */ + Ciphername string `json:"ciphername,omitempty"` + /** + * The cipher suite description. + */ + Description string `json:"description,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslpolicy_binding.go new file mode 100644 index 000000000..81ee908a5 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/ssl/sslvserver_sslpolicy_binding.go @@ -0,0 +1,64 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package ssl + +/** +* Binding class showing the sslpolicy that can be bound to sslvserver. +*/ +type Sslvserversslpolicybinding struct { + /** + * The name of the SSL policy binding. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policies bound to this SSL service + */ + Priority int `json:"priority,omitempty"` + /** + * Bind point to which to bind the policy. Possible Values: REQUEST, INTERCEPT_REQ and CLIENTHELLO_REQ. These bindpoints mean: + 1. REQUEST: Policy evaluation will be done at appplication above SSL. This bindpoint is default and is used for actions based on clientauth and client cert. + 2. INTERCEPT_REQ: Policy evaluation will be done during SSL handshake to decide whether to intercept or not. Actions allowed with this type are: INTERCEPT, BYPASS and RESET. + 3. CLIENTHELLO_REQ: Policy evaluation will be done during handling of Client Hello Request. Action allowed with this type is: RESET, FORWARD and PICKCACERTGRP. + */ + Type string `json:"type,omitempty"` + /** + * Whether the bound policy is a inherited policy or not + */ + Polinherit int `json:"polinherit,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Invoke flag. This attribute is relevant only for ADVANCED policies + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the SSL virtual server. + */ + Vservername string `json:"vservername,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go index 9f136c8cf..1a7e30992 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementity.go @@ -31,7 +31,7 @@ type Systementity struct { /** * Specify core ID of the PE in nCore. */ - Core int32 `json:"core,omitempty"` + Core int `json:"core,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go index 997c2b91b..d0076f43c 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systementitydata.go @@ -43,7 +43,7 @@ type Systementitydata struct { /** * Specify core ID of the PE in nCore. */ - Core int32 `json:"core,omitempty"` + Core int `json:"core,omitempty"` /** * Specify the counters to be collected. */ @@ -59,7 +59,7 @@ type Systementitydata struct { /** * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. */ - Last int32 `json:"last,omitempty"` + Last int `json:"last,omitempty"` /** * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go index e87a51e46..da3db3d27 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemeventhistory.go @@ -31,7 +31,7 @@ type Systemeventhistory struct { /** * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. */ - Last int32 `json:"last,omitempty"` + Last int `json:"last,omitempty"` /** * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go index 64b754ae0..5d9ea3245 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemextramgmtcpu.go @@ -21,7 +21,7 @@ type Systemextramgmtcpu struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditnslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditnslogpolicy_binding.go new file mode 100644 index 000000000..5f479615c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditnslogpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the auditnslogpolicy that can be bound to systemglobal. +*/ +type Systemglobalauditnslogpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditsyslogpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditsyslogpolicy_binding.go new file mode 100644 index 000000000..2489dd72c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_auditsyslogpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the auditsyslogpolicy that can be bound to systemglobal. +*/ +type Systemglobalauditsyslogpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationldappolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationldappolicy_binding.go new file mode 100644 index 000000000..cb3302432 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationldappolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the authenticationldappolicy that can be bound to systemglobal. +*/ +type Systemglobalauthenticationldappolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationlocalpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationlocalpolicy_binding.go new file mode 100644 index 000000000..82beb8e6d --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationlocalpolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the authenticationlocalpolicy that can be bound to systemglobal. +*/ +type Systemglobalauthenticationlocalpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationpolicy_binding.go new file mode 100644 index 000000000..f92bdfb88 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationpolicy_binding.go @@ -0,0 +1,50 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the authenticationpolicy that can be bound to systemglobal. +*/ +type Systemglobalauthenticationpolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. Applicable only for advanced authentication policies + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationradiuspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationradiuspolicy_binding.go new file mode 100644 index 000000000..0e7e9d527 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationradiuspolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the authenticationradiuspolicy that can be bound to systemglobal. +*/ +type Systemglobalauthenticationradiuspolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationtacacspolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationtacacspolicy_binding.go new file mode 100644 index 000000000..603f9a761 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobal_authenticationtacacspolicy_binding.go @@ -0,0 +1,52 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the authenticationtacacspolicy that can be bound to systemglobal. +*/ +type Systemglobalauthenticationtacacspolicybinding struct { + /** + * The name of the command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates that a variable is a built-in (SYSTEM INTERNAL) type. + */ + Builtin []string `json:"builtin,omitempty"` + /** + * The feature to be checked while applying this config + */ + Feature string `json:"feature,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + /** + * On success invoke label. Applicable for advanced authentication policy binding + */ + Nextfactor string `json:"nextfactor,omitempty"` + /** + * Applicable only to advance authentication policy. Expression or other value specifying the next policy to be evaluated if the current policy evaluates to TRUE. Specify one of the following values: + * NEXT - Evaluate the policy with the next higher priority number. + * END - End policy evaluation. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go index aad66d719..48dab1126 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemglobaldata.go @@ -39,7 +39,7 @@ type Systemglobaldata struct { /** * Last is literal way of saying a certain time period from the current moment. Example: -last 1 hour, -last 1 day, et cetera. */ - Last int32 `json:"last,omitempty"` + Last int `json:"last,omitempty"` /** * Specify the time period from current moment. Example 1 x where x = hours/ days/ years. */ @@ -51,7 +51,7 @@ type Systemglobaldata struct { /** * Specify core ID of the PE in nCore. */ - Core int32 `json:"core,omitempty"` + Core int `json:"core,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go index 45768d958..035e9cfdc 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup.go @@ -39,7 +39,7 @@ type Systemgroup struct { /** * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument of system parameter is enabled, Timeout can have values in the range [300-86400] seconds.If Restrictedtimeout argument of system parameter is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. */ - Timeout uint64 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Allowed Management interfaces of the system users in the group. By default allowed from both API and CLI interfaces. If management interface for a group is set to API, then all users under this group will not allowed to access NS through CLI. GUI interface will come under API interface */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_nspartition_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_nspartition_binding.go new file mode 100644 index 000000000..14d448f52 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_nspartition_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the nspartition that can be bound to systemgroup. +*/ +type Systemgroupnspartitionbinding struct { + /** + * Name of the Partition to bind to the system group. + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemcmdpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemcmdpolicy_binding.go new file mode 100644 index 000000000..5919bfb46 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemcmdpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the systemcmdpolicy that can be bound to systemgroup. +*/ +type Systemgroupsystemcmdpolicybinding struct { + /** + * The name of command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the command policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemuser_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemuser_binding.go new file mode 100644 index 000000000..56066581c --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemgroup_systemuser_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the systemuser that can be bound to systemgroup. +*/ +type Systemgroupsystemuserbinding struct { + /** + * The system user. + */ + Username string `json:"username,omitempty"` + /** + * Name of the system group. + */ + Groupname string `json:"groupname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go index acf4c1731..3fad87936 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemparameter.go @@ -38,7 +38,7 @@ type Systemparameter struct { /** * Flush the system if the number of Network Address Translation Protocol Control Blocks (NATPCBs) exceeds this value. */ - Natpcbforceflushlimit uint32 `json:"natpcbforceflushlimit,omitempty"` + Natpcbforceflushlimit int `json:"natpcbforceflushlimit,omitempty"` /** * Send a reset signal to client and server connections when their NATPCBs time out. Avoids the buildup of idle TCP connections on both the sides. */ @@ -47,7 +47,7 @@ type Systemparameter struct { * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument is enabled, Timeout can have values in the range [300-86400] seconds. If Restrictedtimeout argument is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. */ - Timeout uint64 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * When enabled, local users can access Citrix ADC even when external authentication is configured. When disabled, local users are not allowed to access the Citrix ADC, Local users can access the Citrix ADC only when the configured external authentication servers are unavailable. This parameter is not applicable to SSH Key-based authentication */ @@ -55,7 +55,7 @@ type Systemparameter struct { /** * Minimum length of system user password. When strong password is enabled default minimum length is 4. User entered value can be greater than or equal to 4. Default mininum value is 1 when strong password is disabled. Maximum value is 127 in both cases. */ - Minpasswordlen uint32 `json:"minpasswordlen,omitempty"` + Minpasswordlen int `json:"minpasswordlen,omitempty"` /** * After enabling strong password (enableall / enablelocal - not included in exclude list), all the passwords / sensitive information must have - Atleast 1 Lower case character, Atleast 1 Upper case character, Atleast 1 numeric character, Atleast 1 special character ( ~, `, !, @, #, $, %, ^, &, *, -, _, =, +, {, }, [, ], |, \, :, <, >, /, ., ,, " "). Exclude list in case of enablelocal is - NS_FIPS, NS_CRL, NS_RSAKEY, NS_PKCS12, NS_PKCS8, NS_LDAP, NS_TACACS, NS_TACACSACTION, NS_RADIUS, NS_RADIUSACTION, NS_ENCRYPTION_PARAMS. So no Strong Password checks will be performed on these ObjectType commands for enablelocal case. */ @@ -79,7 +79,7 @@ type Systemparameter struct { /** * Total time a request can take for authentication/authorization */ - Totalauthtimeout uint32 `json:"totalauthtimeout,omitempty"` + Totalauthtimeout int `json:"totalauthtimeout,omitempty"` /** * Audit log level, which specifies the types of events to log for cli executed commands. Available values function as follows: diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go index a757298ff..389c8795b 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemsession.go @@ -23,7 +23,7 @@ type Systemsession struct { /** * ID of the system session about which to display information. */ - Sid uint32 `json:"sid,omitempty"` + Sid int `json:"sid,omitempty"` /** * Terminate all the system sessions except the current session. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go index ff2ed3ab1..089f4a834 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser.go @@ -47,7 +47,7 @@ type Systemuser struct { /** * CLI session inactivity timeout, in seconds. If Restrictedtimeout argument of system parameter is enabled, Timeout can have values in the range [300-86400] seconds. If Restrictedtimeout argument of system parameter is disabled, Timeout can have values in the range [0, 10-100000000] seconds. Default value is 900 seconds. */ - Timeout uint64 `json:"timeout,omitempty"` + Timeout int `json:"timeout,omitempty"` /** * Users logging privilege */ @@ -55,7 +55,7 @@ type Systemuser struct { /** * Maximum number of client connection allowed per user */ - Maxsession uint32 `json:"maxsession,omitempty"` + Maxsession int `json:"maxsession,omitempty"` /** * Allowed Management interfaces to the system user. By default user is allowed from both API and CLI interfaces. If management interface for a user is set to API, then user is not allowed to access NS through CLI. GUI interface will come under API interface */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_nspartition_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_nspartition_binding.go new file mode 100644 index 000000000..2cf884d67 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_nspartition_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the nspartition that can be bound to systemuser. +*/ +type Systemusernspartitionbinding struct { + /** + * Name of the Partition to bind to the system user. + */ + Partitionname string `json:"partitionname,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemcmdpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemcmdpolicy_binding.go new file mode 100644 index 000000000..d0113bde3 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemcmdpolicy_binding.go @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the systemcmdpolicy that can be bound to systemuser. +*/ +type Systemusersystemcmdpolicybinding struct { + /** + * The name of command policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * The priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemgroup_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemgroup_binding.go new file mode 100644 index 000000000..17e08178e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/system/systemuser_systemgroup_binding.go @@ -0,0 +1,33 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package system + +/** +* Binding class showing the systemgroup that can be bound to systemuser. +*/ +type Systemusersystemgroupbinding struct { + /** + * The system group. + */ + Groupname string `json:"groupname,omitempty"` + /** + * Name of the system-user entry to which to bind the command policy. + */ + Username string `json:"username,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go index af26759c0..37181afa3 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformaction.go @@ -34,7 +34,7 @@ type Transformaction struct { /** * Positive integer specifying the priority of the action within the profile. A lower number specifies a higher priority. Must be unique within the list of actions bound to the profile. Policies are evaluated in the order of their priority numbers, and the first policy that matches is applied. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Enable or disable this action. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_transformpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_transformpolicy_binding.go new file mode 100644 index 000000000..4991e3499 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformglobal_transformpolicy_binding.go @@ -0,0 +1,69 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the transformpolicy that can be bound to transformglobal. +*/ +type Transformglobaltransformpolicybinding struct { + /** + * Name of the transform policy. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the bind point to which to bind the policy. Available settings function as follows: + * REQ_OVERRIDE. Request override. Binds the policy to the priority request queue. + * REQ_DEFAULT. Binds the policy to the default request queue. + * HTTPQUIC_REQ_OVERRIDE - Binds the policy to the HTTP_QUIC override request queue. + * HTTPQUIC_REQ_DEFAULT - Binds the policy to the HTTP_QUIC default request queue. + */ + Type string `json:"type,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forwards the request or response to the specified virtual server or evaluates the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Send the request to the specified request virtual server. + * resvserver - Send the response to the specified response virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label to invoke if the current policy evaluates to TRUE, the invoke parameter is set, and the label type is Policy Label. + */ + Labelname string `json:"labelname,omitempty"` + /** + * The number of policies bound to the bindpoint. + */ + Numpol int `json:"numpol,omitempty"` + /** + * flowtype of the bound transform policy. + */ + Flowtype int `json:"flowtype,omitempty"` + Globalbindtype string `json:"globalbindtype,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_csvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_csvserver_binding.go new file mode 100644 index 000000000..f50828279 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_csvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the csvserver that can be bound to transformpolicy. +*/ +type Transformpolicycsvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_lbvserver_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_lbvserver_binding.go new file mode 100644 index 000000000..6c02e985f --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_lbvserver_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the lbvserver that can be bound to transformpolicy. +*/ +type Transformpolicylbvserverbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformglobal_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformglobal_binding.go new file mode 100644 index 000000000..2118a5c6e --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformglobal_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the transformglobal that can be bound to transformpolicy. +*/ +type Transformpolicytransformglobalbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformpolicylabel_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformpolicylabel_binding.go new file mode 100644 index 000000000..816b12c86 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicy_transformpolicylabel_binding.go @@ -0,0 +1,53 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the transformpolicylabel that can be bound to transformpolicy. +*/ +type Transformpolicytransformpolicylabelbinding struct { + /** + * Location where policy is bound + */ + Boundto string `json:"boundto,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Indicates whether policy is bound or not. + */ + Activepolicy int `json:"activepolicy,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * Type of policy label invocation. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the label to invoke if the current policy rule evaluates to TRUE. + */ + Labelname string `json:"labelname,omitempty"` + /** + * Name of the URL Transformation policy. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go index a5d4022d9..fbbac2ffb 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_policybinding_binding.go @@ -27,7 +27,7 @@ type Transformpolicylabelpolicybindingbinding struct { /** * Specifies the priority of the policy. */ - Priority uint32 `json:"priority,omitempty"` + Priority int `json:"priority,omitempty"` /** * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_transformpolicy_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_transformpolicy_binding.go new file mode 100644 index 000000000..eb23370d8 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformpolicylabel_transformpolicy_binding.go @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the transformpolicy that can be bound to transformpolicylabel. +*/ +type Transformpolicylabeltransformpolicybinding struct { + /** + * Name of the URL Transformation policy to bind to the policy label. + */ + Policyname string `json:"policyname,omitempty"` + /** + * Specifies the priority of the policy. + */ + Priority int `json:"priority,omitempty"` + /** + * Expression specifying the priority of the next policy which will get evaluated if the current policy rule evaluates to TRUE. + */ + Gotopriorityexpression string `json:"gotopriorityexpression,omitempty"` + /** + * If the current policy evaluates to TRUE, terminate evaluation of policies bound to the current policy label, and then forward the request to the specified virtual server or evaluate the specified policy label. + */ + Invoke bool `json:"invoke,omitempty"` + /** + * Type of invocation. Available settings function as follows: + * reqvserver - Forward the request to the specified request virtual server. + * policylabel - Invoke the specified policy label. + */ + Labeltype string `json:"labeltype,omitempty"` + /** + * Name of the policy label. + */ + Invokelabelname string `json:"invoke_labelname,omitempty"` + /** + * Name of the URL Transformation policy label to which to bind the policy. + */ + Labelname string `json:"labelname,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_transformaction_binding.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_transformaction_binding.go new file mode 100644 index 000000000..83e61b622 --- /dev/null +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/transform/transformprofile_transformaction_binding.go @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2021 Citrix Systems, Inc. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +package transform + +/** +* Binding class showing the transformaction that can be bound to transformprofile. +*/ +type Transformprofiletransformactionbinding struct { + /** + * URL Transformation action name. + */ + Actionname string `json:"actionname,omitempty"` + /** + * Priority of the Action within the Profile. + */ + Priority int `json:"priority,omitempty"` + /** + * Enabled flag. + */ + State string `json:"state,omitempty"` + /** + * URL Transformation profile name. + */ + Profilename string `json:"profilename,omitempty"` + /** + * Pattern of original request URLs. It corresponds to the way external users view the server, and acts as a source for request transformations. + */ + Requrlfrom string `json:"requrlfrom,omitempty"` + /** + * Pattern of transformed request URLs. It corresponds to internal addresses and indicates how they are created. + */ + Requrlinto string `json:"requrlinto,omitempty"` + /** + * Pattern of original response URLs. It corresponds to the way external users view the server, and acts as a source for response transformations. + */ + Resurlfrom string `json:"resurlfrom,omitempty"` + /** + * Pattern of transformed response URLs. It corresponds to internal addresses and indicates how they are created. + */ + Resurlinto string `json:"resurlinto,omitempty"` + /** + * Pattern of the original domain in Set-Cookie headers. + */ + Cookiedomainfrom string `json:"cookiedomainfrom,omitempty"` + /** + * Pattern of the transformed domain in Set-Cookie headers. + */ + Cookiedomaininto string `json:"cookiedomaininto,omitempty"` + /** + * Comments. + */ + Actioncomment string `json:"actioncomment,omitempty"` + /** + * Name of the profile. + */ + Name string `json:"name,omitempty"` + + +} \ No newline at end of file diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go index 691672ad4..7721f1703 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/callhome.go @@ -23,7 +23,7 @@ type Callhome struct { /** * Unique number that identifies the cluster node. */ - Nodeid uint32 `json:"nodeid,omitempty"` + Nodeid int `json:"nodeid,omitempty"` /** * CallHome mode of operation */ @@ -35,7 +35,7 @@ type Callhome struct { /** * Interval (in days) between CallHome heartbeats */ - Hbcustominterval uint32 `json:"hbcustominterval,omitempty"` + Hbcustominterval int `json:"hbcustominterval,omitempty"` /** * Enables or disables the proxy mode. The proxy server can be set by either specifying the IP address of the server or the name of the service representing the proxy server. */ @@ -51,7 +51,7 @@ type Callhome struct { /** * HTTP port on the Proxy server. This is a mandatory parameter for both IP address and service name based configuration. */ - Port int32 `json:"port,omitempty"` + Port int `json:"port,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go index 99de7b020..22d9ae839 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping.go @@ -21,11 +21,11 @@ type Ping struct { /** * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. */ - C uint32 `json:"c,omitempty"` + C int `json:"c,omitempty"` /** * Waiting time, in seconds. The default value is 1 second. */ - I uint32 `json:"i,omitempty"` + I int `json:"i,omitempty"` /** * Network interface on which to ping, if you have multiple interfaces. */ @@ -45,7 +45,7 @@ type Ping struct { /** * Data size, in bytes. The default value is 56. */ - S uint32 `json:"s,omitempty"` + S int `json:"s,omitempty"` /** * Source IP address to be used in the outgoing query packets. If the IP addrESS does not belongs to this appliance, an error is returned and nothing is sent. */ @@ -53,11 +53,11 @@ type Ping struct { /** * Traffic Domain Id */ - T uint32 `json:"T,omitempty"` + T int `json:"T,omitempty"` /** * Time-out, in seconds, before ping exits. */ - T_ uint32 `json:"t,omitempty"` + T_ int `json:"t,omitempty"` /** * Address of host to ping. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go index d637b6995..9d7d2933e 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/ping6.go @@ -21,15 +21,15 @@ type Ping6 struct { /** * Set socket buffer size. If used, should be used with roughly +100 then the datalen (-s option). The default value is 8192. */ - B uint32 `json:"b,omitempty"` + B int `json:"b,omitempty"` /** * Number of packets to send. The default value is infinite. For Nitro API, defalut value is taken as 5. */ - C uint32 `json:"c,omitempty"` + C int `json:"c,omitempty"` /** * Waiting time, in seconds. The default value is 1 second. */ - I uint32 `json:"i,omitempty"` + I int `json:"i,omitempty"` /** * Network interface on which to ping, if you have multiple interfaces. */ @@ -53,11 +53,11 @@ type Ping6 struct { /** * Data size, in bytes. The default value is 32. */ - S uint32 `json:"s,omitempty"` + S int `json:"s,omitempty"` /** * VLAN ID for link local address. */ - V uint32 `json:"V,omitempty"` + V int `json:"V,omitempty"` /** * Source IP address to be used in the outgoing query packets. */ @@ -65,11 +65,11 @@ type Ping6 struct { /** * Traffic Domain Id */ - T uint32 `json:"T,omitempty"` + T int `json:"T,omitempty"` /** * Timeout in seconds before ping6 exits */ - T_ uint32 `json:"t,omitempty"` + T_ int `json:"t,omitempty"` /** * Address of host to ping. */ diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go index d44ee0986..23892c220 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute.go @@ -37,11 +37,11 @@ type Traceroute struct { /** * Minimum TTL value used in outgoing probe packets. */ - M uint32 `json:"M,omitempty"` + M int `json:"M,omitempty"` /** * Maximum TTL value used in outgoing probe packets. For Nitro API, default value is taken as 10. */ - M_ int32 `json:"m,omitempty"` + M_ int `json:"m,omitempty"` /** * Send packets of specified IP protocol. The currently supported protocols are UDP and ICMP. */ @@ -49,11 +49,11 @@ type Traceroute struct { /** * Base port number used in probes. */ - P_ int32 `json:"p,omitempty"` + P_ int `json:"p,omitempty"` /** * Number of queries per hop. For Nitro API, defalut value is taken as 1. */ - Q int32 `json:"q,omitempty"` + Q int `json:"q,omitempty"` /** * Source IP address to use in the outgoing query packets. If the IP address does not belong to this appliance, an error is returned and nothing is sent. */ @@ -61,15 +61,15 @@ type Traceroute struct { /** * Traffic Domain Id */ - T uint32 `json:"T,omitempty"` + T int `json:"T,omitempty"` /** * Type-of-service in query packets. */ - T_ int32 `json:"t,omitempty"` + T_ int `json:"t,omitempty"` /** * Time (in seconds) to wait for a response to a query. For Nitro API, defalut value is set to 3. */ - W int32 `json:"w,omitempty"` + W int `json:"w,omitempty"` /** * Destination host IP address or name. */ @@ -77,7 +77,7 @@ type Traceroute struct { /** * Length (in bytes) of the query packets. */ - Packetlen int32 `json:"packetlen,omitempty"` + Packetlen int `json:"packetlen,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go index 7a6c296d7..8253d3a67 100644 --- a/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go +++ b/vendor/github.com/citrix/adc-nitro-go/resource/config/utility/traceroute6.go @@ -37,15 +37,15 @@ type Traceroute6 struct { /** * Maximum hop value for outgoing probe packets. For Nitro API, default value is taken as 10. */ - M int32 `json:"m,omitempty"` + M int `json:"m,omitempty"` /** * Base port number used in probes. */ - P int32 `json:"p,omitempty"` + P int `json:"p,omitempty"` /** * Number of probes per hop. For Nitro API, default value is taken as 1. */ - Q int32 `json:"q,omitempty"` + Q int `json:"q,omitempty"` /** * Source IP address to use in the outgoing query packets. If the IP address does not belong to this appliance, an error is returned and nothing is sent. */ @@ -53,11 +53,11 @@ type Traceroute6 struct { /** * Traffic Domain Id */ - T uint32 `json:"T,omitempty"` + T int `json:"T,omitempty"` /** * Time (in seconds) to wait for a response to a query. For Nitro API, defalut value is set to 3. */ - W int32 `json:"w,omitempty"` + W int `json:"w,omitempty"` /** * Destination host IP address or name. */ @@ -65,7 +65,7 @@ type Traceroute6 struct { /** * Length (in bytes) of the query packets. */ - Packetlen int32 `json:"packetlen,omitempty"` + Packetlen int `json:"packetlen,omitempty"` //------- Read only Parameter ---------; diff --git a/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go b/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go index c258699cc..9cd3073d9 100644 --- a/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go +++ b/vendor/github.com/citrix/adc-nitro-go/service/netscaler_resource.go @@ -30,7 +30,10 @@ import ( ) // Idempotent flag can't be added for these resources -var idempotentInvalidResources = []string{"login", "logout", "reboot", "shutdown", "ping", "ping6", "traceroute", "traceroute6", "install", "appfwjsoncontenttype", "appfwxmlcontenttype", "dnsnsrec"} +var idempotentInvalidResources = []string{"login", "logout", "reboot", "shutdown", "ping", "ping6", "traceroute", "traceroute6", "install", "appfwjsoncontenttype", "appfwxmlcontenttype", "dnsnsrec", "transformaction"} + +// HTTP Headers to be masked and not shown in logs +var headersToBeMasked = []string{"X-NITRO-USER", "X-NITRO-PASS", "Set-Cookie"} const ( nsErrSessionExpired = 444 @@ -156,10 +159,7 @@ func maskHeaders(headers http.Header) http.Header { maskedHeaders := make(http.Header, len(headers)) for k, v := range headers { upperKey := strings.ToUpper(k) - - if upperKey == "X-NITRO-PASS" { - maskedHeaders[k] = []string{"*********"} - } else if upperKey == "X-NITRO-USER" { + if contains(headersToBeMasked, upperKey) { maskedHeaders[k] = []string{"*********"} } else { maskedHeaders[k] = v @@ -172,7 +172,7 @@ func (c *NitroClient) doHTTPRequest(method string, urlstr string, bytes *bytes.B req, err := c.createHTTPRequest(method, urlstr, bytes) maskedHeaders := maskHeaders(req.Header) - c.logger.Trace("doHTTPRequest HTTP method", "method", method, "url", urlstr, "body", bytes.String(), "headers", maskedHeaders) + c.logger.Trace("doHTTPRequest HTTP method", "method", method, "url", urlstr, "headers", maskedHeaders) resp, err := c.client.Do(req) if resp != nil { diff --git a/vendor/modules.txt b/vendor/modules.txt index 1bbf415c8..37c231b58 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -60,7 +60,7 @@ github.com/bgentry/speakeasy github.com/blang/semver # github.com/bmatcuk/doublestar v1.1.5 github.com/bmatcuk/doublestar -# github.com/citrix/adc-nitro-go v0.0.0-20210616092114-c917a2b77ef3 +# github.com/citrix/adc-nitro-go v0.0.0-20210706081452-0ff4869771a4 github.com/citrix/adc-nitro-go/resource/config/appfw github.com/citrix/adc-nitro-go/resource/config/audit github.com/citrix/adc-nitro-go/resource/config/basic From 9c785cc4ddfd659db46fa18f5f2b2f0923025ace Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Tue, 6 Jul 2021 16:37:46 +0300 Subject: [PATCH 4/5] Update provider files to be compatible with new adc-nitro-go Also update tests when needed --- citrixadc/provider_test.go | 7 ++ .../resource_citrixadc_appfwfieldtype.go | 4 +- .../resource_citrixadc_appfwfieldtype_test.go | 3 + ...rce_citrixadc_appfwjsoncontenttype_test.go | 3 + .../resource_citrixadc_appfwpolicy_test.go | 3 + ...esource_citrixadc_appfwpolicylabel_test.go | 3 + citrixadc/resource_citrixadc_appfwprofile.go | 36 ++++----- ...wprofile_cookieconsistency_binding_test.go | 3 + ...profile_crosssitescripting_binding_test.go | 3 + ...ixadc_appfwprofile_denyurl_binding_test.go | 3 + ..._appfwprofile_sqlinjection_binding_test.go | 3 + ...xadc_appfwprofile_starturl_binding_test.go | 3 + .../resource_citrixadc_appfwprofile_test.go | 3 + ...urce_citrixadc_appfwxmlcontenttype_test.go | 3 + ...ource_citrixadc_auditmessageaction_test.go | 3 + .../resource_citrixadc_auditsyslogaction.go | 12 +-- ...source_citrixadc_auditsyslogaction_test.go | 3 + ...source_citrixadc_auditsyslogpolicy_test.go | 3 + citrixadc/resource_citrixadc_cluster.go | 40 +++++----- citrixadc/resource_citrixadc_cluster_test.go | 4 +- ...urce_citrixadc_clusterfiles_syncer_test.go | 7 +- .../resource_citrixadc_cmppolicy_test.go | 3 + citrixadc/resource_citrixadc_csaction_test.go | 6 ++ citrixadc/resource_citrixadc_cspolicy_test.go | 3 + citrixadc/resource_citrixadc_csvserver.go | 56 ++++++------- ...xadc_csvserver_appfwpolicy_binding_test.go | 3 + ...rixadc_csvserver_cmppolicy_binding_test.go | 3 + ...trixadc_csvserver_cspolicy_binding_test.go | 3 + ...adc_csvserver_filterpolicy_binding_test.go | 3 + ..._csvserver_responderpolicy_binding_test.go | 3 + ...dc_csvserver_rewritepolicy_binding_test.go | 3 + .../resource_citrixadc_csvserver_test.go | 35 ++++++++ ..._csvserver_transformpolicy_binding_test.go | 3 + citrixadc/resource_citrixadc_dnsnsrec.go | 2 +- citrixadc/resource_citrixadc_dnsnsrec_test.go | 3 + citrixadc/resource_citrixadc_dnssoarec.go | 28 +++---- .../resource_citrixadc_dnssoarec_test.go | 3 + .../resource_citrixadc_filterpolicy_test.go | 3 + citrixadc/resource_citrixadc_gslbservice.go | 58 +++++++------- .../resource_citrixadc_gslbservice_test.go | 19 ++++- citrixadc/resource_citrixadc_gslbsite_test.go | 6 ++ citrixadc/resource_citrixadc_gslbvserver.go | 48 +++++------ .../resource_citrixadc_gslbvserver_test.go | 9 +++ citrixadc/resource_citrixadc_inat.go | 4 +- citrixadc/resource_citrixadc_inat_test.go | 3 + .../resource_citrixadc_installer_test.go | 6 +- citrixadc/resource_citrixadc_interface.go | 32 ++++---- .../resource_citrixadc_interface_test.go | 3 + citrixadc/resource_citrixadc_ipset.go | 2 +- citrixadc/resource_citrixadc_ipset_test.go | 16 +++- citrixadc/resource_citrixadc_iptunnel.go | 2 +- citrixadc/resource_citrixadc_iptunnel_test.go | 3 + citrixadc/resource_citrixadc_lbmonitor.go | 80 +++++++++---------- .../resource_citrixadc_lbmonitor_test.go | 6 ++ .../resource_citrixadc_lbparameter_test.go | 3 + ...xadc_lbvserver_appfwpolicy_binding_test.go | 3 + ...rixadc_lbvserver_cmppolicy_binding_test.go | 3 + ...adc_lbvserver_filterpolicy_binding_test.go | 3 + ..._lbvserver_responderpolicy_binding_test.go | 3 + ...dc_lbvserver_rewritepolicy_binding_test.go | 3 + ...rce_citrixadc_lbvserver_service_binding.go | 2 +- ...itrixadc_lbvserver_service_binding_test.go | 3 + ...adc_lbvserver_servicegroup_binding_test.go | 3 + .../resource_citrixadc_lbvserver_test.go | 30 ++++++- ..._lbvserver_transformpolicy_binding_test.go | 3 + citrixadc/resource_citrixadc_linkset.go | 3 +- citrixadc/resource_citrixadc_linkset_test.go | 3 + .../resource_citrixadc_netprofile_test.go | 3 + citrixadc/resource_citrixadc_nsacl.go | 36 ++++----- citrixadc/resource_citrixadc_nsacl_test.go | 6 ++ citrixadc/resource_citrixadc_nsacls.go | 16 ++-- citrixadc/resource_citrixadc_nsacls_test.go | 6 ++ citrixadc/resource_citrixadc_nscapacity.go | 4 +- .../resource_citrixadc_nscapacity_test.go | 6 +- .../resource_citrixadc_nsconfig_save_test.go | 6 ++ .../resource_citrixadc_nsconfig_update.go | 4 +- .../resource_citrixadc_nsfeature_test.go | 8 +- citrixadc/resource_citrixadc_nshttpprofile.go | 56 ++++++------- .../resource_citrixadc_nshttpprofile_test.go | 3 + citrixadc/resource_citrixadc_nsip6_test.go | 6 ++ citrixadc/resource_citrixadc_nsip_test.go | 6 ++ .../resource_citrixadc_nslicense_test.go | 8 +- .../resource_citrixadc_nslicenseserver.go | 4 +- ...resource_citrixadc_nslicenseserver_test.go | 5 +- citrixadc/resource_citrixadc_nsparam.go | 22 ++--- citrixadc/resource_citrixadc_nsparam_test.go | 7 +- .../resource_citrixadc_nsrpcnode_test.go | 11 ++- .../resource_citrixadc_nstcpparam_test.go | 3 + .../resource_citrixadc_nstcpprofile_test.go | 6 ++ .../resource_citrixadc_nsvpxparam_test.go | 9 ++- citrixadc/resource_citrixadc_pinger.go | 8 +- citrixadc/resource_citrixadc_pinger_test.go | 6 +- .../resource_citrixadc_policydataset_test.go | 3 + ...e_citrixadc_policydataset_value_binding.go | 2 +- ...rixadc_policydataset_value_binding_test.go | 3 + ...esource_citrixadc_policyexpression_test.go | 6 ++ ..._citrixadc_policypatset_pattern_binding.go | 2 +- ...ixadc_policypatset_pattern_binding_test.go | 3 + .../resource_citrixadc_policypatset_test.go | 3 + ...dc_policystringmap_pattern_binding_test.go | 3 + ...resource_citrixadc_policystringmap_test.go | 3 + ...source_citrixadc_quicbridgeprofile_test.go | 6 +- citrixadc/resource_citrixadc_rebooter_test.go | 3 + .../resource_citrixadc_responderaction.go | 4 +- ...resource_citrixadc_responderaction_test.go | 6 ++ .../resource_citrixadc_responderpolicy.go | 21 ++++- ...resource_citrixadc_responderpolicy_test.go | 9 +++ ...rce_citrixadc_responderpolicylabel_test.go | 3 + .../resource_citrixadc_rewriteaction_test.go | 3 + citrixadc/resource_citrixadc_rewritepolicy.go | 21 ++++- .../resource_citrixadc_rewritepolicy_test.go | 9 +++ ...ource_citrixadc_rewritepolicylabel_test.go | 3 + citrixadc/resource_citrixadc_rnat_test.go | 6 +- citrixadc/resource_citrixadc_route.go | 24 +++--- citrixadc/resource_citrixadc_route_test.go | 3 + ...resource_citrixadc_routerdynamicrouting.go | 2 +- ...rce_citrixadc_routerdynamicrouting_test.go | 6 +- citrixadc/resource_citrixadc_server.go | 10 +-- citrixadc/resource_citrixadc_server_test.go | 9 +++ citrixadc/resource_citrixadc_service.go | 50 ++++++------ citrixadc/resource_citrixadc_service_test.go | 12 +++ citrixadc/resource_citrixadc_servicegroup.go | 74 +++++++++-------- ...adc_servicegroup_lbmonitor_binding_test.go | 3 + ...servicegroup_servicegroupmember_binding.go | 10 +-- ...cegroup_servicegroupmember_binding_test.go | 12 +++ .../resource_citrixadc_servicegroup_test.go | 9 +++ .../resource_citrixadc_sslaction_test.go | 4 +- citrixadc/resource_citrixadc_sslcertkey.go | 4 +- .../resource_citrixadc_sslcertkey_test.go | 9 +++ citrixadc/resource_citrixadc_sslcipher.go | 2 +- .../resource_citrixadc_sslcipher_test.go | 3 + citrixadc/resource_citrixadc_ssldhparam.go | 2 +- .../resource_citrixadc_ssldhparam_test.go | 3 + citrixadc/resource_citrixadc_sslparameter.go | 36 ++++----- .../resource_citrixadc_sslparameter_test.go | 4 +- .../resource_citrixadc_sslpolicy_test.go | 5 +- ...ixadc_sslprofile_sslcipher_binding_test.go | 5 +- .../resource_citrixadc_sslprofile_test.go | 12 +-- ...xadc_sslvserver_sslcertkey_binding_test.go | 6 ++ ...ixadc_sslvserver_sslpolicy_binding_test.go | 6 ++ ...resource_citrixadc_systemcmdpolicy_test.go | 3 + ...ource_citrixadc_systemextramgmtcpu_test.go | 6 +- .../resource_citrixadc_systemfile_test.go | 3 + citrixadc/resource_citrixadc_systemgroup.go | 4 +- .../resource_citrixadc_systemgroup_test.go | 3 + citrixadc/resource_citrixadc_systemuser.go | 8 +- .../resource_citrixadc_systemuser_test.go | 3 + .../resource_citrixadc_transformaction.go | 6 +- ...resource_citrixadc_transformaction_test.go | 3 + ...resource_citrixadc_transformpolicy_test.go | 3 + ...esource_citrixadc_transformprofile_test.go | 6 ++ citrixadc/resource_citrixadc_vlan.go | 8 +- citrixadc/resource_citrixadc_vlan_test.go | 3 + citrixadc/sslvserver_utils.go | 12 ++- 154 files changed, 995 insertions(+), 455 deletions(-) diff --git a/citrixadc/provider_test.go b/citrixadc/provider_test.go index afef06fdf..a1c312806 100644 --- a/citrixadc/provider_test.go +++ b/citrixadc/provider_test.go @@ -15,6 +15,7 @@ var testAccProvider *schema.Provider var isCpxRun bool var isCluster bool +var adcTestbed string func init() { log.Printf("[DEBUG] citrixadc-provider-test: In init") @@ -27,6 +28,12 @@ func init() { isCpxRun = strings.Contains(nsUrl, "localhost") isCluster = testIsTargetAdcCluster() + + var exists bool + adcTestbed, exists = os.LookupEnv("ADC_TESTBED") + if !exists { + adcTestbed = "UNSPECIFIED" + } } func TestProvider(t *testing.T) { diff --git a/citrixadc/resource_citrixadc_appfwfieldtype.go b/citrixadc/resource_citrixadc_appfwfieldtype.go index 4fc613432..e6c2a1e2f 100644 --- a/citrixadc/resource_citrixadc_appfwfieldtype.go +++ b/citrixadc/resource_citrixadc_appfwfieldtype.go @@ -55,7 +55,7 @@ func createAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { Comment: d.Get("comment").(string), Name: appfwfieldtypeName, Nocharmaps: d.Get("nocharmaps").(bool), - Priority: uint32(d.Get("priority").(int)), + Priority: d.Get("priority").(int), Regex: d.Get("regex").(string), } @@ -123,7 +123,7 @@ func updateAppfwfieldtypeFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] citrixadc-provider: Priority has changed for appfwfieldtype %s, starting update", appfwfieldtypeName) - appfwfieldtype.Priority = uint32(d.Get("priority").(int)) + appfwfieldtype.Priority = d.Get("priority").(int) hasChange = true } // if d.HasChange("regex") { diff --git a/citrixadc/resource_citrixadc_appfwfieldtype_test.go b/citrixadc/resource_citrixadc_appfwfieldtype_test.go index 73cf082fa..3cef1409a 100644 --- a/citrixadc/resource_citrixadc_appfwfieldtype_test.go +++ b/citrixadc/resource_citrixadc_appfwfieldtype_test.go @@ -40,6 +40,9 @@ resource "citrixadc_appfwfieldtype" "tfAcc_appfwfieldtype" { ` func TestAccAppfwfieldtype_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go b/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go index e6aa9914e..7d5390fbd 100644 --- a/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go +++ b/citrixadc/resource_citrixadc_appfwjsoncontenttype_test.go @@ -34,6 +34,9 @@ const testAccAppfwjsoncontenttype_basic = ` ` func TestAccAppfwjsoncontenttype_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwpolicy_test.go b/citrixadc/resource_citrixadc_appfwpolicy_test.go index 515394b44..c91ab1425 100644 --- a/citrixadc/resource_citrixadc_appfwpolicy_test.go +++ b/citrixadc/resource_citrixadc_appfwpolicy_test.go @@ -105,6 +105,9 @@ const testAccAppfwpolicy_update = ` ` func TestAccAppfwpolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwpolicylabel_test.go b/citrixadc/resource_citrixadc_appfwpolicylabel_test.go index 37c1fde4a..15170bc80 100644 --- a/citrixadc/resource_citrixadc_appfwpolicylabel_test.go +++ b/citrixadc/resource_citrixadc_appfwpolicylabel_test.go @@ -32,6 +32,9 @@ const testAccAppfwpolicylabel_basic = ` ` func TestAccAppfwpolicylabel_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile.go b/citrixadc/resource_citrixadc_appfwprofile.go index 84aa5233a..c4ef57b2e 100644 --- a/citrixadc/resource_citrixadc_appfwprofile.go +++ b/citrixadc/resource_citrixadc_appfwprofile.go @@ -491,23 +491,23 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Name: appfwprofileName, Addcookieflags: d.Get("addcookieflags").(string), Archivename: d.Get("archivename").(string), - Bufferoverflowmaxcookielength: uint32(d.Get("bufferoverflowmaxcookielength").(int)), - Bufferoverflowmaxheaderlength: uint32(d.Get("bufferoverflowmaxheaderlength").(int)), - Bufferoverflowmaxurllength: uint32(d.Get("bufferoverflowmaxurllength").(int)), + Bufferoverflowmaxcookielength: d.Get("bufferoverflowmaxcookielength").(int), + Bufferoverflowmaxheaderlength: d.Get("bufferoverflowmaxheaderlength").(int), + Bufferoverflowmaxurllength: d.Get("bufferoverflowmaxurllength").(int), Canonicalizehtmlresponse: d.Get("canonicalizehtmlresponse").(string), Checkrequestheaders: d.Get("checkrequestheaders").(string), Comment: d.Get("comment").(string), Cookieencryption: d.Get("cookieencryption").(string), Cookieproxying: d.Get("cookieproxying").(string), Cookietransforms: d.Get("cookietransforms").(string), - Creditcardmaxallowed: uint32(d.Get("creditcardmaxallowed").(int)), + Creditcardmaxallowed: d.Get("creditcardmaxallowed").(int), Creditcardxout: d.Get("creditcardxout").(string), Crosssitescriptingcheckcompleteurls: d.Get("crosssitescriptingcheckcompleteurls").(string), Crosssitescriptingtransformunsafehtml: d.Get("crosssitescriptingtransformunsafehtml").(string), Customsettings: d.Get("customsettings").(string), Defaultcharset: d.Get("defaultcharset").(string), - Defaultfieldformatmaxlength: uint32(d.Get("defaultfieldformatmaxlength").(int)), - Defaultfieldformatminlength: uint32(d.Get("defaultfieldformatminlength").(int)), + Defaultfieldformatmaxlength: d.Get("defaultfieldformatmaxlength").(int), + Defaultfieldformatminlength: d.Get("defaultfieldformatminlength").(int), Defaultfieldformattype: d.Get("defaultfieldformattype").(string), Defaults: d.Get("defaults").(string), Dosecurecreditcardlogging: d.Get("dosecurecreditcardlogging").(string), @@ -515,7 +515,7 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Errorurl: d.Get("errorurl").(string), Excludefileuploadfromchecks: d.Get("excludefileuploadfromchecks").(string), Exemptclosureurlsfromsecuritychecks: d.Get("exemptclosureurlsfromsecuritychecks").(string), - Fileuploadmaxnum: uint32(d.Get("fileuploadmaxnum").(int)), + Fileuploadmaxnum: d.Get("fileuploadmaxnum").(int), Htmlerrorobject: d.Get("htmlerrorobject").(string), Invalidpercenthandling: d.Get("invalidpercenthandling").(string), Jsonerrorobject: d.Get("jsonerrorobject").(string), @@ -523,8 +523,8 @@ func createAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { Logeverypolicyhit: d.Get("logeverypolicyhit").(string), Optimizepartialreqs: d.Get("optimizepartialreqs").(string), Percentdecoderecursively: d.Get("percentdecoderecursively").(string), - Postbodylimit: uint64(d.Get("postbodylimit").(int)), - Postbodylimitsignature: uint32(d.Get("postbodylimitsignature").(int)), + Postbodylimit: d.Get("postbodylimit").(int), + Postbodylimitsignature: d.Get("postbodylimitsignature").(int), Refererheadercheck: d.Get("refererheadercheck").(string), Requestcontenttype: d.Get("requestcontenttype").(string), Responsecontenttype: d.Get("responsecontenttype").(string), @@ -729,17 +729,17 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("bufferoverflowmaxcookielength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxcookielength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxcookielength = uint32(d.Get("bufferoverflowmaxcookielength").(int)) + appfwprofile.Bufferoverflowmaxcookielength = d.Get("bufferoverflowmaxcookielength").(int) hasChange = true } if d.HasChange("bufferoverflowmaxheaderlength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxheaderlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxheaderlength = uint32(d.Get("bufferoverflowmaxheaderlength").(int)) + appfwprofile.Bufferoverflowmaxheaderlength = d.Get("bufferoverflowmaxheaderlength").(int) hasChange = true } if d.HasChange("bufferoverflowmaxurllength") { log.Printf("[DEBUG] citrixadc-provider: Bufferoverflowmaxurllength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Bufferoverflowmaxurllength = uint32(d.Get("bufferoverflowmaxurllength").(int)) + appfwprofile.Bufferoverflowmaxurllength = d.Get("bufferoverflowmaxurllength").(int) hasChange = true } if d.HasChange("canonicalizehtmlresponse") { @@ -774,7 +774,7 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("creditcardmaxallowed") { log.Printf("[DEBUG] citrixadc-provider: Creditcardmaxallowed has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Creditcardmaxallowed = uint32(d.Get("creditcardmaxallowed").(int)) + appfwprofile.Creditcardmaxallowed = d.Get("creditcardmaxallowed").(int) hasChange = true } if d.HasChange("creditcardxout") { @@ -804,12 +804,12 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("defaultfieldformatmaxlength") { log.Printf("[DEBUG] citrixadc-provider: Defaultfieldformatmaxlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Defaultfieldformatmaxlength = uint32(d.Get("defaultfieldformatmaxlength").(int)) + appfwprofile.Defaultfieldformatmaxlength = d.Get("defaultfieldformatmaxlength").(int) hasChange = true } if d.HasChange("defaultfieldformatminlength") { log.Printf("[DEBUG] citrixadc-provider: Defaultfieldformatminlength has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Defaultfieldformatminlength = uint32(d.Get("defaultfieldformatminlength").(int)) + appfwprofile.Defaultfieldformatminlength = d.Get("defaultfieldformatminlength").(int) hasChange = true } if d.HasChange("defaultfieldformattype") { @@ -849,7 +849,7 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("fileuploadmaxnum") { log.Printf("[DEBUG] citrixadc-provider: Fileuploadmaxnum has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Fileuploadmaxnum = uint32(d.Get("fileuploadmaxnum").(int)) + appfwprofile.Fileuploadmaxnum = d.Get("fileuploadmaxnum").(int) hasChange = true } if d.HasChange("htmlerrorobject") { @@ -894,12 +894,12 @@ func updateAppfwprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("postbodylimit") { log.Printf("[DEBUG] citrixadc-provider: Postbodylimit has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Postbodylimit = uint64(d.Get("postbodylimit").(int)) + appfwprofile.Postbodylimit = d.Get("postbodylimit").(int) hasChange = true } if d.HasChange("postbodylimitsignature") { log.Printf("[DEBUG] citrixadc-provider: Postbodylimitsignature has changed for appfwprofile %s, starting update", appfwprofileName) - appfwprofile.Postbodylimitsignature = uint32(d.Get("postbodylimitsignature").(int)) + appfwprofile.Postbodylimitsignature = d.Get("postbodylimitsignature").(int) hasChange = true } if d.HasChange("refererheadercheck") { diff --git a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go index 677c8aa75..8ed1ebfff 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_cookieconsistency_binding_test.go @@ -66,6 +66,9 @@ const testAccAppfwprofile_cookieconsistency_binding_basic = ` ` func TestAccAppfwprofile_cookieconsistency_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go index 2fe336227..fa2ff7217 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_crosssitescripting_binding_test.go @@ -72,6 +72,9 @@ resource citrixadc_appfwprofile_crosssitescripting_binding demo_binding { ` func TestAccAppfwprofile_crosssitescripting_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go index 41f84b345..8dac8b0c0 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_denyurl_binding_test.go @@ -70,6 +70,9 @@ const testAccAppfwprofile_denyurl_binding_basic = ` ` func TestAccAppfwprofile_denyurl_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go index 871403d4c..5638c5b97 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_sqlinjection_binding_test.go @@ -70,6 +70,9 @@ const testAccAppfwprofile_sqlinjection_binding_basic = ` ` func TestAccAppfwprofile_sqlinjection_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go index 0aeac1d8c..7b27e779f 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_starturl_binding_test.go @@ -70,6 +70,9 @@ const testAccAppfwprofile_starturl_binding_basic = ` ` func TestAccAppfwprofile_starturl_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwprofile_test.go b/citrixadc/resource_citrixadc_appfwprofile_test.go index 036a0e0fb..92cf92fb9 100644 --- a/citrixadc/resource_citrixadc_appfwprofile_test.go +++ b/citrixadc/resource_citrixadc_appfwprofile_test.go @@ -96,6 +96,9 @@ const testAccAppfwprofile_update = ` ` func TestAccAppfwprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go b/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go index e6f64edb1..84efaf3bc 100644 --- a/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go +++ b/citrixadc/resource_citrixadc_appfwxmlcontenttype_test.go @@ -32,6 +32,9 @@ const testAccAppfwxmlcontenttype_basic = ` ` func TestAccAppfwxmlcontenttype_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_auditmessageaction_test.go b/citrixadc/resource_citrixadc_auditmessageaction_test.go index 3bcfb6b64..5a0d78b9a 100644 --- a/citrixadc/resource_citrixadc_auditmessageaction_test.go +++ b/citrixadc/resource_citrixadc_auditmessageaction_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccAuditmessageaction_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_auditsyslogaction.go b/citrixadc/resource_citrixadc_auditsyslogaction.go index 098eafd2b..aead217e3 100644 --- a/citrixadc/resource_citrixadc_auditsyslogaction.go +++ b/citrixadc/resource_citrixadc_auditsyslogaction.go @@ -172,17 +172,17 @@ func createAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error Dateformat: d.Get("dateformat").(string), Dns: d.Get("dns").(string), Domainresolvenow: d.Get("domainresolvenow").(bool), - Domainresolveretry: int32(d.Get("domainresolveretry").(int)), + Domainresolveretry: d.Get("domainresolveretry").(int), Lbvservername: d.Get("lbvservername").(string), Logfacility: d.Get("logfacility").(string), Loglevel: toStringList(loglevelValue(d)), Lsn: d.Get("lsn").(string), - Maxlogdatasizetohold: uint32(d.Get("maxlogdatasizetohold").(int)), + Maxlogdatasizetohold: d.Get("maxlogdatasizetohold").(int), Name: d.Get("name").(string), Netprofile: d.Get("netprofile").(string), Serverdomainname: d.Get("serverdomainname").(string), Serverip: d.Get("serverip").(string), - Serverport: int32(d.Get("serverport").(int)), + Serverport: d.Get("serverport").(int), Sslinterception: d.Get("sslinterception").(string), Subscriberlog: d.Get("subscriberlog").(string), Tcp: d.Get("tcp").(string), @@ -297,7 +297,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("domainresolveretry") { log.Printf("[DEBUG] citrixadc-provider: Domainresolveretry has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Domainresolveretry = int32(d.Get("domainresolveretry").(int)) + auditsyslogaction.Domainresolveretry = d.Get("domainresolveretry").(int) hasChange = true } if d.HasChange("lbvservername") { @@ -322,7 +322,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("maxlogdatasizetohold") { log.Printf("[DEBUG] citrixadc-provider: Maxlogdatasizetohold has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Maxlogdatasizetohold = uint32(d.Get("maxlogdatasizetohold").(int)) + auditsyslogaction.Maxlogdatasizetohold = d.Get("maxlogdatasizetohold").(int) hasChange = true } if d.HasChange("name") { @@ -347,7 +347,7 @@ func updateAuditsyslogactionFunc(d *schema.ResourceData, meta interface{}) error } if d.HasChange("serverport") { log.Printf("[DEBUG] citrixadc-provider: Serverport has changed for auditsyslogaction %s, starting update", auditsyslogactionName) - auditsyslogaction.Serverport = int32(d.Get("serverport").(int)) + auditsyslogaction.Serverport = d.Get("serverport").(int) hasChange = true } if d.HasChange("sslinterception") { diff --git a/citrixadc/resource_citrixadc_auditsyslogaction_test.go b/citrixadc/resource_citrixadc_auditsyslogaction_test.go index cc9631873..8a9e926b1 100644 --- a/citrixadc/resource_citrixadc_auditsyslogaction_test.go +++ b/citrixadc/resource_citrixadc_auditsyslogaction_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccAuditsyslogaction_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go b/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go index 1b0a15333..aff321e5b 100644 --- a/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go +++ b/citrixadc/resource_citrixadc_auditsyslogpolicy_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccAuditsyslogpolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("global binding causes issues with ADC version 12.0") } diff --git a/citrixadc/resource_citrixadc_cluster.go b/citrixadc/resource_citrixadc_cluster.go index 47d1d89c5..7fdc16506 100644 --- a/citrixadc/resource_citrixadc_cluster.go +++ b/citrixadc/resource_citrixadc_cluster.go @@ -344,7 +344,7 @@ func updateClusterFunc(d *schema.ResourceData, meta interface{}) error { clid := strconv.Itoa(d.Get("clid").(int)) clusterinstance := cluster.Clusterinstance{ - Clid: uint32(d.Get("clid").(int)), + Clid: d.Get("clid").(int), } hasChange := false clusterNodegroupChanged := false @@ -355,17 +355,17 @@ func updateClusterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clid") { log.Printf("[DEBUG] citrixadc-provider: Clid has changed for clusterinstance %s, starting update", clid) - clusterinstance.Clid = uint32(d.Get("clid").(int)) + clusterinstance.Clid = d.Get("clid").(int) hasChange = true } if d.HasChange("deadinterval") { log.Printf("[DEBUG] citrixadc-provider: Deadinterval has changed for clusterinstance %s, starting update", clid) - clusterinstance.Deadinterval = uint64(d.Get("deadinterval").(int)) + clusterinstance.Deadinterval = d.Get("deadinterval").(int) hasChange = true } if d.HasChange("hellointerval") { log.Printf("[DEBUG] citrixadc-provider: Hellointerval has changed for clusterinstance %s, starting update", clid) - clusterinstance.Hellointerval = uint32(d.Get("hellointerval").(int)) + clusterinstance.Hellointerval = d.Get("hellointerval").(int) hasChange = true } if d.HasChange("inc") { @@ -722,9 +722,9 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusterinstance := cluster.Clusterinstance{ Backplanebasedview: d.Get("backplanebasedview").(string), - Clid: uint32(d.Get("clid").(int)), - Deadinterval: uint64(d.Get("deadinterval").(int)), - Hellointerval: uint32(d.Get("hellointerval").(int)), + Clid: d.Get("clid").(int), + Deadinterval: d.Get("deadinterval").(int), + Hellointerval: d.Get("hellointerval").(int), Inc: d.Get("inc").(string), Nodegroup: d.Get("nodegroup").(string), Preemption: d.Get("preemption").(string), @@ -747,7 +747,7 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: uint32(nodegroupData["priority"].(int)), + Priority: nodegroupData["priority"].(int), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -764,11 +764,11 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { clusternode := cluster.Clusternode{ Backplane: firstNode["backplane"].(string), Clearnodegroupconfig: firstNode["clearnodegroupconfig"].(string), - Delay: uint32(firstNode["delay"].(int)), + Delay: firstNode["delay"].(int), Ipaddress: firstNode["ipaddress"].(string), Nodegroup: firstNode["nodegroup"].(string), - Nodeid: uint32(firstNode["nodeid"].(int)), - Priority: uint32(firstNode["priority"].(int)), + Nodeid: firstNode["nodeid"].(int), + Priority: firstNode["priority"].(int), State: firstNode["state"].(string), Tunnelmode: firstNode["tunnelmode"].(string), } @@ -794,7 +794,7 @@ func createFirstClusterNode(d *schema.ResourceData, meta interface{}) error { // Enable cluster instance on first node clusterinstanceEnabler := cluster.Clusterinstance{ - Clid: uint32(d.Get("clid").(int)), + Clid: d.Get("clid").(int), } err = nodeClient.ActOnResource("clusterinstance", &clusterinstanceEnabler, "enable") if err != nil { @@ -1038,7 +1038,7 @@ func updateSingleClusterNodegroup(d *schema.ResourceData, meta interface{}, node clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: uint32(nodegroupData["priority"].(int)), + Priority: nodegroupData["priority"].(int), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -1071,7 +1071,7 @@ func addSingleClusterNodegroup(d *schema.ResourceData, meta interface{}, nodegro clusternodegroup := cluster.Clusternodegroup{ Name: nodegroupData["name"].(string), - Priority: uint32(nodegroupData["priority"].(int)), + Priority: nodegroupData["priority"].(int), State: nodegroupData["state"].(string), Sticky: nodegroupData["sticky"].(string), Strict: nodegroupData["strict"].(string), @@ -1337,11 +1337,11 @@ func addSingleClusterNode(d *schema.ResourceData, meta interface{}, nodeData map clusternode := cluster.Clusternode{ Backplane: nodeData["backplane"].(string), Clearnodegroupconfig: nodeData["clearnodegroupconfig"].(string), - Delay: uint32(nodeData["delay"].(int)), + Delay: nodeData["delay"].(int), Ipaddress: nodeData["ipaddress"].(string), Nodegroup: nodeData["nodegroup"].(string), - Nodeid: uint32(nodeData["nodeid"].(int)), - Priority: uint32(nodeData["priority"].(int)), + Nodeid: nodeData["nodeid"].(int), + Priority: nodeData["priority"].(int), State: nodeData["state"].(string), Tunnelmode: nodeData["tunnelmode"].(string), } @@ -1482,9 +1482,9 @@ func updateSingleClusterNode(d *schema.ResourceData, meta interface{}, nodeData // Only include attributes that can be present in HTTP PUT operation clusternode := cluster.Clusternode{ Backplane: nodeData["backplane"].(string), - Delay: uint32(nodeData["delay"].(int)), - Nodeid: uint32(nodeData["nodeid"].(int)), - Priority: uint32(nodeData["priority"].(int)), + Delay: nodeData["delay"].(int), + Nodeid: nodeData["nodeid"].(int), + Priority: nodeData["priority"].(int), State: nodeData["state"].(string), Tunnelmode: nodeData["tunnelmode"].(string), } diff --git a/citrixadc/resource_citrixadc_cluster_test.go b/citrixadc/resource_citrixadc_cluster_test.go index d40032c1d..e7c341a5a 100644 --- a/citrixadc/resource_citrixadc_cluster_test.go +++ b/citrixadc/resource_citrixadc_cluster_test.go @@ -25,8 +25,8 @@ import ( ) func TestAccCluster_basic(t *testing.T) { - if isCpxRun { - t.Skip("clustering not supported in CPX") + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/citrixadc/resource_citrixadc_clusterfiles_syncer_test.go b/citrixadc/resource_citrixadc_clusterfiles_syncer_test.go index 939842868..dee3990e1 100644 --- a/citrixadc/resource_citrixadc_clusterfiles_syncer_test.go +++ b/citrixadc/resource_citrixadc_clusterfiles_syncer_test.go @@ -17,14 +17,15 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccClusterfilessyncer_basic(t *testing.T) { - if isCpxRun { - t.Skip("clustering not supported in CPX") + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/citrixadc/resource_citrixadc_cmppolicy_test.go b/citrixadc/resource_citrixadc_cmppolicy_test.go index dccd145e0..294c136fd 100644 --- a/citrixadc/resource_citrixadc_cmppolicy_test.go +++ b/citrixadc/resource_citrixadc_cmppolicy_test.go @@ -45,6 +45,9 @@ resource "citrixadc_cmppolicy" "tf_cmppolicy" { ` func TestAccCmppolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csaction_test.go b/citrixadc/resource_citrixadc_csaction_test.go index ec2c2fe31..3c59a37cf 100644 --- a/citrixadc/resource_citrixadc_csaction_test.go +++ b/citrixadc/resource_citrixadc_csaction_test.go @@ -90,6 +90,9 @@ resource "citrixadc_lbvserver" "tf_image_lb" { ` func TestAccCsaction_create_update(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -116,6 +119,9 @@ func TestAccCsaction_create_update(t *testing.T) { } func TestAccCsaction_create_update_name(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_cspolicy_test.go b/citrixadc/resource_citrixadc_cspolicy_test.go index af01a5cd7..0df191962 100644 --- a/citrixadc/resource_citrixadc_cspolicy_test.go +++ b/citrixadc/resource_citrixadc_cspolicy_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccCspolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver.go b/citrixadc/resource_citrixadc_csvserver.go index 00ebaf787..664da20d5 100644 --- a/citrixadc/resource_citrixadc_csvserver.go +++ b/citrixadc/resource_citrixadc_csvserver.go @@ -464,10 +464,10 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Backupvserver: d.Get("backupvserver").(string), Cacheable: d.Get("cacheable").(string), Casesensitive: d.Get("casesensitive").(string), - Clttimeout: uint64(d.Get("clttimeout").(int)), + Clttimeout: d.Get("clttimeout").(int), Comment: d.Get("comment").(string), Cookiedomain: d.Get("cookiedomain").(string), - Cookietimeout: uint32(d.Get("cookietimeout").(int)), + Cookietimeout: d.Get("cookietimeout").(int), Dbprofilename: d.Get("dbprofilename").(string), Disableprimaryondown: d.Get("disableprimaryondown").(string), Dnsprofilename: d.Get("dnsprofilename").(string), @@ -483,39 +483,39 @@ func createCsvserverFunc(d *schema.ResourceData, meta interface{}) error { Ipv46: d.Get("ipv46").(string), L2conn: d.Get("l2conn").(string), Listenpolicy: d.Get("listenpolicy").(string), - Listenpriority: uint32(d.Get("listenpriority").(int)), + Listenpriority: d.Get("listenpriority").(int), Mssqlserverversion: d.Get("mssqlserverversion").(string), - Mysqlcharacterset: uint32(d.Get("mysqlcharacterset").(int)), - Mysqlprotocolversion: uint32(d.Get("mysqlprotocolversion").(int)), - Mysqlservercapabilities: uint32(d.Get("mysqlservercapabilities").(int)), + Mysqlcharacterset: d.Get("mysqlcharacterset").(int), + Mysqlprotocolversion: d.Get("mysqlprotocolversion").(int), + Mysqlservercapabilities: d.Get("mysqlservercapabilities").(int), Mysqlserverversion: d.Get("mysqlserverversion").(string), Netprofile: d.Get("netprofile").(string), Oracleserverversion: d.Get("oracleserverversion").(string), - Persistenceid: uint32(d.Get("persistenceid").(int)), - Port: int32(d.Get("port").(int)), + Persistenceid: d.Get("persistenceid").(int), + Port: d.Get("port").(int), Precedence: d.Get("precedence").(string), Push: d.Get("push").(string), Pushlabel: d.Get("pushlabel").(string), Pushmulticlients: d.Get("pushmulticlients").(string), Pushvserver: d.Get("pushvserver").(string), - Range: uint32(d.Get("range").(int)), + Range: d.Get("range").(int), Redirectportrewrite: d.Get("redirectportrewrite").(string), Redirecturl: d.Get("redirecturl").(string), Rhistate: d.Get("rhistate").(string), Rtspnat: d.Get("rtspnat").(string), Servicetype: d.Get("servicetype").(string), - Sitedomainttl: uint64(d.Get("sitedomainttl").(int)), + Sitedomainttl: d.Get("sitedomainttl").(int), Sobackupaction: d.Get("sobackupaction").(string), Somethod: d.Get("somethod").(string), Sopersistence: d.Get("sopersistence").(string), - Sopersistencetimeout: uint32(d.Get("sopersistencetimeout").(int)), - Sothreshold: uint32(d.Get("sothreshold").(int)), + Sopersistencetimeout: d.Get("sopersistencetimeout").(int), + Sothreshold: d.Get("sothreshold").(int), State: d.Get("state").(string), Stateupdate: d.Get("stateupdate").(string), Targettype: d.Get("targettype").(string), Tcpprofilename: d.Get("tcpprofilename").(string), - Td: uint32(d.Get("td").(int)), - Ttl: uint64(d.Get("ttl").(int)), + Td: d.Get("td").(int), + Ttl: d.Get("ttl").(int), Vipheader: d.Get("vipheader").(string), } @@ -789,7 +789,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Clttimeout = uint64(d.Get("clttimeout").(int)) + csvserver.Clttimeout = d.Get("clttimeout").(int) hasChange = true } if d.HasChange("comment") { @@ -804,7 +804,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Cookietimeout = uint32(d.Get("cookietimeout").(int)) + csvserver.Cookietimeout = d.Get("cookietimeout").(int) hasChange = true } if d.HasChange("dbprofilename") { @@ -884,7 +884,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("listenpriority") { log.Printf("[DEBUG] netscaler-provider: Listenpriority has changed for csvserver %s, starting update", csvserverName) - csvserver.Listenpriority = uint32(d.Get("listenpriority").(int)) + csvserver.Listenpriority = d.Get("listenpriority").(int) hasChange = true } if d.HasChange("mssqlserverversion") { @@ -894,17 +894,17 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("mysqlcharacterset") { log.Printf("[DEBUG] netscaler-provider: Mysqlcharacterset has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlcharacterset = uint32(d.Get("mysqlcharacterset").(int)) + csvserver.Mysqlcharacterset = d.Get("mysqlcharacterset").(int) hasChange = true } if d.HasChange("mysqlprotocolversion") { log.Printf("[DEBUG] netscaler-provider: Mysqlprotocolversion has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlprotocolversion = uint32(d.Get("mysqlprotocolversion").(int)) + csvserver.Mysqlprotocolversion = d.Get("mysqlprotocolversion").(int) hasChange = true } if d.HasChange("mysqlservercapabilities") { log.Printf("[DEBUG] netscaler-provider: Mysqlservercapabilities has changed for csvserver %s, starting update", csvserverName) - csvserver.Mysqlservercapabilities = uint32(d.Get("mysqlservercapabilities").(int)) + csvserver.Mysqlservercapabilities = d.Get("mysqlservercapabilities").(int) hasChange = true } if d.HasChange("mysqlserverversion") { @@ -929,12 +929,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("persistenceid") { log.Printf("[DEBUG] netscaler-provider: Persistenceid has changed for csvserver %s, starting update", csvserverName) - csvserver.Persistenceid = uint32(d.Get("persistenceid").(int)) + csvserver.Persistenceid = d.Get("persistenceid").(int) hasChange = true } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for csvserver %s, starting update", csvserverName) - csvserver.Port = int32(d.Get("port").(int)) + csvserver.Port = d.Get("port").(int) hasChange = true } if d.HasChange("precedence") { @@ -964,7 +964,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("range") { log.Printf("[DEBUG] netscaler-provider: Range has changed for csvserver %s, starting update", csvserverName) - csvserver.Range = uint32(d.Get("range").(int)) + csvserver.Range = d.Get("range").(int) hasChange = true } if d.HasChange("redirectportrewrite") { @@ -994,7 +994,7 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sitedomainttl") { log.Printf("[DEBUG] netscaler-provider: Sitedomainttl has changed for csvserver %s, starting update", csvserverName) - csvserver.Sitedomainttl = uint64(d.Get("sitedomainttl").(int)) + csvserver.Sitedomainttl = d.Get("sitedomainttl").(int) hasChange = true } if d.HasChange("sobackupaction") { @@ -1014,12 +1014,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sopersistencetimeout") { log.Printf("[DEBUG] netscaler-provider: Sopersistencetimeout has changed for csvserver %s, starting update", csvserverName) - csvserver.Sopersistencetimeout = uint32(d.Get("sopersistencetimeout").(int)) + csvserver.Sopersistencetimeout = d.Get("sopersistencetimeout").(int) hasChange = true } if d.HasChange("sothreshold") { log.Printf("[DEBUG] netscaler-provider: Sothreshold has changed for csvserver %s, starting update", csvserverName) - csvserver.Sothreshold = uint32(d.Get("sothreshold").(int)) + csvserver.Sothreshold = d.Get("sothreshold").(int) hasChange = true } if d.HasChange("state") { @@ -1043,12 +1043,12 @@ func updateCsvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for csvserver %s, starting update", csvserverName) - csvserver.Td = uint32(d.Get("td").(int)) + csvserver.Td = d.Get("td").(int) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for csvserver %s, starting update", csvserverName) - csvserver.Ttl = uint64(d.Get("ttl").(int)) + csvserver.Ttl = d.Get("ttl").(int) hasChange = true } if d.HasChange("vipheader") { diff --git a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go index 6c6dd1265..890f330a2 100644 --- a/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_appfwpolicy_binding_test.go @@ -80,6 +80,9 @@ const testAccCsvserver_appfwpolicy_binding_basic = ` ` func TestAccCsvserver_appfwpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go index e35103d1e..cc2151160 100644 --- a/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_cmppolicy_binding_test.go @@ -75,6 +75,9 @@ resource "citrixadc_csvserver_cmppolicy_binding" "tf_bind" { ` func TestAccCsvserver_cmppolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go index d1bc1362b..2bb3472be 100644 --- a/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_cspolicy_binding_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccCsvserver_cspolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go index 2a5d64d51..2fce58f86 100644 --- a/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_filterpolicy_binding_test.go @@ -74,6 +74,9 @@ resource "citrixadc_csvserver_filterpolicy_binding" "tf_bind" { ` func TestAccCsvserver_filterpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go index ed57cc92c..03f2d6614 100644 --- a/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_responderpolicy_binding_test.go @@ -99,6 +99,9 @@ resource "citrixadc_csvserver_responderpolicy_binding" "tf_bind2" { ` func TestAccCsvserver_responderpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go index 6b740b738..46e5acf32 100644 --- a/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_rewritepolicy_binding_test.go @@ -99,6 +99,9 @@ resource "citrixadc_csvserver_rewritepolicy_binding" "tf_bind2" { ` func TestAccCsvserver_rewritepolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_test.go b/citrixadc/resource_citrixadc_csvserver_test.go index d3ea48368..d7736c811 100644 --- a/citrixadc/resource_citrixadc_csvserver_test.go +++ b/citrixadc/resource_citrixadc_csvserver_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccCsvserver_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -55,6 +58,9 @@ func TestAccCsvserver_standalone_ciphersuites_mixed(t *testing.T) { if isCluster { t.Skip("cluster ADC deployment") } + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -88,6 +94,9 @@ func TestAccCsvserver_standalone_ciphersuites_mixed(t *testing.T) { } func TestAccCsvserver_cluster_ciphersuites(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -125,6 +134,9 @@ func TestAccCsvserver_cluster_ciphers(t *testing.T) { if !isCluster { t.Skip("standalone ADC deployment") } + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -246,6 +258,10 @@ func TestAccCsvserver_AssertNonUpdateableAttributes(t *testing.T) { t.Skip("TF_ACC not set. Skipping acceptance test.") } + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } + c, err := testHelperInstantiateClient("", "", "", false) if err != nil { t.Fatalf("Failed to instantiate client. %v\n", err) @@ -322,6 +338,9 @@ resource "citrixadc_csvserver" "tf_test_acc_csvserver" { ` func TestAccCsvserver_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -401,6 +420,9 @@ const testAccCsvserver_binding_update = ` ` func TestAccCsvserver_lbvserverbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -419,6 +441,9 @@ func TestAccCsvserver_lbvserverbinding(t *testing.T) { } func TestAccCsvserver_snicerts(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doPreChecks(t) }, Providers: testAccProviders, @@ -491,6 +516,9 @@ func TestAccCsvserver_sslpolicy(t *testing.T) { if isCpxRun { t.Skip("TODO fix sslaction for CPX") } + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doPreChecks(t) }, Providers: testAccProviders, @@ -548,6 +576,7 @@ resource "citrixadc_csvserver" "tf_csvserver" { name = "tf_csvserver" port = 443 servicetype = "SSL" + sslprofile = "ns_default_ssl_profile_frontend" sslpolicybinding { policyname = citrixadc_sslpolicy.tf_sslpolicy.name @@ -587,6 +616,7 @@ resource "citrixadc_csvserver" "tf_csvserver" { name = "tf_csvserver" port = 443 servicetype = "SSL" + sslprofile = "ns_default_ssl_profile_frontend" sslpolicybinding { policyname = citrixadc_sslpolicy.tf_sslpolicy.name @@ -626,6 +656,7 @@ resource "citrixadc_csvserver" "tf_csvserver" { name = "tf_csvserver" port = 443 servicetype = "SSL" + sslprofile = "ns_default_ssl_profile_frontend" sslpolicybinding { policyname = citrixadc_sslpolicy.tf_sslpolicy2.name @@ -660,6 +691,7 @@ resource "citrixadc_csvserver" "tf_csvserver" { name = "tf_csvserver" port = 443 servicetype = "SSL" + sslprofile = "ns_default_ssl_profile_frontend" sslpolicybinding { policyname = citrixadc_sslpolicy.tf_sslpolicy.name @@ -679,6 +711,9 @@ func TestAccCsvserver_sslpolicy_cluster(t *testing.T) { if !isCluster { t.Skip("standalone ADC deployment") } + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doPreChecks(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go index 3505c5757..b36d6a23a 100644 --- a/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_csvserver_transformpolicy_binding_test.go @@ -83,6 +83,9 @@ resource "citrixadc_csvserver_transformpolicy_binding" "tf_binding" { ` func TestAccCsvserver_transformpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_dnsnsrec.go b/citrixadc/resource_citrixadc_dnsnsrec.go index 595078cc8..24417b263 100644 --- a/citrixadc/resource_citrixadc_dnsnsrec.go +++ b/citrixadc/resource_citrixadc_dnsnsrec.go @@ -52,7 +52,7 @@ func createDnsnsrecFunc(d *schema.ResourceData, meta interface{}) error { dnsnsrec := dns.Dnsnsrec{ Domain: d.Get("domain").(string), Nameserver: d.Get("nameserver").(string), - Ttl: uint64(d.Get("ttl").(int)), + Ttl: d.Get("ttl").(int), } _, err := client.AddResource(service.Dnsnsrec.Type(), "", &dnsnsrec) diff --git a/citrixadc/resource_citrixadc_dnsnsrec_test.go b/citrixadc/resource_citrixadc_dnsnsrec_test.go index 93fe4b8f9..2db09a0cd 100644 --- a/citrixadc/resource_citrixadc_dnsnsrec_test.go +++ b/citrixadc/resource_citrixadc_dnsnsrec_test.go @@ -57,6 +57,9 @@ resource "citrixadc_dnsnsrec" "tf_dnsnsrec2" { ` func TestAccDnsnsrec_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_dnssoarec.go b/citrixadc/resource_citrixadc_dnssoarec.go index 78c521848..f3b8f4a80 100644 --- a/citrixadc/resource_citrixadc_dnssoarec.go +++ b/citrixadc/resource_citrixadc_dnssoarec.go @@ -92,14 +92,14 @@ func createDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { Contact: d.Get("contact").(string), Domain: d.Get("domain").(string), Ecssubnet: d.Get("ecssubnet").(string), - Expire: uint64(d.Get("expire").(int)), - Minimum: uint64(d.Get("minimum").(int)), - Nodeid: uint32(d.Get("nodeid").(int)), + Expire: d.Get("expire").(int), + Minimum: d.Get("minimum").(int), + Nodeid: d.Get("nodeid").(int), Originserver: d.Get("originserver").(string), - Refresh: uint64(d.Get("refresh").(int)), - Retry: uint64(d.Get("retry").(int)), - Serial: uint32(d.Get("serial").(int)), - Ttl: uint64(d.Get("ttl").(int)), + Refresh: d.Get("refresh").(int), + Retry: d.Get("retry").(int), + Serial: d.Get("serial").(int), + Ttl: d.Get("ttl").(int), Type: d.Get("type").(string), } @@ -172,17 +172,17 @@ func updateDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("expire") { log.Printf("[DEBUG] citrixadc-provider: Expire has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Expire = uint64(d.Get("expire").(int)) + dnssoarec.Expire = d.Get("expire").(int) hasChange = true } if d.HasChange("minimum") { log.Printf("[DEBUG] citrixadc-provider: Minimum has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Minimum = uint64(d.Get("minimum").(int)) + dnssoarec.Minimum = d.Get("minimum").(int) hasChange = true } if d.HasChange("nodeid") { log.Printf("[DEBUG] citrixadc-provider: Nodeid has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Nodeid = uint32(d.Get("nodeid").(int)) + dnssoarec.Nodeid = d.Get("nodeid").(int) hasChange = true } if d.HasChange("originserver") { @@ -192,22 +192,22 @@ func updateDnssoarecFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("refresh") { log.Printf("[DEBUG] citrixadc-provider: Refresh has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Refresh = uint64(d.Get("refresh").(int)) + dnssoarec.Refresh = d.Get("refresh").(int) hasChange = true } if d.HasChange("retry") { log.Printf("[DEBUG] citrixadc-provider: Retry has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Retry = uint64(d.Get("retry").(int)) + dnssoarec.Retry = d.Get("retry").(int) hasChange = true } if d.HasChange("serial") { log.Printf("[DEBUG] citrixadc-provider: Serial has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Serial = uint32(d.Get("serial").(int)) + dnssoarec.Serial = d.Get("serial").(int) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] citrixadc-provider: Ttl has changed for dnssoarec %s, starting update", dnssoarecId) - dnssoarec.Ttl = uint64(d.Get("ttl").(int)) + dnssoarec.Ttl = d.Get("ttl").(int) hasChange = true } if d.HasChange("type") { diff --git a/citrixadc/resource_citrixadc_dnssoarec_test.go b/citrixadc/resource_citrixadc_dnssoarec_test.go index ef35e154c..3f9cdc1a6 100644 --- a/citrixadc/resource_citrixadc_dnssoarec_test.go +++ b/citrixadc/resource_citrixadc_dnssoarec_test.go @@ -45,6 +45,9 @@ resource "citrixadc_dnssoarec" "tf_dnssoarec" { ` func TestAccDnssoarec_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_filterpolicy_test.go b/citrixadc/resource_citrixadc_filterpolicy_test.go index e30ca9423..738c88744 100644 --- a/citrixadc/resource_citrixadc_filterpolicy_test.go +++ b/citrixadc/resource_citrixadc_filterpolicy_test.go @@ -45,6 +45,9 @@ resource "citrixadc_filterpolicy" "tf_filterpolicy" { ` func TestAccFilterpolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_gslbservice.go b/citrixadc/resource_citrixadc_gslbservice.go index ec1a0e966..e3b6c7414 100644 --- a/citrixadc/resource_citrixadc_gslbservice.go +++ b/citrixadc/resource_citrixadc_gslbservice.go @@ -264,28 +264,28 @@ func createGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { Appflowlog: d.Get("appflowlog").(string), Cip: d.Get("cip").(string), Cipheader: d.Get("cipheader").(string), - Clttimeout: uint64(d.Get("clttimeout").(int)), + Clttimeout: d.Get("clttimeout").(int), Cnameentry: d.Get("cnameentry").(string), Comment: d.Get("comment").(string), - Cookietimeout: uint32(d.Get("cookietimeout").(int)), + Cookietimeout: d.Get("cookietimeout").(int), Downstateflush: d.Get("downstateflush").(string), - Hashid: uint32(d.Get("hashid").(int)), + Hashid: d.Get("hashid").(int), Healthmonitor: d.Get("healthmonitor").(string), Ip: d.Get("ip").(string), Ipaddress: d.Get("ipaddress").(string), - Maxaaausers: uint32(d.Get("maxaaausers").(int)), - Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), - Maxclient: uint32(d.Get("maxclient").(int)), + Maxaaausers: d.Get("maxaaausers").(int), + Maxbandwidth: d.Get("maxbandwidth").(int), + Maxclient: d.Get("maxclient").(int), Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: uint32(d.Get("monthreshold").(int)), - Naptrdomainttl: uint64(d.Get("naptrdomainttl").(int)), - Naptrorder: uint32(d.Get("naptrorder").(int)), - Naptrpreference: uint32(d.Get("naptrpreference").(int)), + Monthreshold: d.Get("monthreshold").(int), + Naptrdomainttl: d.Get("naptrdomainttl").(int), + Naptrorder: d.Get("naptrorder").(int), + Naptrpreference: d.Get("naptrpreference").(int), Naptrreplacement: d.Get("naptrreplacement").(string), Naptrservices: d.Get("naptrservices").(string), - Port: int32(d.Get("port").(int)), + Port: d.Get("port").(int), Publicip: d.Get("publicip").(string), - Publicport: int32(d.Get("publicport").(int)), + Publicport: d.Get("publicport").(int), Servername: d.Get("servername").(string), Servicename: d.Get("servicename").(string), Servicetype: d.Get("servicetype").(string), @@ -293,10 +293,10 @@ func createGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { Sitepersistence: d.Get("sitepersistence").(string), Siteprefix: d.Get("siteprefix").(string), State: d.Get("state").(string), - Svrtimeout: uint64(d.Get("svrtimeout").(int)), + Svrtimeout: d.Get("svrtimeout").(int), Viewip: d.Get("viewip").(string), Viewname: d.Get("viewname").(string), - Weight: uint32(d.Get("weight").(int)), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Gslbservice.Type(), gslbserviceName, &gslbservice) @@ -402,7 +402,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Clttimeout = uint64(d.Get("clttimeout").(int)) + gslbservice.Clttimeout = d.Get("clttimeout").(int) hasChange = true } if d.HasChange("cnameentry") { @@ -417,7 +417,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Cookietimeout = uint32(d.Get("cookietimeout").(int)) + gslbservice.Cookietimeout = d.Get("cookietimeout").(int) hasChange = true } if d.HasChange("downstateflush") { @@ -427,7 +427,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Hashid = uint32(d.Get("hashid").(int)) + gslbservice.Hashid = d.Get("hashid").(int) hasChange = true } if d.HasChange("healthmonitor") { @@ -447,17 +447,17 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxaaausers") { log.Printf("[DEBUG] netscaler-provider: Maxaaausers has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxaaausers = uint32(d.Get("maxaaausers").(int)) + gslbservice.Maxaaausers = d.Get("maxaaausers").(int) hasChange = true } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) + gslbservice.Maxbandwidth = d.Get("maxbandwidth").(int) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Maxclient = uint32(d.Get("maxclient").(int)) + gslbservice.Maxclient = d.Get("maxclient").(int) hasChange = true } if d.HasChange("monitornamesvc") { @@ -467,22 +467,22 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Monthreshold = uint32(d.Get("monthreshold").(int)) + gslbservice.Monthreshold = d.Get("monthreshold").(int) hasChange = true } if d.HasChange("naptrdomainttl") { log.Printf("[DEBUG] netscaler-provider: Naptrdomainttl has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrdomainttl = uint64(d.Get("naptrdomainttl").(int)) + gslbservice.Naptrdomainttl = d.Get("naptrdomainttl").(int) hasChange = true } if d.HasChange("naptrorder") { log.Printf("[DEBUG] netscaler-provider: Naptrorder has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrorder = uint32(d.Get("naptrorder").(int)) + gslbservice.Naptrorder = d.Get("naptrorder").(int) hasChange = true } if d.HasChange("naptrpreference") { log.Printf("[DEBUG] netscaler-provider: Naptrpreference has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Naptrpreference = uint32(d.Get("naptrpreference").(int)) + gslbservice.Naptrpreference = d.Get("naptrpreference").(int) hasChange = true } if d.HasChange("naptrreplacement") { @@ -497,7 +497,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Port = int32(d.Get("port").(int)) + gslbservice.Port = d.Get("port").(int) hasChange = true } if d.HasChange("publicip") { @@ -507,7 +507,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("publicport") { log.Printf("[DEBUG] netscaler-provider: Publicport has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Publicport = int32(d.Get("publicport").(int)) + gslbservice.Publicport = d.Get("publicport").(int) hasChange = true } if d.HasChange("servername") { @@ -546,7 +546,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Svrtimeout = uint64(d.Get("svrtimeout").(int)) + gslbservice.Svrtimeout = d.Get("svrtimeout").(int) hasChange = true } if d.HasChange("viewip") { @@ -561,7 +561,7 @@ func updateGslbserviceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for gslbservice %s, starting update", gslbserviceName) - gslbservice.Weight = uint32(d.Get("weight").(int)) + gslbservice.Weight = d.Get("weight").(int) hasChange = true } @@ -626,7 +626,7 @@ func doGslbServiceStateChange(d *schema.ResourceData, client *service.NitroClien } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - gslbService.Delay = uint64(d.Get("delay").(int)) + gslbService.Delay = d.Get("delay").(int) err := client.ActOnResource(service.Service.Type(), gslbService, "disable") if err != nil { return err diff --git a/citrixadc/resource_citrixadc_gslbservice_test.go b/citrixadc/resource_citrixadc_gslbservice_test.go index cea1ef792..ebf73a1a7 100644 --- a/citrixadc/resource_citrixadc_gslbservice_test.go +++ b/citrixadc/resource_citrixadc_gslbservice_test.go @@ -29,6 +29,9 @@ import ( ) func TestAccGslbservice_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -136,6 +139,10 @@ func TestAccGslbservice_AssertNonUpdateableAttributes(t *testing.T) { t.Skip("TF_ACC not set. Skipping acceptance test.") } + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } + c, err := testHelperInstantiateClient("", "", "", false) if err != nil { t.Fatalf("Failed to instantiate client. %v\n", err) @@ -214,9 +221,9 @@ func TestAccGslbservice_AssertNonUpdateableAttributes(t *testing.T) { serviceInstance.Ip = "" //servername - serviceInstance.Servername = "other_server" - testHelperVerifyImmutabilityFunc(c, t, serviceType, serviceName, serviceInstance, "servername") - serviceInstance.Servername = "" + //serviceInstance.Servername = "other_server" + //testHelperVerifyImmutabilityFunc(c, t, serviceType, serviceName, serviceInstance, "servername") + //serviceInstance.Servername = "" //servicetype serviceInstance.Servicetype = "TCP" @@ -288,6 +295,9 @@ resource "citrixadc_gslbservice" "tf_test_acc_gslbservice" { ` func TestAccGslbservice_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -322,6 +332,9 @@ func TestAccGslbservice_enable_disable(t *testing.T) { } func TestAccGslbservice_lbmonitorbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_gslbsite_test.go b/citrixadc/resource_citrixadc_gslbsite_test.go index eea0ebc20..a449f7654 100644 --- a/citrixadc/resource_citrixadc_gslbsite_test.go +++ b/citrixadc/resource_citrixadc_gslbsite_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccGslbsite_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -115,6 +118,9 @@ resource "citrixadc_gslbsite" "foo" { ` func TestAccGslbsite_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") diff --git a/citrixadc/resource_citrixadc_gslbvserver.go b/citrixadc/resource_citrixadc_gslbvserver.go index 8b86778d8..a248fb2d8 100644 --- a/citrixadc/resource_citrixadc_gslbvserver.go +++ b/citrixadc/resource_citrixadc_gslbvserver.go @@ -315,12 +315,12 @@ func createGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { Appflowlog: d.Get("appflowlog").(string), Backupip: d.Get("backupip").(string), Backuplbmethod: d.Get("backuplbmethod").(string), - Backupsessiontimeout: uint32(d.Get("backupsessiontimeout").(int)), + Backupsessiontimeout: d.Get("backupsessiontimeout").(int), Backupvserver: d.Get("backupvserver").(string), Comment: d.Get("comment").(string), Considereffectivestate: d.Get("considereffectivestate").(string), Cookiedomain: d.Get("cookiedomain").(string), - Cookietimeout: uint32(d.Get("cookietimeout").(int)), + Cookietimeout: d.Get("cookietimeout").(int), Disableprimaryondown: d.Get("disableprimaryondown").(string), Dnsrecordtype: d.Get("dnsrecordtype").(string), Domainname: d.Get("domainname").(string), @@ -333,24 +333,24 @@ func createGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { Mir: d.Get("mir").(string), Name: d.Get("name").(string), Netmask: d.Get("netmask").(string), - Persistenceid: uint32(d.Get("persistenceid").(int)), + Persistenceid: d.Get("persistenceid").(int), Persistencetype: d.Get("persistencetype").(string), Persistmask: d.Get("persistmask").(string), Servicename: d.Get("servicename").(string), Servicetype: d.Get("servicetype").(string), - Sitedomainttl: uint64(d.Get("sitedomainttl").(int)), + Sitedomainttl: d.Get("sitedomainttl").(int), Sobackupaction: d.Get("sobackupaction").(string), Somethod: d.Get("somethod").(string), Sopersistence: d.Get("sopersistence").(string), - Sopersistencetimeout: uint32(d.Get("sopersistencetimeout").(int)), - Sothreshold: uint32(d.Get("sothreshold").(int)), + Sopersistencetimeout: d.Get("sopersistencetimeout").(int), + Sothreshold: d.Get("sothreshold").(int), State: d.Get("state").(string), - Timeout: uint32(d.Get("timeout").(int)), - Tolerance: uint32(d.Get("tolerance").(int)), - Ttl: uint64(d.Get("ttl").(int)), - V6netmasklen: uint32(d.Get("v6netmasklen").(int)), - V6persistmasklen: uint32(d.Get("v6persistmasklen").(int)), - Weight: uint32(d.Get("weight").(int)), + Timeout: d.Get("timeout").(int), + Tolerance: d.Get("tolerance").(int), + Ttl: d.Get("ttl").(int), + V6netmasklen: d.Get("v6netmasklen").(int), + V6persistmasklen: d.Get("v6persistmasklen").(int), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Gslbvserver.Type(), gslbvserverName, &gslbvserver) @@ -481,7 +481,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("backupsessiontimeout") { log.Printf("[DEBUG] netscaler-provider: Backupsessiontimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Backupsessiontimeout = uint32(d.Get("backupsessiontimeout").(int)) + gslbvserver.Backupsessiontimeout = d.Get("backupsessiontimeout").(int) hasChange = true } if d.HasChange("backupvserver") { @@ -506,7 +506,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cookietimeout") { log.Printf("[DEBUG] netscaler-provider: Cookietimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Cookietimeout = uint32(d.Get("cookietimeout").(int)) + gslbvserver.Cookietimeout = d.Get("cookietimeout").(int) hasChange = true } if d.HasChange("disableprimaryondown") { @@ -571,7 +571,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("persistenceid") { log.Printf("[DEBUG] netscaler-provider: Persistenceid has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Persistenceid = uint32(d.Get("persistenceid").(int)) + gslbvserver.Persistenceid = d.Get("persistenceid").(int) hasChange = true } if d.HasChange("persistencetype") { @@ -596,7 +596,7 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sitedomainttl") { log.Printf("[DEBUG] netscaler-provider: Sitedomainttl has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sitedomainttl = uint64(d.Get("sitedomainttl").(int)) + gslbvserver.Sitedomainttl = d.Get("sitedomainttl").(int) hasChange = true } if d.HasChange("sobackupaction") { @@ -616,12 +616,12 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sopersistencetimeout") { log.Printf("[DEBUG] netscaler-provider: Sopersistencetimeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sopersistencetimeout = uint32(d.Get("sopersistencetimeout").(int)) + gslbvserver.Sopersistencetimeout = d.Get("sopersistencetimeout").(int) hasChange = true } if d.HasChange("sothreshold") { log.Printf("[DEBUG] netscaler-provider: Sothreshold has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Sothreshold = uint32(d.Get("sothreshold").(int)) + gslbvserver.Sothreshold = d.Get("sothreshold").(int) hasChange = true } if d.HasChange("state") { @@ -630,32 +630,32 @@ func updateGslbvserverFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] netscaler-provider: Timeout has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Timeout = uint32(d.Get("timeout").(int)) + gslbvserver.Timeout = d.Get("timeout").(int) hasChange = true } if d.HasChange("tolerance") { log.Printf("[DEBUG] netscaler-provider: Tolerance has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Tolerance = uint32(d.Get("tolerance").(int)) + gslbvserver.Tolerance = d.Get("tolerance").(int) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Ttl = uint64(d.Get("ttl").(int)) + gslbvserver.Ttl = d.Get("ttl").(int) hasChange = true } if d.HasChange("v6netmasklen") { log.Printf("[DEBUG] netscaler-provider: V6netmasklen has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.V6netmasklen = uint32(d.Get("v6netmasklen").(int)) + gslbvserver.V6netmasklen = d.Get("v6netmasklen").(int) hasChange = true } if d.HasChange("v6persistmasklen") { log.Printf("[DEBUG] netscaler-provider: V6persistmasklen has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.V6persistmasklen = uint32(d.Get("v6persistmasklen").(int)) + gslbvserver.V6persistmasklen = d.Get("v6persistmasklen").(int) hasChange = true } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for gslbvserver %s, starting update", gslbvserverName) - gslbvserver.Weight = uint32(d.Get("weight").(int)) + gslbvserver.Weight = d.Get("weight").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_gslbvserver_test.go b/citrixadc/resource_citrixadc_gslbvserver_test.go index eb770e408..045be1991 100644 --- a/citrixadc/resource_citrixadc_gslbvserver_test.go +++ b/citrixadc/resource_citrixadc_gslbvserver_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccGslbvserver_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -125,6 +128,9 @@ resource "citrixadc_gslbvserver" "foo" { ` func TestAccGslbvserver_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") @@ -178,6 +184,9 @@ resource "citrixadc_gslbvserver" "tf_test_acc_gslbvsever" { ` func TestAccGslbvserver_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_inat.go b/citrixadc/resource_citrixadc_inat.go index 5d3296eeb..0c9bd1401 100644 --- a/citrixadc/resource_citrixadc_inat.go +++ b/citrixadc/resource_citrixadc_inat.go @@ -106,7 +106,7 @@ func createInatFunc(d *schema.ResourceData, meta interface{}) error { Proxyip: d.Get("proxyip").(string), Publicip: d.Get("publicip").(string), Tcpproxy: d.Get("tcpproxy").(string), - Td: uint32(d.Get("td").(int)), + Td: d.Get("td").(int), Tftp: d.Get("tftp").(string), Useproxyport: d.Get("useproxyport").(string), Usip: d.Get("usip").(string), @@ -199,7 +199,7 @@ func updateInatFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for inat %s, starting update", inatName) - inat.Td = uint32(d.Get("td").(int)) + inat.Td = d.Get("td").(int) hasChange = true } if d.HasChange("tftp") { diff --git a/citrixadc/resource_citrixadc_inat_test.go b/citrixadc/resource_citrixadc_inat_test.go index e23480528..896f612eb 100644 --- a/citrixadc/resource_citrixadc_inat_test.go +++ b/citrixadc/resource_citrixadc_inat_test.go @@ -28,6 +28,9 @@ import ( ) func TestAccInat_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_installer_test.go b/citrixadc/resource_citrixadc_installer_test.go index 3dca73c4c..d7972acf7 100644 --- a/citrixadc/resource_citrixadc_installer_test.go +++ b/citrixadc/resource_citrixadc_installer_test.go @@ -17,9 +17,10 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccInstaller_basic(t *testing.T) { @@ -29,6 +30,9 @@ func TestAccInstaller_basic(t *testing.T) { if isCluster { t.Skip("Install not available in Cluster") } + if adcTestbed != "INSTALLER" { + t.Skipf("ADC testbed is %s. Expected INSTALLER.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_interface.go b/citrixadc/resource_citrixadc_interface.go index 86815d98f..4b7d798c8 100644 --- a/citrixadc/resource_citrixadc_interface.go +++ b/citrixadc/resource_citrixadc_interface.go @@ -156,28 +156,28 @@ func createInterfaceFunc(d *schema.ResourceData, meta interface{}) error { Interface := network.Interface{ Autoneg: d.Get("autoneg").(string), - Bandwidthhigh: uint32(d.Get("bandwidthhigh").(int)), - Bandwidthnormal: uint32(d.Get("bandwidthnormal").(int)), + Bandwidthhigh: d.Get("bandwidthhigh").(int), + Bandwidthnormal: d.Get("bandwidthnormal").(int), Duplex: d.Get("duplex").(string), Flowctl: d.Get("flowctl").(string), Haheartbeat: d.Get("haheartbeat").(string), Hamonitor: d.Get("hamonitor").(string), Id: d.Get("interface_id").(string), Ifalias: d.Get("ifalias").(string), - Lacpkey: uint32(d.Get("lacpkey").(int)), + Lacpkey: d.Get("lacpkey").(int), Lacpmode: d.Get("lacpmode").(string), - Lacppriority: uint32(d.Get("lacppriority").(int)), + Lacppriority: d.Get("lacppriority").(int), Lacptimeout: d.Get("lacptimeout").(string), Lagtype: d.Get("lagtype").(string), Linkredundancy: d.Get("linkredundancy").(string), Lldpmode: d.Get("lldpmode").(string), - Lrsetpriority: uint32(d.Get("lrsetpriority").(int)), - Mtu: uint32(d.Get("mtu").(int)), - Ringsize: uint32(d.Get("ringsize").(int)), + Lrsetpriority: d.Get("lrsetpriority").(int), + Mtu: d.Get("mtu").(int), + Ringsize: d.Get("ringsize").(int), Ringtype: d.Get("ringtype").(string), Speed: d.Get("speed").(string), Tagall: d.Get("tagall").(string), - Throughput: uint32(d.Get("throughput").(int)), + Throughput: d.Get("throughput").(int), Trunk: d.Get("trunk").(string), Trunkmode: d.Get("trunkmode").(string), } @@ -270,12 +270,12 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("bandwidthhigh") { log.Printf("[DEBUG] citrixadc-provider: Bandwidthhigh has changed for Interface %s, starting update", interfaceId) - Interface.Bandwidthhigh = uint32(d.Get("bandwidthhigh").(int)) + Interface.Bandwidthhigh = d.Get("bandwidthhigh").(int) hasChange = true } if d.HasChange("bandwidthnormal") { log.Printf("[DEBUG] citrixadc-provider: Bandwidthnormal has changed for Interface %s, starting update", interfaceId) - Interface.Bandwidthnormal = uint32(d.Get("bandwidthnormal").(int)) + Interface.Bandwidthnormal = d.Get("bandwidthnormal").(int) hasChange = true } if d.HasChange("duplex") { @@ -310,7 +310,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lacpkey") { log.Printf("[DEBUG] citrixadc-provider: Lacpkey has changed for Interface %s, starting update", interfaceId) - Interface.Lacpkey = uint32(d.Get("lacpkey").(int)) + Interface.Lacpkey = d.Get("lacpkey").(int) hasChange = true } if d.HasChange("lacpmode") { @@ -320,7 +320,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lacppriority") { log.Printf("[DEBUG] citrixadc-provider: Lacppriority has changed for Interface %s, starting update", interfaceId) - Interface.Lacppriority = uint32(d.Get("lacppriority").(int)) + Interface.Lacppriority = d.Get("lacppriority").(int) hasChange = true } if d.HasChange("lacptimeout") { @@ -345,17 +345,17 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("lrsetpriority") { log.Printf("[DEBUG] citrixadc-provider: Lrsetpriority has changed for Interface %s, starting update", interfaceId) - Interface.Lrsetpriority = uint32(d.Get("lrsetpriority").(int)) + Interface.Lrsetpriority = d.Get("lrsetpriority").(int) hasChange = true } if d.HasChange("mtu") { log.Printf("[DEBUG] citrixadc-provider: Mtu has changed for Interface %s, starting update", interfaceId) - Interface.Mtu = uint32(d.Get("mtu").(int)) + Interface.Mtu = d.Get("mtu").(int) hasChange = true } if d.HasChange("ringsize") { log.Printf("[DEBUG] citrixadc-provider: Ringsize has changed for Interface %s, starting update", interfaceId) - Interface.Ringsize = uint32(d.Get("ringsize").(int)) + Interface.Ringsize = d.Get("ringsize").(int) hasChange = true } if d.HasChange("ringtype") { @@ -375,7 +375,7 @@ func updateInterfaceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("throughput") { log.Printf("[DEBUG] citrixadc-provider: Throughput has changed for Interface %s, starting update", interfaceId) - Interface.Throughput = uint32(d.Get("throughput").(int)) + Interface.Throughput = d.Get("throughput").(int) hasChange = true } if d.HasChange("trunk") { diff --git a/citrixadc/resource_citrixadc_interface_test.go b/citrixadc/resource_citrixadc_interface_test.go index ee494cd8c..0e626cb3c 100644 --- a/citrixadc/resource_citrixadc_interface_test.go +++ b/citrixadc/resource_citrixadc_interface_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccInterface_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("skipping test CPX has different interface numbering") } diff --git a/citrixadc/resource_citrixadc_ipset.go b/citrixadc/resource_citrixadc_ipset.go index cf7899438..6670aa771 100644 --- a/citrixadc/resource_citrixadc_ipset.go +++ b/citrixadc/resource_citrixadc_ipset.go @@ -54,7 +54,7 @@ func createIpsetFunc(d *schema.ResourceData, meta interface{}) error { ipset := network.Ipset{ Name: d.Get("name").(string), - Td: uint32(d.Get("td").(int)), + Td: d.Get("td").(int), } _, err := client.AddResource(service.Ipset.Type(), ipsetName, &ipset) diff --git a/citrixadc/resource_citrixadc_ipset_test.go b/citrixadc/resource_citrixadc_ipset_test.go index 48b28d8e4..df5e26b47 100644 --- a/citrixadc/resource_citrixadc_ipset_test.go +++ b/citrixadc/resource_citrixadc_ipset_test.go @@ -74,6 +74,9 @@ const testAccIpset_name_changed = ` ` func TestAccIpset_no_bindings(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -96,6 +99,9 @@ func TestAccIpset_no_bindings(t *testing.T) { } func TestAccIpset_with_bindings(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -234,6 +240,9 @@ resource "citrixadc_nsip" "nsip2" { ` func TestAccIpset_ipv4_swaps(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } @@ -271,7 +280,7 @@ resource "citrixadc_csvserver" "test_csvserver" { resource "citrixadc_ipset" "tf_ipset" { name = "tf_test_ipset" nsip6binding = [ - format("%s/0", split("/", citrixadc_nsip6.tf_nsip1.ipv6address)[0]), + citrixadc_nsip6.tf_nsip1.ipv6address ] } @@ -302,7 +311,7 @@ resource "citrixadc_csvserver" "test_csvserver" { resource "citrixadc_ipset" "tf_ipset" { name = "tf_test_ipset" nsip6binding = [ - format("%s/0", split("/", citrixadc_nsip6.tf_nsip2.ipv6address)[0]), + citrixadc_nsip6.tf_nsip2.ipv6address ] } @@ -321,6 +330,9 @@ resource "citrixadc_nsip6" "tf_nsip2" { ` func TestAccIpset_ipv6_swaps(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } diff --git a/citrixadc/resource_citrixadc_iptunnel.go b/citrixadc/resource_citrixadc_iptunnel.go index 46eb7939b..e1f8053f7 100644 --- a/citrixadc/resource_citrixadc_iptunnel.go +++ b/citrixadc/resource_citrixadc_iptunnel.go @@ -90,7 +90,7 @@ func createIptunnelFunc(d *schema.ResourceData, meta interface{}) error { Protocol: d.Get("protocol").(string), Remote: d.Get("remote").(string), Remotesubnetmask: d.Get("remotesubnetmask").(string), - Vlan: uint32(d.Get("vlan").(int)), + Vlan: d.Get("vlan").(int), } _, err := client.AddResource(service.Iptunnel.Type(), iptunnelName, &iptunnel) diff --git a/citrixadc/resource_citrixadc_iptunnel_test.go b/citrixadc/resource_citrixadc_iptunnel_test.go index 1577e55a7..d2d5a49d9 100644 --- a/citrixadc/resource_citrixadc_iptunnel_test.go +++ b/citrixadc/resource_citrixadc_iptunnel_test.go @@ -43,6 +43,9 @@ resource "citrixadc_iptunnel" "tf_iptunnel" { ` func TestAccIptunnel_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbmonitor.go b/citrixadc/resource_citrixadc_lbmonitor.go index c79649cf6..46c3226a8 100644 --- a/citrixadc/resource_citrixadc_lbmonitor.go +++ b/citrixadc/resource_citrixadc_lbmonitor.go @@ -536,7 +536,7 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } lbmonitor := lb.Lbmonitor{ Action: d.Get("action").(string), - Alertretries: int32(d.Get("alertretries").(int)), + Alertretries: d.Get("alertretries").(int), Application: d.Get("application").(string), Attribute: d.Get("attribute").(string), Basedn: d.Get("basedn").(string), @@ -544,33 +544,33 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Customheaders: d.Get("customheaders").(string), Database: d.Get("database").(string), Destip: d.Get("destip").(string), - Destport: int32(d.Get("destport").(int)), - Deviation: uint32(d.Get("deviation").(int)), + Destport: d.Get("destport").(int), + Deviation: d.Get("deviation").(int), Dispatcherip: d.Get("dispatcherip").(string), - Dispatcherport: int32(d.Get("dispatcherport").(int)), + Dispatcherport: d.Get("dispatcherport").(int), Domain: d.Get("domain").(string), - Downtime: int32(d.Get("downtime").(int)), + Downtime: d.Get("downtime").(int), Evalrule: d.Get("evalrule").(string), - Failureretries: int32(d.Get("failureretries").(int)), + Failureretries: d.Get("failureretries").(int), Filename: d.Get("filename").(string), Filter: d.Get("filter").(string), - Firmwarerevision: uint32(d.Get("firmwarerevision").(int)), + Firmwarerevision: d.Get("firmwarerevision").(int), Group: d.Get("group").(string), Hostipaddress: d.Get("hostipaddress").(string), Hostname: d.Get("hostname").(string), Httprequest: d.Get("httprequest").(string), Inbandsecurityid: d.Get("inbandsecurityid").(string), - Interval: int32(d.Get("interval").(int)), + Interval: d.Get("interval").(int), Iptunnel: d.Get("iptunnel").(string), Kcdaccount: d.Get("kcdaccount").(string), Lasversion: d.Get("lasversion").(string), Logonpointname: d.Get("logonpointname").(string), Lrtm: d.Get("lrtm").(string), - Maxforwards: uint32(d.Get("maxforwards").(int)), + Maxforwards: d.Get("maxforwards").(int), Metric: d.Get("metric").(string), Metrictable: d.Get("metrictable").(string), - Metricthreshold: uint64(d.Get("metricthreshold").(int)), - Metricweight: uint32(d.Get("metricweight").(int)), + Metricthreshold: d.Get("metricthreshold").(int), + Metricweight: d.Get("metricweight").(int), Monitorname: d.Get("monitorname").(string), Mssqlprotocolversion: d.Get("mssqlprotocolversion").(string), Netprofile: d.Get("netprofile").(string), @@ -582,7 +582,7 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Query: d.Get("query").(string), Querytype: d.Get("querytype").(string), Radaccountsession: d.Get("radaccountsession").(string), - Radaccounttype: uint32(d.Get("radaccounttype").(int)), + Radaccounttype: d.Get("radaccounttype").(int), Radapn: d.Get("radapn").(string), Radframedip: d.Get("radframedip").(string), Radkey: d.Get("radkey").(string), @@ -590,9 +590,9 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Radnasid: d.Get("radnasid").(string), Radnasip: d.Get("radnasip").(string), Recv: d.Get("recv").(string), - Resptimeout: int32(d.Get("resptimeout").(int)), - Resptimeoutthresh: uint32(d.Get("resptimeoutthresh").(int)), - Retries: int32(d.Get("retries").(int)), + Resptimeout: d.Get("resptimeout").(int), + Resptimeoutthresh: d.Get("resptimeoutthresh").(int), + Retries: d.Get("retries").(int), Reverse: d.Get("reverse").(string), Rtsprequest: d.Get("rtsprequest").(string), Scriptargs: d.Get("scriptargs").(string), @@ -617,11 +617,11 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Storefrontacctservice: d.Get("storefrontacctservice").(string), Storefrontcheckbackendservices: d.Get("storefrontcheckbackendservices").(string), Storename: d.Get("storename").(string), - Successretries: int32(d.Get("successretries").(int)), + Successretries: d.Get("successretries").(int), Tos: d.Get("tos").(string), - Tosid: uint32(d.Get("tosid").(int)), + Tosid: d.Get("tosid").(int), Transparent: d.Get("transparent").(string), - Trofscode: uint32(d.Get("trofscode").(int)), + Trofscode: d.Get("trofscode").(int), Trofsstring: d.Get("trofsstring").(string), Type: d.Get("type").(string), Units1: d.Get("units1").(string), @@ -630,8 +630,8 @@ func createLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { Units4: d.Get("units4").(string), Username: d.Get("username").(string), Validatecred: d.Get("validatecred").(string), - Vendorid: uint32(d.Get("vendorid").(int)), - Vendorspecificvendorid: uint32(d.Get("vendorspecificvendorid").(int)), + Vendorid: d.Get("vendorid").(int), + Vendorspecificvendorid: d.Get("vendorspecificvendorid").(int), Respcode: toStringList(d.Get("respcode").([]interface{})), } @@ -786,7 +786,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("alertretries") { log.Printf("[DEBUG] netscaler-provider: Alertretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Alertretries = int32(d.Get("alertretries").(int)) + lbmonitor.Alertretries = d.Get("alertretries").(int) hasChange = true } if d.HasChange("application") { @@ -826,12 +826,12 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("destport") { log.Printf("[DEBUG] netscaler-provider: Destport has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Destport = int32(d.Get("destport").(int)) + lbmonitor.Destport = d.Get("destport").(int) hasChange = true } if d.HasChange("deviation") { log.Printf("[DEBUG] netscaler-provider: Deviation has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Deviation = uint32(d.Get("deviation").(int)) + lbmonitor.Deviation = d.Get("deviation").(int) hasChange = true } if d.HasChange("dispatcherip") { @@ -841,7 +841,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dispatcherport") { log.Printf("[DEBUG] netscaler-provider: Dispatcherport has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Dispatcherport = int32(d.Get("dispatcherport").(int)) + lbmonitor.Dispatcherport = d.Get("dispatcherport").(int) hasChange = true } if d.HasChange("domain") { @@ -851,7 +851,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("downtime") { log.Printf("[DEBUG] netscaler-provider: Downtime has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Downtime = int32(d.Get("downtime").(int)) + lbmonitor.Downtime = d.Get("downtime").(int) hasChange = true } if d.HasChange("evalrule") { @@ -861,7 +861,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("failureretries") { log.Printf("[DEBUG] netscaler-provider: Failureretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Failureretries = int32(d.Get("failureretries").(int)) + lbmonitor.Failureretries = d.Get("failureretries").(int) hasChange = true } if d.HasChange("filename") { @@ -876,7 +876,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("firmwarerevision") { log.Printf("[DEBUG] netscaler-provider: Firmwarerevision has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Firmwarerevision = uint32(d.Get("firmwarerevision").(int)) + lbmonitor.Firmwarerevision = d.Get("firmwarerevision").(int) hasChange = true } if d.HasChange("group") { @@ -906,7 +906,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("interval") { log.Printf("[DEBUG] netscaler-provider: Interval has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Interval = int32(d.Get("interval").(int)) + lbmonitor.Interval = d.Get("interval").(int) hasChange = true } if d.HasChange("iptunnel") { @@ -936,7 +936,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxforwards") { log.Printf("[DEBUG] netscaler-provider: Maxforwards has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Maxforwards = uint32(d.Get("maxforwards").(int)) + lbmonitor.Maxforwards = d.Get("maxforwards").(int) hasChange = true } if d.HasChange("metric") { @@ -951,12 +951,12 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("metricthreshold") { log.Printf("[DEBUG] netscaler-provider: Metricthreshold has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Metricthreshold = uint64(d.Get("metricthreshold").(int)) + lbmonitor.Metricthreshold = d.Get("metricthreshold").(int) hasChange = true } if d.HasChange("metricweight") { log.Printf("[DEBUG] netscaler-provider: Metricweight has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Metricweight = uint32(d.Get("metricweight").(int)) + lbmonitor.Metricweight = d.Get("metricweight").(int) hasChange = true } if d.HasChange("monitorname") { @@ -1016,7 +1016,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("radaccounttype") { log.Printf("[DEBUG] netscaler-provider: Radaccounttype has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Radaccounttype = uint32(d.Get("radaccounttype").(int)) + lbmonitor.Radaccounttype = d.Get("radaccounttype").(int) hasChange = true } if d.HasChange("radapn") { @@ -1056,17 +1056,17 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("resptimeout") { log.Printf("[DEBUG] netscaler-provider: Resptimeout has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Resptimeout = int32(d.Get("resptimeout").(int)) + lbmonitor.Resptimeout = d.Get("resptimeout").(int) hasChange = true } if d.HasChange("resptimeoutthresh") { log.Printf("[DEBUG] netscaler-provider: Resptimeoutthresh has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Resptimeoutthresh = uint32(d.Get("resptimeoutthresh").(int)) + lbmonitor.Resptimeoutthresh = d.Get("resptimeoutthresh").(int) hasChange = true } if d.HasChange("retries") { log.Printf("[DEBUG] netscaler-provider: Retries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Retries = int32(d.Get("retries").(int)) + lbmonitor.Retries = d.Get("retries").(int) hasChange = true } if d.HasChange("reverse") { @@ -1191,7 +1191,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("successretries") { log.Printf("[DEBUG] netscaler-provider: Successretries has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Successretries = int32(d.Get("successretries").(int)) + lbmonitor.Successretries = d.Get("successretries").(int) hasChange = true } if d.HasChange("tos") { @@ -1201,7 +1201,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("tosid") { log.Printf("[DEBUG] netscaler-provider: Tosid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Tosid = uint32(d.Get("tosid").(int)) + lbmonitor.Tosid = d.Get("tosid").(int) hasChange = true } if d.HasChange("transparent") { @@ -1211,7 +1211,7 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("trofscode") { log.Printf("[DEBUG] netscaler-provider: Trofscode has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Trofscode = uint32(d.Get("trofscode").(int)) + lbmonitor.Trofscode = d.Get("trofscode").(int) hasChange = true } if d.HasChange("trofsstring") { @@ -1256,12 +1256,12 @@ func updateLbmonitorFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("vendorid") { log.Printf("[DEBUG] netscaler-provider: Vendorid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Vendorid = uint32(d.Get("vendorid").(int)) + lbmonitor.Vendorid = d.Get("vendorid").(int) hasChange = true } if d.HasChange("vendorspecificvendorid") { log.Printf("[DEBUG] netscaler-provider: Vendorspecificvendorid has changed for lbmonitor %s, starting update", lbmonitorName) - lbmonitor.Vendorspecificvendorid = uint32(d.Get("vendorspecificvendorid").(int)) + lbmonitor.Vendorspecificvendorid = d.Get("vendorspecificvendorid").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_lbmonitor_test.go b/citrixadc/resource_citrixadc_lbmonitor_test.go index 89f88814d..4635b3708 100644 --- a/citrixadc/resource_citrixadc_lbmonitor_test.go +++ b/citrixadc/resource_citrixadc_lbmonitor_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccLbmonitor_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -113,6 +116,9 @@ resource "citrixadc_lbmonitor" "foo" { ` func TestAccLbmonitor_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") diff --git a/citrixadc/resource_citrixadc_lbparameter_test.go b/citrixadc/resource_citrixadc_lbparameter_test.go index e78af7d73..4cfa11a34 100644 --- a/citrixadc/resource_citrixadc_lbparameter_test.go +++ b/citrixadc/resource_citrixadc_lbparameter_test.go @@ -74,6 +74,9 @@ const testAccLbparameter_basic_step2 = ` ` func TestAccLbparameter_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go index f6f0c5eff..3094a37c7 100644 --- a/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_appfwpolicy_binding_test.go @@ -86,6 +86,9 @@ const testAccLbvserver_appfwpolicy_binding_basic = ` ` func TestAccLbvserver_appfwpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go index 89c6549e4..7ec0bafd7 100644 --- a/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_cmppolicy_binding_test.go @@ -76,6 +76,9 @@ resource "citrixadc_lbvserver_cmppolicy_binding" "tf_bind" { ` func TestAccLbvserver_cmppolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go index bbd913058..ef5c57b70 100644 --- a/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_filterpolicy_binding_test.go @@ -72,6 +72,9 @@ resource "citrixadc_lbvserver_filterpolicy_binding" "tf_bind" { ` func TestAccLbvserver_filterpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go index d808e847f..371bca1c8 100644 --- a/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_responderpolicy_binding_test.go @@ -98,6 +98,9 @@ resource "citrixadc_lbvserver_responderpolicy_binding" "tf_bind2" { ` func TestAccLbvserver_responderpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go index 6b3edffb5..b11799b63 100644 --- a/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_rewritepolicy_binding_test.go @@ -98,6 +98,9 @@ resource "citrixadc_lbvserver_rewritepolicy_binding" "tf_bind2" { ` func TestAccLbvserver_rewritepolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_service_binding.go b/citrixadc/resource_citrixadc_lbvserver_service_binding.go index 85fa452b0..5af0f1c13 100644 --- a/citrixadc/resource_citrixadc_lbvserver_service_binding.go +++ b/citrixadc/resource_citrixadc_lbvserver_service_binding.go @@ -53,7 +53,7 @@ func createLbvserver_service_bindingFunc(d *schema.ResourceData, meta interface{ lbvserver_service_binding := lb.Lbvserverservicebinding{ Name: d.Get("name").(string), Servicename: d.Get("servicename").(string), - Weight: uint32(d.Get("weight").(int)), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Lbvserver_service_binding.Type(), name, &lbvserver_service_binding) diff --git a/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go index b30fd7465..11084952c 100644 --- a/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_service_binding_test.go @@ -70,6 +70,9 @@ resource "citrixadc_lbvserver_service_binding" "tf_binding" { ` func TestAccLbvserver_service_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go index d5a22c220..e874b9128 100644 --- a/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_servicegroup_binding_test.go @@ -73,6 +73,9 @@ resource "citrixadc_lbvserver_servicegroup_binding" "tf_binding4" { ` func TestAccLbvserver_servicegroup_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_test.go b/citrixadc/resource_citrixadc_lbvserver_test.go index 15f1e64e3..47d6d5af9 100644 --- a/citrixadc/resource_citrixadc_lbvserver_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_test.go @@ -30,6 +30,9 @@ import ( ) func TestAccLbvserver_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -69,6 +72,7 @@ const testAccLbvserver_quicbridgeprofile = ` ipv46 = "10.202.11.11" lbmethod = "TOKEN" persistencetype = "CUSTOMSERVERID" + rule = "QUIC.CONNECTIONID" port = 8080 servicetype = "QUIC_BRIDGE" quicbridgeprofilename = citrixadc_quicbridgeprofile.demo_quicbridge.name @@ -76,6 +80,9 @@ const testAccLbvserver_quicbridgeprofile = ` ` func TestAccLbvserver_quicbridgeprofile(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } @@ -97,6 +104,9 @@ func TestAccLbvserver_quicbridgeprofile(t *testing.T) { } func TestAccLbvserver_snicerts(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doPreChecks(t) }, Providers: testAccProviders, @@ -137,6 +147,9 @@ func TestAccLbvserver_snicerts(t *testing.T) { } func TestAccLbvserver_standalone_ciphersuites_mixed(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCluster { t.Skip("cluster ADC deployment") } @@ -174,6 +187,9 @@ func TestAccLbvserver_standalone_ciphersuites_mixed(t *testing.T) { } func TestAccLbvserver_cluster_ciphersuites(t *testing.T) { + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -211,6 +227,9 @@ func TestAccLbvserver_cluster_ciphers(t *testing.T) { if !isCluster { t.Skip("standalone ADC deployment") } + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -402,6 +421,9 @@ func testSslcertificateBindingsConfig(template string, sslcertkey string, snicer } func TestAccLbvserver_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") @@ -431,6 +453,9 @@ func TestAccLbvserver_AssertNonUpdateableAttributes(t *testing.T) { t.Fatal(err) } + // Remove servicetype since it is only valid on create + vserverInstance.Servicetype = "" + //port vserverInstance.Port = 80 testHelperVerifyImmutabilityFunc(c, t, vserverType, vserverName, vserverInstance, "port") @@ -439,7 +464,7 @@ func TestAccLbvserver_AssertNonUpdateableAttributes(t *testing.T) { //servicetype vserverInstance.Servicetype = "TCP" testHelperVerifyImmutabilityFunc(c, t, vserverType, vserverName, vserverInstance, "servicetype") - vserverInstance.Servicetype = "HTTP" + vserverInstance.Servicetype = "" //range vserverInstance.Range = 10 @@ -481,6 +506,9 @@ resource "citrixadc_lbvserver" "tf_acc_lb_vserver" { ` func TestAccLbvserver_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go index 326cadedb..8de5eda47 100644 --- a/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_lbvserver_transformpolicy_binding_test.go @@ -82,6 +82,9 @@ resource "citrixadc_lbvserver_transformpolicy_binding" "tf_binding" { ` func TestAccLbvserver_transformpolicy_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_linkset.go b/citrixadc/resource_citrixadc_linkset.go index e92946a32..730438fd0 100644 --- a/citrixadc/resource_citrixadc_linkset.go +++ b/citrixadc/resource_citrixadc_linkset.go @@ -70,7 +70,8 @@ func readLinksetFunc(d *schema.ResourceData, meta interface{}) error { linksetName := d.Id() log.Printf("[DEBUG] citrixadc-provider: Reading linkset state %s", linksetName) // double encode value part as it contains `/` - linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) + //linksetNameEscaped := url.QueryEscape(url.QueryEscape(linksetName)) + linksetNameEscaped := url.PathEscape(url.QueryEscape(linksetName)) data, err := client.FindResource(service.Linkset.Type(), linksetNameEscaped) err = readLinksetInterfaceBindings(d, meta) diff --git a/citrixadc/resource_citrixadc_linkset_test.go b/citrixadc/resource_citrixadc_linkset_test.go index 8d7e15b43..0fd5c03c4 100644 --- a/citrixadc/resource_citrixadc_linkset_test.go +++ b/citrixadc/resource_citrixadc_linkset_test.go @@ -41,6 +41,9 @@ const testAccLinkset_update_with_binding = ` ` func TestAccLinkset_basic(t *testing.T) { + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } if isCpxRun { t.Skip("clustering not supported in CPX") } diff --git a/citrixadc/resource_citrixadc_netprofile_test.go b/citrixadc/resource_citrixadc_netprofile_test.go index b617bad7a..560b88954 100644 --- a/citrixadc/resource_citrixadc_netprofile_test.go +++ b/citrixadc/resource_citrixadc_netprofile_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNetprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("CPX 12.0 is outdated for this resource") } diff --git a/citrixadc/resource_citrixadc_nsacl.go b/citrixadc/resource_citrixadc_nsacl.go index f66291df4..55e21453a 100644 --- a/citrixadc/resource_citrixadc_nsacl.go +++ b/citrixadc/resource_citrixadc_nsacl.go @@ -217,14 +217,14 @@ func createNsaclFunc(d *schema.ResourceData, meta interface{}) error { Destportval: d.Get("destportval").(string), Dfdhash: d.Get("dfdhash").(string), Established: d.Get("established").(bool), - Icmpcode: uint32(d.Get("icmpcode").(int)), - Icmptype: uint32(d.Get("icmptype").(int)), + Icmpcode: d.Get("icmpcode").(int), + Icmptype: d.Get("icmptype").(int), Interface: d.Get("interface").(string), Logstate: d.Get("logstate").(string), - Priority: uint32(d.Get("priority").(int)), + Priority: d.Get("priority").(int), Protocol: d.Get("protocol").(string), - Protocolnumber: uint32(d.Get("protocolnumber").(int)), - Ratelimit: uint32(d.Get("ratelimit").(int)), + Protocolnumber: d.Get("protocolnumber").(int), + Ratelimit: d.Get("ratelimit").(int), Srcip: srcip, Srcipop: d.Get("srcipop").(string), Srcipval: d.Get("srcipval").(string), @@ -235,10 +235,10 @@ func createNsaclFunc(d *schema.ResourceData, meta interface{}) error { Srcportval: d.Get("srcportval").(string), State: d.Get("state").(string), Stateful: d.Get("stateful").(string), - Td: uint32(d.Get("td").(int)), - Ttl: uint32(d.Get("ttl").(int)), - Vlan: uint32(d.Get("vlan").(int)), - Vxlan: uint32(d.Get("vxlan").(int)), + Td: d.Get("td").(int), + Ttl: d.Get("ttl").(int), + Vlan: d.Get("vlan").(int), + Vxlan: d.Get("vxlan").(int), } _, err := client.AddResource(service.Nsacl.Type(), nsaclName, &nsacl) @@ -361,12 +361,12 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("icmpcode") { log.Printf("[DEBUG] netscaler-provider: Icmpcode has changed for nsacl %s, starting update", nsaclName) - nsacl.Icmpcode = uint32(d.Get("icmpcode").(int)) + nsacl.Icmpcode = d.Get("icmpcode").(int) hasChange = true } if d.HasChange("icmptype") { log.Printf("[DEBUG] netscaler-provider: Icmptype has changed for nsacl %s, starting update", nsaclName) - nsacl.Icmptype = uint32(d.Get("icmptype").(int)) + nsacl.Icmptype = d.Get("icmptype").(int) hasChange = true } if d.HasChange("interface") { @@ -381,7 +381,7 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] netscaler-provider: Priority has changed for nsacl %s, starting update", nsaclName) - nsacl.Priority = uint32(d.Get("priority").(int)) + nsacl.Priority = d.Get("priority").(int) hasChange = true } if d.HasChange("protocol") { @@ -391,12 +391,12 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("protocolnumber") { log.Printf("[DEBUG] netscaler-provider: Protocolnumber has changed for nsacl %s, starting update", nsaclName) - nsacl.Protocolnumber = uint32(d.Get("protocolnumber").(int)) + nsacl.Protocolnumber = d.Get("protocolnumber").(int) hasChange = true } if d.HasChange("ratelimit") { log.Printf("[DEBUG] netscaler-provider: Ratelimit has changed for nsacl %s, starting update", nsaclName) - nsacl.Ratelimit = uint32(d.Get("ratelimit").(int)) + nsacl.Ratelimit = d.Get("ratelimit").(int) hasChange = true } if d.HasChange("srcipop") { @@ -444,22 +444,22 @@ func updateNsaclFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for nsacl %s, starting update", nsaclName) - nsacl.Td = uint32(d.Get("td").(int)) + nsacl.Td = d.Get("td").(int) hasChange = true } if d.HasChange("ttl") { log.Printf("[DEBUG] netscaler-provider: Ttl has changed for nsacl %s, starting update", nsaclName) - nsacl.Ttl = uint32(d.Get("ttl").(int)) + nsacl.Ttl = d.Get("ttl").(int) hasChange = true } if d.HasChange("vlan") { log.Printf("[DEBUG] netscaler-provider: Vlan has changed for nsacl %s, starting update", nsaclName) - nsacl.Vlan = uint32(d.Get("vlan").(int)) + nsacl.Vlan = d.Get("vlan").(int) hasChange = true } if d.HasChange("vxlan") { log.Printf("[DEBUG] netscaler-provider: Vxlan has changed for nsacl %s, starting update", nsaclName) - nsacl.Vxlan = uint32(d.Get("vxlan").(int)) + nsacl.Vxlan = d.Get("vxlan").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_nsacl_test.go b/citrixadc/resource_citrixadc_nsacl_test.go index 97156817f..78e73a559 100644 --- a/citrixadc/resource_citrixadc_nsacl_test.go +++ b/citrixadc/resource_citrixadc_nsacl_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNsacl_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -145,6 +148,9 @@ resource "citrixadc_nsacl" "tf_test_acc_nsacl" { ` func TestAccNsacl_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nsacls.go b/citrixadc/resource_citrixadc_nsacls.go index 5752a6f18..98755f3ba 100644 --- a/citrixadc/resource_citrixadc_nsacls.go +++ b/citrixadc/resource_citrixadc_nsacls.go @@ -352,14 +352,14 @@ func createSingleAcl(acl map[string]interface{}, meta interface{}) error { Destportop: acl["destportop"].(string), Destportval: acl["destportval"].(string), Established: acl["established"].(bool), - Icmpcode: uint32(acl["icmpcode"].(int)), - Icmptype: uint32(acl["icmptype"].(int)), + Icmpcode: acl["icmpcode"].(int), + Icmptype: acl["icmptype"].(int), Interface: acl["interface"].(string), Logstate: acl["logstate"].(string), - Priority: uint32(acl["priority"].(int)), + Priority: acl["priority"].(int), Protocol: acl["protocol"].(string), - Protocolnumber: uint32(acl["protocolnumber"].(int)), - Ratelimit: uint32(acl["ratelimit"].(int)), + Protocolnumber: acl["protocolnumber"].(int), + Ratelimit: acl["ratelimit"].(int), Srcip: srcip, Srcipop: acl["srcipop"].(string), Srcipval: acl["srcipval"].(string), @@ -368,9 +368,9 @@ func createSingleAcl(acl map[string]interface{}, meta interface{}) error { Srcportop: acl["srcportop"].(string), Srcportval: acl["srcportval"].(string), State: acl["state"].(string), - Td: uint32(acl["td"].(int)), - Ttl: uint32(acl["ttl"].(int)), - Vlan: uint32(acl["vlan"].(int)), + Td: acl["td"].(int), + Ttl: acl["ttl"].(int), + Vlan: acl["vlan"].(int), } _, err := client.AddResource(service.Nsacl.Type(), nsaclName, &nsacl) diff --git a/citrixadc/resource_citrixadc_nsacls_test.go b/citrixadc/resource_citrixadc_nsacls_test.go index 2f3987929..22417b7de 100644 --- a/citrixadc/resource_citrixadc_nsacls_test.go +++ b/citrixadc/resource_citrixadc_nsacls_test.go @@ -29,6 +29,9 @@ import ( ) func TestAccNsacls_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -122,6 +125,9 @@ func testAccCheckNsaclsExist(n string, id *string) resource.TestCheckFunc { } func TestAccNsacls_update(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nscapacity.go b/citrixadc/resource_citrixadc_nscapacity.go index 7b4d1f6cb..1bd9a8f2a 100644 --- a/citrixadc/resource_citrixadc_nscapacity.go +++ b/citrixadc/resource_citrixadc_nscapacity.go @@ -85,9 +85,9 @@ func createNscapacityFunc(d *schema.ResourceData, meta interface{}) error { nscapacityId := resource.PrefixedUniqueId("tf-nscapacity-") nscapacity := ns.Nscapacity{ - Bandwidth: uint32(d.Get("bandwidth").(int)), + Bandwidth: d.Get("bandwidth").(int), Edition: d.Get("edition").(string), - Nodeid: uint32(d.Get("nodeid").(int)), + Nodeid: d.Get("nodeid").(int), Platform: d.Get("platform").(string), Unit: d.Get("unit").(string), Vcpu: d.Get("vcpu").(bool), diff --git a/citrixadc/resource_citrixadc_nscapacity_test.go b/citrixadc/resource_citrixadc_nscapacity_test.go index 5f25fc260..1d401d597 100644 --- a/citrixadc/resource_citrixadc_nscapacity_test.go +++ b/citrixadc/resource_citrixadc_nscapacity_test.go @@ -17,12 +17,16 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNscapacity_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("Feature not supported in CPX") } diff --git a/citrixadc/resource_citrixadc_nsconfig_save_test.go b/citrixadc/resource_citrixadc_nsconfig_save_test.go index 6458d122b..9038c7d58 100644 --- a/citrixadc/resource_citrixadc_nsconfig_save_test.go +++ b/citrixadc/resource_citrixadc_nsconfig_save_test.go @@ -37,6 +37,9 @@ const testAccNsconfigSave_basic = ` ` func TestAccNsconfigSave_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -109,6 +112,9 @@ func TestAccNsconfigSave_save_race_no_retry(t *testing.T) { } func TestAccNsconfigSave_save_race_retry(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccSaveRaceSetup(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nsconfig_update.go b/citrixadc/resource_citrixadc_nsconfig_update.go index 4c3261c98..5f3f17fb7 100644 --- a/citrixadc/resource_citrixadc_nsconfig_update.go +++ b/citrixadc/resource_citrixadc_nsconfig_update.go @@ -55,7 +55,7 @@ func createNsconfigUpdateFunc(d *schema.ResourceData, meta interface{}) error { nsconfig := ns.Nsconfig{} nsconfig.Ipaddress = d.Get("ipaddress").(string) nsconfig.Netmask = d.Get("netmask").(string) - nsconfig.Nsvlan = uint32(d.Get("nsvlan").(int)) + nsconfig.Nsvlan = d.Get("nsvlan").(int) nsconfig.Ifnum = toStringList(getIfnumValue(d)) nsconfig.Tagged = d.Get("tagged").(string) @@ -134,7 +134,7 @@ func updateNsconfigUpdateFunc(d *schema.ResourceData, meta interface{}) error { nsconfig.Netmask = d.Get("netmask").(string) } if hasNsvlanChanged || hasIfnumChanged || hasTaggedChanged { - nsconfig.Nsvlan = uint32(d.Get("nsvlan").(int)) + nsconfig.Nsvlan = d.Get("nsvlan").(int) nsconfig.Ifnum = toStringList(getIfnumValue(d)) nsconfig.Tagged = d.Get("tagged").(string) } diff --git a/citrixadc/resource_citrixadc_nsfeature_test.go b/citrixadc/resource_citrixadc_nsfeature_test.go index 2bc794b68..12adbab10 100644 --- a/citrixadc/resource_citrixadc_nsfeature_test.go +++ b/citrixadc/resource_citrixadc_nsfeature_test.go @@ -17,13 +17,17 @@ package citrixadc import ( "fmt" - "github.com/hashicorp/terraform/helper/resource" - "github.com/hashicorp/terraform/terraform" "strings" "testing" + + "github.com/hashicorp/terraform/helper/resource" + "github.com/hashicorp/terraform/terraform" ) func TestAccNsfeature_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nshttpprofile.go b/citrixadc/resource_citrixadc_nshttpprofile.go index f03690e22..4af69edf1 100644 --- a/citrixadc/resource_citrixadc_nshttpprofile.go +++ b/citrixadc/resource_citrixadc_nshttpprofile.go @@ -209,7 +209,7 @@ func createNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { Name: nshttpprofileName, Adpttimeout: d.Get("adpttimeout").(string), Altsvc: d.Get("altsvc").(string), - Apdexcltresptimethreshold: uint32(d.Get("apdexcltresptimethreshold").(int)), + Apdexcltresptimethreshold: d.Get("apdexcltresptimethreshold").(int), Clientiphdrexpr: d.Get("clientiphdrexpr").(string), Cmponpush: d.Get("cmponpush").(string), Conmultiplex: d.Get("conmultiplex").(string), @@ -218,25 +218,25 @@ func createNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { Dropinvalreqs: d.Get("dropinvalreqs").(string), Http2: d.Get("http2").(string), Http2direct: d.Get("http2direct").(string), - Http2headertablesize: uint32(d.Get("http2headertablesize").(int)), - Http2initialwindowsize: uint32(d.Get("http2initialwindowsize").(int)), - Http2maxconcurrentstreams: uint32(d.Get("http2maxconcurrentstreams").(int)), - Http2maxframesize: uint32(d.Get("http2maxframesize").(int)), - Http2maxheaderlistsize: uint32(d.Get("http2maxheaderlistsize").(int)), - Http2minseverconn: uint32(d.Get("http2minseverconn").(int)), + Http2headertablesize: d.Get("http2headertablesize").(int), + Http2initialwindowsize: d.Get("http2initialwindowsize").(int), + Http2maxconcurrentstreams: d.Get("http2maxconcurrentstreams").(int), + Http2maxframesize: d.Get("http2maxframesize").(int), + Http2maxheaderlistsize: d.Get("http2maxheaderlistsize").(int), + Http2minseverconn: d.Get("http2minseverconn").(int), Http2strictcipher: d.Get("http2strictcipher").(string), - Incomphdrdelay: uint32(d.Get("incomphdrdelay").(int)), + Incomphdrdelay: d.Get("incomphdrdelay").(int), Markconnreqinval: d.Get("markconnreqinval").(string), Markhttp09inval: d.Get("markhttp09inval").(string), Marktracereqinval: d.Get("marktracereqinval").(string), - Maxheaderlen: uint32(d.Get("maxheaderlen").(int)), - Maxreq: uint32(d.Get("maxreq").(int)), - Maxreusepool: uint32(d.Get("maxreusepool").(int)), - Minreusepool: uint32(d.Get("minreusepool").(int)), + Maxheaderlen: d.Get("maxheaderlen").(int), + Maxreq: d.Get("maxreq").(int), + Maxreusepool: d.Get("maxreusepool").(int), + Minreusepool: d.Get("minreusepool").(int), Persistentetag: d.Get("persistentetag").(string), - Reqtimeout: uint32(d.Get("reqtimeout").(int)), + Reqtimeout: d.Get("reqtimeout").(int), Reqtimeoutaction: d.Get("reqtimeoutaction").(string), - Reusepooltimeout: uint32(d.Get("reusepooltimeout").(int)), + Reusepooltimeout: d.Get("reusepooltimeout").(int), Rtsptunnel: d.Get("rtsptunnel").(string), Spdy: d.Get("spdy").(string), Weblog: d.Get("weblog").(string), @@ -331,7 +331,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("apdexcltresptimethreshold") { log.Printf("[DEBUG] citrixadc-provider: Apdexcltresptimethreshold has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Apdexcltresptimethreshold = uint32(d.Get("apdexcltresptimethreshold").(int)) + nshttpprofile.Apdexcltresptimethreshold = d.Get("apdexcltresptimethreshold").(int) hasChange = true } if d.HasChange("clientiphdrexpr") { @@ -376,32 +376,32 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("http2headertablesize") { log.Printf("[DEBUG] citrixadc-provider: Http2headertablesize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2headertablesize = uint32(d.Get("http2headertablesize").(int)) + nshttpprofile.Http2headertablesize = d.Get("http2headertablesize").(int) hasChange = true } if d.HasChange("http2initialwindowsize") { log.Printf("[DEBUG] citrixadc-provider: Http2initialwindowsize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2initialwindowsize = uint32(d.Get("http2initialwindowsize").(int)) + nshttpprofile.Http2initialwindowsize = d.Get("http2initialwindowsize").(int) hasChange = true } if d.HasChange("http2maxconcurrentstreams") { log.Printf("[DEBUG] citrixadc-provider: Http2maxconcurrentstreams has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxconcurrentstreams = uint32(d.Get("http2maxconcurrentstreams").(int)) + nshttpprofile.Http2maxconcurrentstreams = d.Get("http2maxconcurrentstreams").(int) hasChange = true } if d.HasChange("http2maxframesize") { log.Printf("[DEBUG] citrixadc-provider: Http2maxframesize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxframesize = uint32(d.Get("http2maxframesize").(int)) + nshttpprofile.Http2maxframesize = d.Get("http2maxframesize").(int) hasChange = true } if d.HasChange("http2maxheaderlistsize") { log.Printf("[DEBUG] citrixadc-provider: Http2maxheaderlistsize has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2maxheaderlistsize = uint32(d.Get("http2maxheaderlistsize").(int)) + nshttpprofile.Http2maxheaderlistsize = d.Get("http2maxheaderlistsize").(int) hasChange = true } if d.HasChange("http2minseverconn") { log.Printf("[DEBUG] citrixadc-provider: Http2minseverconn has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Http2minseverconn = uint32(d.Get("http2minseverconn").(int)) + nshttpprofile.Http2minseverconn = d.Get("http2minseverconn").(int) hasChange = true } if d.HasChange("http2strictcipher") { @@ -411,7 +411,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("incomphdrdelay") { log.Printf("[DEBUG] citrixadc-provider: Incomphdrdelay has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Incomphdrdelay = uint32(d.Get("incomphdrdelay").(int)) + nshttpprofile.Incomphdrdelay = d.Get("incomphdrdelay").(int) hasChange = true } if d.HasChange("markconnreqinval") { @@ -431,22 +431,22 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxheaderlen") { log.Printf("[DEBUG] citrixadc-provider: Maxheaderlen has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxheaderlen = uint32(d.Get("maxheaderlen").(int)) + nshttpprofile.Maxheaderlen = d.Get("maxheaderlen").(int) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] citrixadc-provider: Maxreq has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxreq = uint32(d.Get("maxreq").(int)) + nshttpprofile.Maxreq = d.Get("maxreq").(int) hasChange = true } if d.HasChange("maxreusepool") { log.Printf("[DEBUG] citrixadc-provider: Maxreusepool has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Maxreusepool = uint32(d.Get("maxreusepool").(int)) + nshttpprofile.Maxreusepool = d.Get("maxreusepool").(int) hasChange = true } if d.HasChange("minreusepool") { log.Printf("[DEBUG] citrixadc-provider: Minreusepool has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Minreusepool = uint32(d.Get("minreusepool").(int)) + nshttpprofile.Minreusepool = d.Get("minreusepool").(int) hasChange = true } if d.HasChange("name") { @@ -461,7 +461,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("reqtimeout") { log.Printf("[DEBUG] citrixadc-provider: Reqtimeout has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Reqtimeout = uint32(d.Get("reqtimeout").(int)) + nshttpprofile.Reqtimeout = d.Get("reqtimeout").(int) hasChange = true } if d.HasChange("reqtimeoutaction") { @@ -471,7 +471,7 @@ func updateNshttpprofileFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("reusepooltimeout") { log.Printf("[DEBUG] citrixadc-provider: Reusepooltimeout has changed for nshttpprofile %s, starting update", nshttpprofileName) - nshttpprofile.Reusepooltimeout = uint32(d.Get("reusepooltimeout").(int)) + nshttpprofile.Reusepooltimeout = d.Get("reusepooltimeout").(int) hasChange = true } if d.HasChange("rtsptunnel") { diff --git a/citrixadc/resource_citrixadc_nshttpprofile_test.go b/citrixadc/resource_citrixadc_nshttpprofile_test.go index 1d0a298bf..273e52cf2 100644 --- a/citrixadc/resource_citrixadc_nshttpprofile_test.go +++ b/citrixadc/resource_citrixadc_nshttpprofile_test.go @@ -38,6 +38,9 @@ const testAccNshttpprofile_update = ` ` func TestAccNshttpprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nsip6_test.go b/citrixadc/resource_citrixadc_nsip6_test.go index a37ea5651..55514df30 100644 --- a/citrixadc/resource_citrixadc_nsip6_test.go +++ b/citrixadc/resource_citrixadc_nsip6_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccNsip6_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -63,6 +66,9 @@ const testAccNsip6_mptcpadvertise = ` ` func TestAccNsip6_mptcpadvertise(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } diff --git a/citrixadc/resource_citrixadc_nsip_test.go b/citrixadc/resource_citrixadc_nsip_test.go index 0319ac7dc..7a9a02215 100644 --- a/citrixadc/resource_citrixadc_nsip_test.go +++ b/citrixadc/resource_citrixadc_nsip_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNsip_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -69,6 +72,9 @@ const testAccNsip_mptcpadvertise = ` ` func TestAccNsip_mptcpadvertise(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } diff --git a/citrixadc/resource_citrixadc_nslicense_test.go b/citrixadc/resource_citrixadc_nslicense_test.go index 63aa95c06..5d164d0c4 100644 --- a/citrixadc/resource_citrixadc_nslicense_test.go +++ b/citrixadc/resource_citrixadc_nslicense_test.go @@ -17,12 +17,16 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccNslicense_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("ssh does not work correctly with CPX") } @@ -67,6 +71,6 @@ const testAccNslicense_basic = ` resource "citrixadc_nslicense" "tf_license" { license_file = "CNS_V10000_SERVER_PLT_Retail.lic" - ssh_host_pubkey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDaA2H70ONYk1JDPHmqKNoOYzLZeR8jNu252P63OsI+N1k4hHQUPeysV20vzeDqgtDOoOkb90By9ryRTjGDOzxers04B23+BM+gaTFp0ONNr8uCLNt5mtZXK6dp2JjYpysl3qmpDDZ4qYhoDikliL05+bO/3dEpK6kOo25DjwjHsJDK8HovAiLdHg7v6Y6PTbJseT/+pae+0P0/gBFY901cEeB/DJqzyH7Qd1lUuUroy9buROTVhkF5VdaaPQJK8YX2oH8ocoqQOHxrSfh3U0+OuboQSyle5MnFjO88yRJrRwpT1ooJGse3xWf/0Zd5/gbuZTzswqPen2x0JN3iIvpekKItcTEegy9JlVFPEtcLeO738uYJxJuSen2HECmtl9LFjtFkLRkC5/t7qZK3SCvkKaEF/ol2K53aOPd5P9K6mYtc9xJvgtX1gntuDMuxNZBoZCeX/+5dxL0SAro9bBY0ArwpnhAo7xYgdY7F7RsXvNBJuZZiZQvFJNqnFtteKbk=" + ssh_host_pubkey = "AAAAB3NzaC1kc3MAAACBAJ2yRBTkiCIR94oYfCmabSKPi7EjyYS7FxLPV0j8zAsWtarS16UTiPyW+tTpd5I9HNJPqIkGKTLWw9DakXd+lyRnXAusOGXIfiV+wdyLn8hg/T/dZMA7r6QssIfIUza0Bqcjn7eCGStwOHzSgUH5qS9YmIlZuZ/hKOU3Zs0N7wF5AAAAFQC6iGTFqcADv83/ItKiHh+6pEWe2wAAAIB3pcTDxth1IASlwNgzm1HQYaOm5ttcGve468w3c97BpzEXCbiwObd6T8Ynt2GFMH2NHOFFqid4nRXvT2Ba5JlLYgyrDTU53J6eDxkXtBSuxTcMss0P6EEtcqOJzi1e+OZWFPKtxaIsKBtScBw+S/dNFkY4H+Eo5vl5/ChahdOchAAAAIBd4sHyDMVWzI6vG9Z/HYNM6los0fXqCL8ait+LpFN5+hOScdDKNgzIfM5md35ToV6cM28nPQL3bum3sLLO4R4o5Rqp3QFW82+mipswjzycNIgKy3gcSSuFA7ALivIsZUxqpyQYU7GyBKnkJsf5om0tcr7PawHL08CqJf0/mLXZcw==" } ` diff --git a/citrixadc/resource_citrixadc_nslicenseserver.go b/citrixadc/resource_citrixadc_nslicenseserver.go index bd04bab89..bf62e2b99 100644 --- a/citrixadc/resource_citrixadc_nslicenseserver.go +++ b/citrixadc/resource_citrixadc_nslicenseserver.go @@ -51,8 +51,8 @@ func createNslicenseserverFunc(d *schema.ResourceData, meta interface{}) error { nslicenseserver := ns.Nslicenseserver{ Forceupdateip: d.Get("forceupdateip").(bool), - Nodeid: uint32(d.Get("nodeid").(int)), - Port: uint32(d.Get("port").(int)), + Nodeid: d.Get("nodeid").(int), + Port: d.Get("port").(int), Servername: d.Get("servername").(string), } diff --git a/citrixadc/resource_citrixadc_nslicenseserver_test.go b/citrixadc/resource_citrixadc_nslicenseserver_test.go index c894f18cb..b16371304 100644 --- a/citrixadc/resource_citrixadc_nslicenseserver_test.go +++ b/citrixadc/resource_citrixadc_nslicenseserver_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNslicenseserver_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("Feature not supported in CPX") } @@ -107,7 +110,7 @@ func testAccCheckNslicenseserverDestroy(s *terraform.State) error { const testAccNslicenseserver_basic = ` resource "citrixadc_nslicenseserver" "tf_licenseserver" { - servername = "10.78.60.200" + servername = "10.222.74.142" port = 27000 } ` diff --git a/citrixadc/resource_citrixadc_nsparam.go b/citrixadc/resource_citrixadc_nsparam.go index 075c62f73..5c61ff931 100644 --- a/citrixadc/resource_citrixadc_nsparam.go +++ b/citrixadc/resource_citrixadc_nsparam.go @@ -176,21 +176,21 @@ func createNsparamFunc(d *schema.ResourceData, meta interface{}) error { Cipheader: d.Get("cipheader").(string), Cookieversion: d.Get("cookieversion").(string), Crportrange: d.Get("crportrange").(string), - Exclusivequotamaxclient: uint32(d.Get("exclusivequotamaxclient").(int)), - Exclusivequotaspillover: uint32(d.Get("exclusivequotaspillover").(int)), + Exclusivequotamaxclient: d.Get("exclusivequotamaxclient").(int), + Exclusivequotaspillover: d.Get("exclusivequotaspillover").(int), Ftpportrange: d.Get("ftpportrange").(string), - Grantquotamaxclient: uint32(d.Get("grantquotamaxclient").(int)), - Grantquotaspillover: uint32(d.Get("grantquotaspillover").(int)), + Grantquotamaxclient: d.Get("grantquotamaxclient").(int), + Grantquotaspillover: d.Get("grantquotaspillover").(int), Internaluserlogin: d.Get("internaluserlogin").(string), - Maxconn: uint32(d.Get("maxconn").(int)), - Maxreq: uint32(d.Get("maxreq").(int)), - Mgmthttpport: int32(d.Get("mgmthttpport").(int)), - Mgmthttpsport: int32(d.Get("mgmthttpsport").(int)), - Pmtumin: uint32(d.Get("pmtumin").(int)), - Pmtutimeout: uint32(d.Get("pmtutimeout").(int)), + Maxconn: d.Get("maxconn").(int), + Maxreq: d.Get("maxreq").(int), + Mgmthttpport: d.Get("mgmthttpport").(int), + Mgmthttpsport: d.Get("mgmthttpsport").(int), + Pmtumin: d.Get("pmtumin").(int), + Pmtutimeout: d.Get("pmtutimeout").(int), Proxyprotocol: d.Get("proxyprotocol").(string), Securecookie: d.Get("securecookie").(string), - Servicepathingressvlan: uint32(d.Get("servicepathingressvlan").(int)), + Servicepathingressvlan: d.Get("servicepathingressvlan").(int), Tcpcip: d.Get("tcpcip").(string), Timezone: d.Get("timezone").(string), Useproxyport: d.Get("useproxyport").(string), diff --git a/citrixadc/resource_citrixadc_nsparam_test.go b/citrixadc/resource_citrixadc_nsparam_test.go index 5249950cc..95086d4e8 100644 --- a/citrixadc/resource_citrixadc_nsparam_test.go +++ b/citrixadc/resource_citrixadc_nsparam_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNsparam_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -75,8 +78,8 @@ func testAccCheckNsparamExist(n string, id *string, expectedValues map[string]in return fmt.Errorf("NS parameters %s not found", n) } - if data["proxyprotocol"] != expectedValues["proxyprotocol"] { - return fmt.Errorf("Expected value for \"proxyprotocol\" differs. Expected: \"%v\", Retrieved \"%v\"", expectedValues["proxyprotocol"], data["proxyprotocol"]) + if data["useproxyport"] != expectedValues["useproxyport"] { + return fmt.Errorf("Expected value for \"useproxyport\" differs. Expected: \"%v\", Retrieved \"%v\"", expectedValues["proxyprotocol"], data["proxyprotocol"]) } if data["maxconn"] != expectedValues["maxconn"] { diff --git a/citrixadc/resource_citrixadc_nsrpcnode_test.go b/citrixadc/resource_citrixadc_nsrpcnode_test.go index 2473564e2..0cdcb1fb8 100644 --- a/citrixadc/resource_citrixadc_nsrpcnode_test.go +++ b/citrixadc/resource_citrixadc_nsrpcnode_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNsrpcnode_basic(t *testing.T) { + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } if isCpxRun { t.Skip("Operation not permitted under CPX") } @@ -85,19 +88,19 @@ func testAccCheckNsrpcnodeExist(n string, id *string) resource.TestCheckFunc { const testAccNsrpcnode_basic_step1 = ` resource "citrixadc_nsrpcnode" "tf_nsrpcnode" { - ipaddress = "10.78.60.201" + ipaddress = "10.222.74.146" password = "notnsroot" secure = "ON" - srcip = "10.78.60.201" + srcip = "10.222.74.146" } ` const testAccNsrpcnode_basic_step2 = ` resource "citrixadc_nsrpcnode" "tf_nsrpcnode" { - ipaddress = "10.78.60.201" + ipaddress = "10.222.74.146" password = "notnsroot" secure = "OFF" - srcip = "10.78.60.201" + srcip = "10.222.74.146" } ` diff --git a/citrixadc/resource_citrixadc_nstcpparam_test.go b/citrixadc/resource_citrixadc_nstcpparam_test.go index 042e2c44a..7c003a33a 100644 --- a/citrixadc/resource_citrixadc_nstcpparam_test.go +++ b/citrixadc/resource_citrixadc_nstcpparam_test.go @@ -240,6 +240,9 @@ resource "citrixadc_nstcpparam" "tf_tcpparam" { ` func TestAccNstcpparam_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_nstcpprofile_test.go b/citrixadc/resource_citrixadc_nstcpprofile_test.go index 1fb580f9d..901f3c189 100644 --- a/citrixadc/resource_citrixadc_nstcpprofile_test.go +++ b/citrixadc/resource_citrixadc_nstcpprofile_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccNstcpprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -57,6 +60,9 @@ resource "citrixadc_nstcpprofile" "tf_test_profile_mpcapablecbit" { ` func TestAccNstcpprofile_mpcapablecbit(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } diff --git a/citrixadc/resource_citrixadc_nsvpxparam_test.go b/citrixadc/resource_citrixadc_nsvpxparam_test.go index d9eb14964..dc5c60861 100644 --- a/citrixadc/resource_citrixadc_nsvpxparam_test.go +++ b/citrixadc/resource_citrixadc_nsvpxparam_test.go @@ -17,9 +17,10 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccNsvpxparam_basic_step1 = ` @@ -65,6 +66,9 @@ resource "citrixadc_nsvpxparam" "tf_vpxparam1" { ` func TestAccNsvpxparam_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCluster { t.Skip("Use case is applicable for standalone VPX") } @@ -90,6 +94,9 @@ func TestAccNsvpxparam_basic(t *testing.T) { } func TestAccNsvpxparam_cluster(t *testing.T) { + if adcTestbed != "CLUSTER" { + t.Skipf("ADC testbed is %s. Expected CLUSTER.", adcTestbed) + } if !isCluster { t.Skip("Use case is not applicable to non clustered VPX") } diff --git a/citrixadc/resource_citrixadc_pinger.go b/citrixadc/resource_citrixadc_pinger.go index 3a714fd1a..30b872f97 100644 --- a/citrixadc/resource_citrixadc_pinger.go +++ b/citrixadc/resource_citrixadc_pinger.go @@ -80,14 +80,14 @@ func createPingerFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client pingerId := resource.PrefixedUniqueId("tf-pinger-") ping := utility.Ping{ - C: uint32(d.Get("c").(int)), + C: d.Get("c").(int), HostName: d.Get("hostname").(string), - I: uint32(d.Get("i").(int)), + I: d.Get("i").(int), N: d.Get("n").(bool), P: d.Get("p").(string), Q: d.Get("q").(bool), - S: uint32(d.Get("s").(int)), - T: uint32(d.Get("t").(int)), + S: d.Get("s").(int), + T: d.Get("t").(int), } if err := client.ActOnResource("ping", &ping, ""); err != nil { diff --git a/citrixadc/resource_citrixadc_pinger_test.go b/citrixadc/resource_citrixadc_pinger_test.go index 00d27bb67..c54da2c63 100644 --- a/citrixadc/resource_citrixadc_pinger_test.go +++ b/citrixadc/resource_citrixadc_pinger_test.go @@ -17,12 +17,16 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccPinger_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policydataset_test.go b/citrixadc/resource_citrixadc_policydataset_test.go index 5c7fdb6f1..440c6e9a2 100644 --- a/citrixadc/resource_citrixadc_policydataset_test.go +++ b/citrixadc/resource_citrixadc_policydataset_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccPolicydataset_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policydataset_value_binding.go b/citrixadc/resource_citrixadc_policydataset_value_binding.go index da730ddcf..95d9e48b1 100644 --- a/citrixadc/resource_citrixadc_policydataset_value_binding.go +++ b/citrixadc/resource_citrixadc_policydataset_value_binding.go @@ -55,7 +55,7 @@ func createPolicydataset_value_bindingFunc(d *schema.ResourceData, meta interfac policydataset_value_binding := policy.Policydatasetvaluebinding{ Comment: d.Get("comment").(string), - Index: uint32(d.Get("index").(int)), + Index: d.Get("index").(int), Name: d.Get("name").(string), Value: d.Get("value").(string), } diff --git a/citrixadc/resource_citrixadc_policydataset_value_binding_test.go b/citrixadc/resource_citrixadc_policydataset_value_binding_test.go index c0932878e..ed43d43cf 100644 --- a/citrixadc/resource_citrixadc_policydataset_value_binding_test.go +++ b/citrixadc/resource_citrixadc_policydataset_value_binding_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccPolicydataset_value_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policyexpression_test.go b/citrixadc/resource_citrixadc_policyexpression_test.go index 6fe45aa46..4aaccdfd3 100644 --- a/citrixadc/resource_citrixadc_policyexpression_test.go +++ b/citrixadc/resource_citrixadc_policyexpression_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccPolicyexpression_advanced(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -53,6 +56,9 @@ func TestAccPolicyexpression_advanced(t *testing.T) { } func TestAccPolicyexpression_classic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policypatset_pattern_binding.go b/citrixadc/resource_citrixadc_policypatset_pattern_binding.go index 53b56bd53..f98d758af 100644 --- a/citrixadc/resource_citrixadc_policypatset_pattern_binding.go +++ b/citrixadc/resource_citrixadc_policypatset_pattern_binding.go @@ -68,7 +68,7 @@ func createPolicypatset_pattern_bindingFunc(d *schema.ResourceData, meta interfa Charset: d.Get("charset").(string), Comment: d.Get("comment").(string), Feature: d.Get("feature").(string), - Index: uint32(d.Get("index").(int)), + Index: d.Get("index").(int), Name: d.Get("name").(string), String: d.Get("string").(string), } diff --git a/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go b/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go index e3bbd8913..dff6cc41d 100644 --- a/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go +++ b/citrixadc/resource_citrixadc_policypatset_pattern_binding_test.go @@ -54,6 +54,9 @@ resource "citrixadc_policypatset_pattern_binding" "tf_bind" { ` func TestAccPolicypatset_pattern_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policypatset_test.go b/citrixadc/resource_citrixadc_policypatset_test.go index 7e2579a39..d0e3ac57b 100644 --- a/citrixadc/resource_citrixadc_policypatset_test.go +++ b/citrixadc/resource_citrixadc_policypatset_test.go @@ -43,6 +43,9 @@ resource "citrixadc_policypatset" "tf_patset" { ` func TestAccPolicypatset_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go b/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go index 26ea2bcaf..35188116b 100644 --- a/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go +++ b/citrixadc/resource_citrixadc_policystringmap_pattern_binding_test.go @@ -66,6 +66,9 @@ resource "citrixadc_policystringmap_pattern_binding" "tf_bind2" { ` func TestAccPolicystringmap_pattern_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_policystringmap_test.go b/citrixadc/resource_citrixadc_policystringmap_test.go index 0b40c2b5a..b8e290444 100644 --- a/citrixadc/resource_citrixadc_policystringmap_test.go +++ b/citrixadc/resource_citrixadc_policystringmap_test.go @@ -41,6 +41,9 @@ resource "citrixadc_policystringmap" "tf_policystringmap" { ` func TestAccPolicystringmap_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_quicbridgeprofile_test.go b/citrixadc/resource_citrixadc_quicbridgeprofile_test.go index cfaf5f1be..75fd73be2 100644 --- a/citrixadc/resource_citrixadc_quicbridgeprofile_test.go +++ b/citrixadc/resource_citrixadc_quicbridgeprofile_test.go @@ -17,9 +17,10 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) const testAccQuicbridgeprofile_add = ` @@ -39,6 +40,9 @@ const testAccQuicbridgeprofile_update = ` ` func TestAccQuicbridgeprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("No support in CPX") } diff --git a/citrixadc/resource_citrixadc_rebooter_test.go b/citrixadc/resource_citrixadc_rebooter_test.go index 3cc8b98e2..619326120 100644 --- a/citrixadc/resource_citrixadc_rebooter_test.go +++ b/citrixadc/resource_citrixadc_rebooter_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccReboot_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCluster { t.Skip("Cluster does not support reboot operation") } diff --git a/citrixadc/resource_citrixadc_responderaction.go b/citrixadc/resource_citrixadc_responderaction.go index bdcee6bf7..8190b5aee 100644 --- a/citrixadc/resource_citrixadc_responderaction.go +++ b/citrixadc/resource_citrixadc_responderaction.go @@ -85,7 +85,7 @@ func createResponderactionFunc(d *schema.ResourceData, meta interface{}) error { Htmlpage: d.Get("htmlpage").(string), Name: d.Get("name").(string), Reasonphrase: d.Get("reasonphrase").(string), - Responsestatuscode: uint32(d.Get("responsestatuscode").(int)), + Responsestatuscode: d.Get("responsestatuscode").(int), Target: d.Get("target").(string), Type: d.Get("type").(string), } @@ -166,7 +166,7 @@ func updateResponderactionFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("responsestatuscode") { log.Printf("[DEBUG] citrixadc-provider: Responsestatuscode has changed for responderaction %s, starting update", responderactionName) - responderaction.Responsestatuscode = uint32(d.Get("responsestatuscode").(int)) + responderaction.Responsestatuscode = d.Get("responsestatuscode").(int) hasChange = true } if d.HasChange("target") { diff --git a/citrixadc/resource_citrixadc_responderaction_test.go b/citrixadc/resource_citrixadc_responderaction_test.go index 7f80a8b8e..1217f7d05 100644 --- a/citrixadc/resource_citrixadc_responderaction_test.go +++ b/citrixadc/resource_citrixadc_responderaction_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccResponderaction_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -55,6 +58,9 @@ func TestAccResponderaction_basic(t *testing.T) { } func TestAccResponderaction_html(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("Skipping responder action html test because CPX cannot import responder html page") diff --git a/citrixadc/resource_citrixadc_responderpolicy.go b/citrixadc/resource_citrixadc_responderpolicy.go index 4559dfb7b..cec750539 100644 --- a/citrixadc/resource_citrixadc_responderpolicy.go +++ b/citrixadc/resource_citrixadc_responderpolicy.go @@ -75,6 +75,11 @@ func resourceCitrixAdcResponderpolicy() *schema.Resource { Optional: true, Computed: true, }, + "invoke": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, "labelname": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -95,6 +100,11 @@ func resourceCitrixAdcResponderpolicy() *schema.Resource { Optional: true, Computed: true, }, + "type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + }, }, }, }, @@ -413,11 +423,14 @@ func addSingleGlobalBinding(d *schema.ResourceData, meta interface{}, binding ma client := meta.(*NetScalerNitroClient).client - bindingStruct := responder.Responderpolicyglobalbinding{} - bindingStruct.Name = d.Get("name").(string) + bindingStruct := responder.Responderglobalpolicybinding{} + bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["gotopriorityexpression"]; ok { bindingStruct.Gotopriorityexpression = d.(string) } + if d, ok := binding["invoke"]; ok { + bindingStruct.Invoke = d.(bool) + } if d, ok := binding["labelname"]; ok { log.Printf("Labelname %v\n", d) bindingStruct.Labelname = d.(string) @@ -429,6 +442,10 @@ func addSingleGlobalBinding(d *schema.ResourceData, meta interface{}, binding ma if d, ok := binding["priority"]; ok { bindingStruct.Priority = uint32(d.(int)) } + if d, ok := binding["type"]; ok { + log.Printf("Type %v\n", d) + bindingStruct.Type = d.(string) + } if err := client.UpdateUnnamedResource("responderglobal_responderpolicy_binding", bindingStruct); err != nil { return err diff --git a/citrixadc/resource_citrixadc_responderpolicy_test.go b/citrixadc/resource_citrixadc_responderpolicy_test.go index f7cdc4718..11e601aa9 100644 --- a/citrixadc/resource_citrixadc_responderpolicy_test.go +++ b/citrixadc/resource_citrixadc_responderpolicy_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccResponderpolicy_globalbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -171,6 +174,9 @@ func testAccCheckResponderpolicyDestroy(s *terraform.State) error { } func TestAccResponderpolicy_lbvserverbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -203,6 +209,9 @@ func TestAccResponderpolicy_lbvserverbinding(t *testing.T) { } func TestAccResponderpolicy_csvserverbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_responderpolicylabel_test.go b/citrixadc/resource_citrixadc_responderpolicylabel_test.go index 4f367df34..df2809e5a 100644 --- a/citrixadc/resource_citrixadc_responderpolicylabel_test.go +++ b/citrixadc/resource_citrixadc_responderpolicylabel_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccResponderpolicylabel_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_rewriteaction_test.go b/citrixadc/resource_citrixadc_rewriteaction_test.go index 70db83320..a770505dc 100644 --- a/citrixadc/resource_citrixadc_rewriteaction_test.go +++ b/citrixadc/resource_citrixadc_rewriteaction_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccRewriteaction_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_rewritepolicy.go b/citrixadc/resource_citrixadc_rewritepolicy.go index 6ea039b16..8945f42f0 100644 --- a/citrixadc/resource_citrixadc_rewritepolicy.go +++ b/citrixadc/resource_citrixadc_rewritepolicy.go @@ -75,6 +75,11 @@ func resourceCitrixAdcRewritepolicy() *schema.Resource { Optional: true, Computed: true, }, + "invoke": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Computed: true, + }, "labelname": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -95,6 +100,11 @@ func resourceCitrixAdcRewritepolicy() *schema.Resource { Optional: true, Computed: true, }, + "type": &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Computed: true, + }, }, }, }, @@ -404,11 +414,14 @@ func addSingleRewriteGlobalBinding(d *schema.ResourceData, meta interface{}, bin client := meta.(*NetScalerNitroClient).client - bindingStruct := rewrite.Rewritepolicyglobalbinding{} - bindingStruct.Name = d.Get("name").(string) + bindingStruct := rewrite.Rewriteglobalpolicybinding{} + bindingStruct.Policyname = d.Get("name").(string) if d, ok := binding["gotopriorityexpression"]; ok { bindingStruct.Gotopriorityexpression = d.(string) } + if d, ok := binding["invoke"]; ok { + bindingStruct.Invoke = d.(bool) + } if d, ok := binding["labelname"]; ok { log.Printf("Labelname %v\n", d) bindingStruct.Labelname = d.(string) @@ -420,6 +433,10 @@ func addSingleRewriteGlobalBinding(d *schema.ResourceData, meta interface{}, bin if d, ok := binding["priority"]; ok { bindingStruct.Priority = uint32(d.(int)) } + if d, ok := binding["type"]; ok { + log.Printf("Type %v\n", d) + bindingStruct.Type = d.(string) + } if err := client.UpdateUnnamedResource("rewriteglobal_rewritepolicy_binding", bindingStruct); err != nil { return err diff --git a/citrixadc/resource_citrixadc_rewritepolicy_test.go b/citrixadc/resource_citrixadc_rewritepolicy_test.go index 7bb3d34fc..5a8c7437f 100644 --- a/citrixadc/resource_citrixadc_rewritepolicy_test.go +++ b/citrixadc/resource_citrixadc_rewritepolicy_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccRewritepolicy_globalbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -60,6 +63,9 @@ func TestAccRewritepolicy_globalbinding(t *testing.T) { } func TestAccRewritepolicy_lbvserverbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -94,6 +100,9 @@ func TestAccRewritepolicy_lbvserverbinding(t *testing.T) { } func TestAccRewritepolicy_csvserverbinding(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_rewritepolicylabel_test.go b/citrixadc/resource_citrixadc_rewritepolicylabel_test.go index c6b5548bd..d03105fac 100644 --- a/citrixadc/resource_citrixadc_rewritepolicylabel_test.go +++ b/citrixadc/resource_citrixadc_rewritepolicylabel_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccRewritepolicylabel_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_rnat_test.go b/citrixadc/resource_citrixadc_rnat_test.go index 96bfb689a..eedf6c817 100644 --- a/citrixadc/resource_citrixadc_rnat_test.go +++ b/citrixadc/resource_citrixadc_rnat_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccRnat_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -60,7 +63,8 @@ func testAccCheckRnatExist(n string, id *string) resource.TestCheckFunc { } nsClient := testAccProvider.Meta().(*NetScalerNitroClient).client - d, err := nsClient.FindFilteredResourceArray(service.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) + //d, err := nsClient.FindFilteredResourceArray(service.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0", "natip": "*"}) + d, err := nsClient.FindFilteredResourceArray(service.Rnat.Type(), map[string]string{"network": "192.168.96.0", "netmask": "255.255.240.0"}) if err != nil { return err diff --git a/citrixadc/resource_citrixadc_route.go b/citrixadc/resource_citrixadc_route.go index 3f23deddb..7d41856c5 100644 --- a/citrixadc/resource_citrixadc_route.go +++ b/citrixadc/resource_citrixadc_route.go @@ -109,10 +109,10 @@ func createRouteFunc(d *schema.ResourceData, meta interface{}) error { route := network.Route{ Advertise: d.Get("advertise").(string), - Cost: uint32(d.Get("cost").(int)), - Cost1: uint32(d.Get("cost1").(int)), + Cost: d.Get("cost").(int), + Cost1: d.Get("cost1").(int), Detail: d.Get("detail").(bool), - Distance: uint32(d.Get("distance").(int)), + Distance: d.Get("distance").(int), Gateway: d.Get("gateway").(string), Monitor: d.Get("monitor").(string), Msr: d.Get("msr").(string), @@ -120,9 +120,9 @@ func createRouteFunc(d *schema.ResourceData, meta interface{}) error { Network: d.Get("network").(string), Ownergroup: d.Get("ownergroup").(string), Routetype: d.Get("routetype").(string), - Td: uint32(d.Get("td").(int)), - Vlan: uint32(d.Get("vlan").(int)), - Weight: uint32(d.Get("weight").(int)), + Td: d.Get("td").(int), + Vlan: d.Get("vlan").(int), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Route.Type(), route.Network, &route) @@ -205,12 +205,12 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cost") { log.Printf("[DEBUG] citrixadc-provider: Cost has changed for route %s, starting update", routeName) - route.Cost = uint32(d.Get("cost").(int)) + route.Cost = d.Get("cost").(int) hasChange = true } if d.HasChange("cost1") { log.Printf("[DEBUG] citrixadc-provider: Cost1 has changed for route %s, starting update", routeName) - route.Cost1 = uint32(d.Get("cost1").(int)) + route.Cost1 = d.Get("cost1").(int) hasChange = true } if d.HasChange("detail") { @@ -220,7 +220,7 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("distance") { log.Printf("[DEBUG] citrixadc-provider: Distance has changed for route %s, starting update", routeName) - route.Distance = uint32(d.Get("distance").(int)) + route.Distance = d.Get("distance").(int) hasChange = true } if d.HasChange("gateway") { @@ -260,17 +260,17 @@ func updateRouteFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] citrixadc-provider: Td has changed for route %s, starting update", routeName) - route.Td = uint32(d.Get("td").(int)) + route.Td = d.Get("td").(int) hasChange = true } if d.HasChange("vlan") { log.Printf("[DEBUG] citrixadc-provider: Vlan has changed for route %s, starting update", routeName) - route.Vlan = uint32(d.Get("vlan").(int)) + route.Vlan = d.Get("vlan").(int) hasChange = true } if d.HasChange("weight") { log.Printf("[DEBUG] citrixadc-provider: Weight has changed for route %s, starting update", routeName) - route.Weight = uint32(d.Get("weight").(int)) + route.Weight = d.Get("weight").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_route_test.go b/citrixadc/resource_citrixadc_route_test.go index 0d3953bc1..fba5eeaae 100644 --- a/citrixadc/resource_citrixadc_route_test.go +++ b/citrixadc/resource_citrixadc_route_test.go @@ -57,6 +57,9 @@ const testAccRoute_update = ` ` func TestAccRoute_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_routerdynamicrouting.go b/citrixadc/resource_citrixadc_routerdynamicrouting.go index e2e0f8ac0..ee29953ba 100644 --- a/citrixadc/resource_citrixadc_routerdynamicrouting.go +++ b/citrixadc/resource_citrixadc_routerdynamicrouting.go @@ -49,7 +49,7 @@ func applyRouterdynamicroutingFunc(d *schema.ResourceData, meta interface{}) err routerdynamicrouting := router.Routerdynamicrouting{ Commandstring: cmdString, - Nodeid: uint32(d.Get("nodeid").(int)), + Nodeid: d.Get("nodeid").(int), } err := client.ActOnResource("routerdynamicrouting", &routerdynamicrouting, "apply") diff --git a/citrixadc/resource_citrixadc_routerdynamicrouting_test.go b/citrixadc/resource_citrixadc_routerdynamicrouting_test.go index ad2a743bd..807a22cb1 100644 --- a/citrixadc/resource_citrixadc_routerdynamicrouting_test.go +++ b/citrixadc/resource_citrixadc_routerdynamicrouting_test.go @@ -17,12 +17,16 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccRouterdynamicrouting_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("Feature not supported on CPX") } diff --git a/citrixadc/resource_citrixadc_server.go b/citrixadc/resource_citrixadc_server.go index 7184fce95..55eeef97d 100644 --- a/citrixadc/resource_citrixadc_server.go +++ b/citrixadc/resource_citrixadc_server.go @@ -119,14 +119,14 @@ func createServerFunc(d *schema.ResourceData, meta interface{}) error { Comment: d.Get("comment").(string), Domain: d.Get("domain").(string), Domainresolvenow: d.Get("domainresolvenow").(bool), - Domainresolveretry: int32(d.Get("domainresolveretry").(int)), + Domainresolveretry: d.Get("domainresolveretry").(int), Internal: d.Get("internal").(bool), Ipaddress: d.Get("ipaddress").(string), Ipv6address: d.Get("ipv6address").(string), Name: d.Get("name").(string), Querytype: d.Get("querytype").(string), State: d.Get("state").(string), - Td: uint32(d.Get("td").(int)), + Td: d.Get("td").(int), Translationip: d.Get("translationip").(string), Translationmask: d.Get("translationmask").(string), } @@ -206,7 +206,7 @@ func updateServerFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("domainresolveretry") { log.Printf("[DEBUG] netscaler-provider: Domainresolveretry has changed for server %s, starting update", serverName) - server.Domainresolveretry = int32(d.Get("domainresolveretry").(int)) + server.Domainresolveretry = d.Get("domainresolveretry").(int) hasChange = true } if d.HasChange("internal") { @@ -240,7 +240,7 @@ func updateServerFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for server %s, starting update", serverName) - server.Td = uint32(d.Get("td").(int)) + server.Td = d.Get("td").(int) hasChange = true } if d.HasChange("translationip") { @@ -302,7 +302,7 @@ func doServerStateChange(d *schema.ResourceData, client *service.NitroClient) er } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - server.Delay = uint64(d.Get("delay").(int)) + server.Delay = d.Get("delay").(int) server.Graceful = d.Get("graceful").(string) err := client.ActOnResource(service.Server.Type(), server, "disable") if err != nil { diff --git a/citrixadc/resource_citrixadc_server_test.go b/citrixadc/resource_citrixadc_server_test.go index 90283770a..4ff5523da 100644 --- a/citrixadc/resource_citrixadc_server_test.go +++ b/citrixadc/resource_citrixadc_server_test.go @@ -28,6 +28,9 @@ import ( ) func TestAccServer_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -112,6 +115,9 @@ resource "citrixadc_server" "foo" { // Test for immutability of attributes // This is to catch any attibute having ForceNew: true while not actually needed func TestAccServer_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") @@ -184,6 +190,9 @@ resource "citrixadc_server" "tf_enable_disable_test_svr" { ` func TestAccServer_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_service.go b/citrixadc/resource_citrixadc_service.go index dab01ccc0..f0a20c495 100644 --- a/citrixadc/resource_citrixadc_service.go +++ b/citrixadc/resource_citrixadc_service.go @@ -354,45 +354,45 @@ func createServiceFunc(d *schema.ResourceData, meta interface{}) error { Cip: d.Get("cip").(string), Cipheader: d.Get("cipheader").(string), Cka: d.Get("cka").(string), - Cleartextport: int32(d.Get("cleartextport").(int)), - Clttimeout: uint64(d.Get("clttimeout").(int)), + Cleartextport: d.Get("cleartextport").(int), + Clttimeout: d.Get("clttimeout").(int), Cmp: d.Get("cmp").(string), Comment: d.Get("comment").(string), Contentinspectionprofilename: d.Get("contentinspectionprofilename").(string), Customserverid: d.Get("customserverid").(string), Dnsprofilename: d.Get("dnsprofilename").(string), Downstateflush: d.Get("downstateflush").(string), - Hashid: uint32(d.Get("hashid").(int)), + Hashid: d.Get("hashid").(int), Healthmonitor: d.Get("healthmonitor").(string), Httpprofilename: d.Get("httpprofilename").(string), Internal: d.Get("internal").(bool), Ip: d.Get("ip").(string), Ipaddress: d.Get("ipaddress").(string), - Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), - Maxclient: uint32(d.Get("maxclient").(int)), - Maxreq: uint32(d.Get("maxreq").(int)), + Maxbandwidth: d.Get("maxbandwidth").(int), + Maxclient: d.Get("maxclient").(int), + Maxreq: d.Get("maxreq").(int), Monconnectionclose: d.Get("monconnectionclose").(string), Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: uint32(d.Get("monthreshold").(int)), + Monthreshold: d.Get("monthreshold").(int), Netprofile: d.Get("netprofile").(string), Pathmonitor: d.Get("pathmonitor").(string), Pathmonitorindv: d.Get("pathmonitorindv").(string), - Port: int32(d.Get("port").(int)), + Port: d.Get("port").(int), Processlocal: d.Get("processlocal").(string), Rtspsessionidremap: d.Get("rtspsessionidremap").(string), Sc: d.Get("sc").(string), - Serverid: uint32(d.Get("serverid").(int)), + Serverid: d.Get("serverid").(int), Servername: d.Get("servername").(string), Servicetype: d.Get("servicetype").(string), Sp: d.Get("sp").(string), State: d.Get("state").(string), - Svrtimeout: uint64(d.Get("svrtimeout").(int)), + Svrtimeout: d.Get("svrtimeout").(int), Tcpb: d.Get("tcpb").(string), Tcpprofilename: d.Get("tcpprofilename").(string), - Td: uint32(d.Get("td").(int)), + Td: d.Get("td").(int), Useproxyport: d.Get("useproxyport").(string), Usip: d.Get("usip").(string), - Weight: uint32(d.Get("weight").(int)), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Service.Type(), serviceName, &svc) @@ -629,12 +629,12 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("cleartextport") { log.Printf("[DEBUG] netscaler-provider: Cleartextport has changed for service %s, starting update", serviceName) - svc.Cleartextport = int32(d.Get("cleartextport").(int)) + svc.Cleartextport = d.Get("cleartextport").(int) hasChange = true } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for service %s, starting update", serviceName) - svc.Clttimeout = uint64(d.Get("clttimeout").(int)) + svc.Clttimeout = d.Get("clttimeout").(int) hasChange = true } if d.HasChange("cmp") { @@ -669,7 +669,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for service %s, starting update", serviceName) - svc.Hashid = uint32(d.Get("hashid").(int)) + svc.Hashid = d.Get("hashid").(int) hasChange = true } if d.HasChange("healthmonitor") { @@ -699,17 +699,17 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for service %s, starting update", serviceName) - svc.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) + svc.Maxbandwidth = d.Get("maxbandwidth").(int) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for service %s, starting update", serviceName) - svc.Maxclient = uint32(d.Get("maxclient").(int)) + svc.Maxclient = d.Get("maxclient").(int) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] netscaler-provider: Maxreq has changed for service %s, starting update", serviceName) - svc.Maxreq = uint32(d.Get("maxreq").(int)) + svc.Maxreq = d.Get("maxreq").(int) hasChange = true } if d.HasChange("monconnectionclose") { @@ -724,7 +724,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for service %s, starting update", serviceName) - svc.Monthreshold = uint32(d.Get("monthreshold").(int)) + svc.Monthreshold = d.Get("monthreshold").(int) hasChange = true } if d.HasChange("name") { @@ -749,7 +749,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for service %s, starting update", serviceName) - svc.Port = int32(d.Get("port").(int)) + svc.Port = d.Get("port").(int) hasChange = true } if d.HasChange("processlocal") { @@ -769,7 +769,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("serverid") { log.Printf("[DEBUG] netscaler-provider: Serverid has changed for service %s, starting update", serviceName) - svc.Serverid = uint32(d.Get("serverid").(int)) + svc.Serverid = d.Get("serverid").(int) hasChange = true } if d.HasChange("servername") { @@ -793,7 +793,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for service %s, starting update", serviceName) - svc.Svrtimeout = uint64(d.Get("svrtimeout").(int)) + svc.Svrtimeout = d.Get("svrtimeout").(int) hasChange = true } if d.HasChange("tcpb") { @@ -808,7 +808,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for service %s, starting update", serviceName) - svc.Td = uint32(d.Get("td").(int)) + svc.Td = d.Get("td").(int) hasChange = true } if d.HasChange("useproxyport") { @@ -823,7 +823,7 @@ func updateServiceFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for service %s, starting update", serviceName) - svc.Weight = uint32(d.Get("weight").(int)) + svc.Weight = d.Get("weight").(int) hasChange = true } if d.HasChange("lbmonitor") { @@ -958,7 +958,7 @@ func doServiceStateChange(d *schema.ResourceData, client *service.NitroClient) e } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - svc.Delay = uint64(d.Get("delay").(int)) + svc.Delay = d.Get("delay").(int) svc.Graceful = d.Get("graceful").(string) err := client.ActOnResource(service.Service.Type(), svc, "disable") if err != nil { diff --git a/citrixadc/resource_citrixadc_service_test.go b/citrixadc/resource_citrixadc_service_test.go index dde019b43..123a05610 100644 --- a/citrixadc/resource_citrixadc_service_test.go +++ b/citrixadc/resource_citrixadc_service_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccService_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -129,6 +132,9 @@ resource "citrixadc_service" "foo" { ` func TestAccService_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") @@ -253,6 +259,9 @@ resource "citrixadc_service" "tf_acc_service" { ` func TestAccService_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -284,6 +293,9 @@ func TestAccService_enable_disable(t *testing.T) { } func TestAccService_sslservice(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_servicegroup.go b/citrixadc/resource_citrixadc_servicegroup.go index 2f0a3bf7a..9f7293f5b 100644 --- a/citrixadc/resource_citrixadc_servicegroup.go +++ b/citrixadc/resource_citrixadc_servicegroup.go @@ -354,7 +354,7 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { servicegroup := basic.Servicegroup{ Appflowlog: d.Get("appflowlog").(string), - Autodisabledelay: uint64(d.Get("autodisabledelay").(int)), + Autodisabledelay: d.Get("autodisabledelay").(int), Autodisablegraceful: d.Get("autodisablegraceful").(string), Autoscale: d.Get("autoscale").(string), Cacheable: d.Get("cacheable").(string), @@ -362,44 +362,44 @@ func createServicegroupFunc(d *schema.ResourceData, meta interface{}) error { Cip: d.Get("cip").(string), Cipheader: d.Get("cipheader").(string), Cka: d.Get("cka").(string), - Clttimeout: uint64(d.Get("clttimeout").(int)), + Clttimeout: d.Get("clttimeout").(int), Cmp: d.Get("cmp").(string), Comment: d.Get("comment").(string), Customserverid: d.Get("customserverid").(string), - Dbsttl: uint64(d.Get("dbsttl").(int)), + Dbsttl: d.Get("dbsttl").(int), Downstateflush: d.Get("downstateflush").(string), - Dupweight: uint32(d.Get("dupweight").(int)), - Hashid: uint32(d.Get("hashid").(int)), + Dupweight: d.Get("dupweight").(int), + Hashid: d.Get("hashid").(int), Healthmonitor: d.Get("healthmonitor").(string), Httpprofilename: d.Get("httpprofilename").(string), Includemembers: d.Get("includemembers").(bool), - Maxbandwidth: uint32(d.Get("maxbandwidth").(int)), - Maxclient: uint32(d.Get("maxclient").(int)), - Maxreq: uint32(d.Get("maxreq").(int)), - Memberport: int32(d.Get("memberport").(int)), + Maxbandwidth: d.Get("maxbandwidth").(int), + Maxclient: d.Get("maxclient").(int), + Maxreq: d.Get("maxreq").(int), + Memberport: d.Get("memberport").(int), Monconnectionclose: d.Get("monconnectionclose").(string), Monitornamesvc: d.Get("monitornamesvc").(string), - Monthreshold: uint32(d.Get("monthreshold").(int)), + Monthreshold: d.Get("monthreshold").(int), Nameserver: d.Get("nameserver").(string), Netprofile: d.Get("netprofile").(string), Pathmonitor: d.Get("pathmonitor").(string), Pathmonitorindv: d.Get("pathmonitorindv").(string), - Port: int32(d.Get("port").(int)), + Port: d.Get("port").(int), Rtspsessionidremap: d.Get("rtspsessionidremap").(string), Sc: d.Get("sc").(string), - Serverid: uint32(d.Get("serverid").(int)), + Serverid: d.Get("serverid").(int), Servername: d.Get("servername").(string), Servicegroupname: d.Get("servicegroupname").(string), Servicetype: d.Get("servicetype").(string), Sp: d.Get("sp").(string), State: d.Get("state").(string), - Svrtimeout: uint64(d.Get("svrtimeout").(int)), + Svrtimeout: d.Get("svrtimeout").(int), Tcpb: d.Get("tcpb").(string), Tcpprofilename: d.Get("tcpprofilename").(string), - Td: uint32(d.Get("td").(int)), + Td: d.Get("td").(int), Useproxyport: d.Get("useproxyport").(string), Usip: d.Get("usip").(string), - Weight: uint32(d.Get("weight").(int)), + Weight: d.Get("weight").(int), } _, err := client.AddResource(service.Servicegroup.Type(), servicegroupName, &servicegroup) @@ -455,8 +455,8 @@ func createServicegroupMemberBindings(client *service.NitroClient, servicegroupN //format is ip:port:weight parts := strings.Split(member, ":") var ip, servername string - var port int32 - var weight uint32 + var port int + var weight int if !bindByServername { ip = parts[0] } else { @@ -467,16 +467,14 @@ func createServicegroupMemberBindings(client *service.NitroClient, servicegroupN //TODO: take it from memberport continue } - port64, err := strconv.ParseInt(parts[1], 10, 32) - port = int32(port64) + port, err := strconv.Atoi(parts[1]) if err != nil { log.Printf("[WARN] netscaler-provider: servicgroupmembers has invalid port: not an integer: %s", parts[1]) continue } weightFound := false if len(parts) > 2 { - weight64, err := strconv.ParseUint(parts[2], 10, 32) - weight = uint32(weight64) + weight, err = strconv.Atoi(parts[2]) weightFound = true if err != nil { log.Printf("[WARN] netscaler-provider: servicgroupmembers has invalid weight: not an integer:%s", parts[2]) @@ -735,7 +733,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("autodisabledelay") { log.Printf("[DEBUG] netscaler-provider: Autodisabledelay has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Autodisabledelay = uint64(d.Get("autodisabledelay").(int)) + servicegroup.Autodisabledelay = d.Get("autodisabledelay").(int) hasChange = true } if d.HasChange("autodisablegraceful") { @@ -775,7 +773,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("clttimeout") { log.Printf("[DEBUG] netscaler-provider: Clttimeout has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Clttimeout = uint64(d.Get("clttimeout").(int)) + servicegroup.Clttimeout = d.Get("clttimeout").(int) hasChange = true } if d.HasChange("cmp") { @@ -795,7 +793,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dbsttl") { log.Printf("[DEBUG] netscaler-provider: Dbsttl has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Dbsttl = uint64(d.Get("dbsttl").(int)) + servicegroup.Dbsttl = d.Get("dbsttl").(int) hasChange = true } if d.HasChange("downstateflush") { @@ -805,12 +803,12 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("dupweight") { log.Printf("[DEBUG] netscaler-provider: Dupweight has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Dupweight = uint32(d.Get("dupweight").(int)) + servicegroup.Dupweight = d.Get("dupweight").(int) hasChange = true } if d.HasChange("hashid") { log.Printf("[DEBUG] netscaler-provider: Hashid has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Hashid = uint32(d.Get("hashid").(int)) + servicegroup.Hashid = d.Get("hashid").(int) hasChange = true } if d.HasChange("healthmonitor") { @@ -830,22 +828,22 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxbandwidth") { log.Printf("[DEBUG] netscaler-provider: Maxbandwidth has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxbandwidth = uint32(d.Get("maxbandwidth").(int)) + servicegroup.Maxbandwidth = d.Get("maxbandwidth").(int) hasChange = true } if d.HasChange("maxclient") { log.Printf("[DEBUG] netscaler-provider: Maxclient has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxclient = uint32(d.Get("maxclient").(int)) + servicegroup.Maxclient = d.Get("maxclient").(int) hasChange = true } if d.HasChange("maxreq") { log.Printf("[DEBUG] netscaler-provider: Maxreq has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Maxreq = uint32(d.Get("maxreq").(int)) + servicegroup.Maxreq = d.Get("maxreq").(int) hasChange = true } if d.HasChange("memberport") { log.Printf("[DEBUG] netscaler-provider: Memberport has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Memberport = int32(d.Get("memberport").(int)) + servicegroup.Memberport = d.Get("memberport").(int) hasChange = true } if d.HasChange("monconnectionclose") { @@ -860,7 +858,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("monthreshold") { log.Printf("[DEBUG] netscaler-provider: Monthreshold has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Monthreshold = uint32(d.Get("monthreshold").(int)) + servicegroup.Monthreshold = d.Get("monthreshold").(int) hasChange = true } if d.HasChange("nameserver") { @@ -885,7 +883,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("port") { log.Printf("[DEBUG] netscaler-provider: Port has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Port = int32(d.Get("port").(int)) + servicegroup.Port = d.Get("port").(int) hasChange = true } if d.HasChange("rtspsessionidremap") { @@ -900,7 +898,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("serverid") { log.Printf("[DEBUG] netscaler-provider: Serverid has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Serverid = uint32(d.Get("serverid").(int)) + servicegroup.Serverid = d.Get("serverid").(int) hasChange = true } if d.HasChange("servername") { @@ -929,7 +927,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("svrtimeout") { log.Printf("[DEBUG] netscaler-provider: Svrtimeout has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Svrtimeout = uint64(d.Get("svrtimeout").(int)) + servicegroup.Svrtimeout = d.Get("svrtimeout").(int) hasChange = true } if d.HasChange("tcpb") { @@ -944,7 +942,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("td") { log.Printf("[DEBUG] netscaler-provider: Td has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Td = uint32(d.Get("td").(int)) + servicegroup.Td = d.Get("td").(int) hasChange = true } if d.HasChange("useproxyport") { @@ -959,7 +957,7 @@ func updateServicegroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("weight") { log.Printf("[DEBUG] netscaler-provider: Weight has changed for servicegroup %s, starting update", servicegroupName) - servicegroup.Weight = uint32(d.Get("weight").(int)) + servicegroup.Weight = d.Get("weight").(int) hasChange = true } if d.HasChange("lbvservers") { @@ -1119,7 +1117,7 @@ func doServicegroupStateChange(d *schema.ResourceData, client *service.NitroClie serviceGroup := basic.Servicegroup{ Servicegroupname: d.Get("servicegroupname").(string), Servername: d.Get("servername").(string), - Port: int32(d.Get("port").(int)), + Port: d.Get("port").(int), } newstate := d.Get("state") @@ -1132,7 +1130,7 @@ func doServicegroupStateChange(d *schema.ResourceData, client *service.NitroClie } } else if newstate == "DISABLED" { // Add attributes relevant to the disable operation - serviceGroup.Delay = uint64(d.Get("delay").(int)) + serviceGroup.Delay = d.Get("delay").(int) serviceGroup.Graceful = d.Get("graceful").(string) err := client.ActOnResource(service.Servicegroup.Type(), serviceGroup, "disable") if err != nil { diff --git a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go index f7aff3efc..020098dd2 100644 --- a/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_lbmonitor_binding_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccServicegroup_lbmonitor_binding_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go index 060e4da06..d2d10bd5a 100644 --- a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go +++ b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding.go @@ -116,16 +116,16 @@ func createServicegroup_servicegroupmember_bindingFunc(d *schema.ResourceData, m servicegroup_servicegroupmember_binding := basic.Servicegroupservicegroupmemberbinding{ Customserverid: d.Get("customserverid").(string), - Dbsttl: uint64(d.Get("dbsttl").(int)), - Hashid: uint32(d.Get("hashid").(int)), + Dbsttl: d.Get("dbsttl").(int), + Hashid: d.Get("hashid").(int), Ip: d.Get("ip").(string), Nameserver: d.Get("nameserver").(string), - Port: int32(d.Get("port").(int)), - Serverid: uint32(d.Get("serverid").(int)), + Port: d.Get("port").(int), + Serverid: d.Get("serverid").(int), Servername: d.Get("servername").(string), Servicegroupname: d.Get("servicegroupname").(string), State: d.Get("state").(string), - Weight: uint32(d.Get("weight").(int)), + Weight: d.Get("weight").(int), } err := client.UpdateUnnamedResource(service.Servicegroup_servicegroupmember_binding.Type(), &servicegroup_servicegroupmember_binding) diff --git a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go index ed9b5524a..8d099586f 100644 --- a/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_servicegroupmember_binding_test.go @@ -49,6 +49,9 @@ resource "citrixadc_servicegroup" "tf_servicegroup" { ` func TestAccServicegroup_servicegroupmember_binding_ipv4(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -94,6 +97,9 @@ resource "citrixadc_servicegroup" "tf_servicegroup" { ` func TestAccServicegroup_servicegroupmember_binding_ipv6(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -150,6 +156,9 @@ resource "citrixadc_server" "tf_server" { ` func TestAccServicegroup_servicegroupmember_binding_server_no_port(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -206,6 +215,9 @@ resource "citrixadc_server" "tf_server" { ` func TestAccServicegroup_servicegroupmember_binding_server_with_port(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_servicegroup_test.go b/citrixadc/resource_citrixadc_servicegroup_test.go index 22a469dc9..1a40426e6 100644 --- a/citrixadc/resource_citrixadc_servicegroup_test.go +++ b/citrixadc/resource_citrixadc_servicegroup_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccServicegroup_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -134,6 +137,9 @@ resource "citrixadc_servicegroup" "foo" { ` func TestAccServicegroup_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") @@ -213,6 +219,9 @@ resource "citrixadc_servicegroup" "tf_enable_disable_test_svcgroup" { ` func TestAccServicegroup_enable_disable(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_sslaction_test.go b/citrixadc/resource_citrixadc_sslaction_test.go index 89424c841..60a7c1dfb 100644 --- a/citrixadc/resource_citrixadc_sslaction_test.go +++ b/citrixadc/resource_citrixadc_sslaction_test.go @@ -40,7 +40,9 @@ const testAccSslaction_check_forcenew = ` ` func TestAccSslaction_basic(t *testing.T) { - // TODO: Configure circleci to run against CPX13 + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if isCpxRun { t.Skip("sslaction clientcertverification attribute not supported in CPX12") } diff --git a/citrixadc/resource_citrixadc_sslcertkey.go b/citrixadc/resource_citrixadc_sslcertkey.go index f276f5b4a..05da03025 100644 --- a/citrixadc/resource_citrixadc_sslcertkey.go +++ b/citrixadc/resource_citrixadc_sslcertkey.go @@ -131,7 +131,7 @@ func createSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { // Nodomaincheck is not an object attribute but a flag for the change operation // of the resource Nodomaincheck: false, - Notificationperiod: uint32(d.Get("notificationperiod").(int)), + Notificationperiod: d.Get("notificationperiod").(int), Ocspstaplingcache: d.Get("ocspstaplingcache").(bool), Passplain: d.Get("passplain").(string), Password: d.Get("password").(bool), @@ -214,7 +214,7 @@ func updateSslcertkeyFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("notificationperiod") { log.Printf("[DEBUG] netscaler-provider: Notificationperiod has changed for sslcertkey %s, starting update", sslcertkeyName) - sslcertkeyUpdate.Notificationperiod = uint32(d.Get("notificationperiod").(int)) + sslcertkeyUpdate.Notificationperiod = d.Get("notificationperiod").(int) hasUpdate = true } if d.HasChange("cert") { diff --git a/citrixadc/resource_citrixadc_sslcertkey_test.go b/citrixadc/resource_citrixadc_sslcertkey_test.go index 6e5a16b1e..39a1f0fe7 100644 --- a/citrixadc/resource_citrixadc_sslcertkey_test.go +++ b/citrixadc/resource_citrixadc_sslcertkey_test.go @@ -27,6 +27,9 @@ import ( ) func TestAccSslcertkey_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doSslcertkeyPreChecks(t) }, Providers: testAccProviders, @@ -146,6 +149,9 @@ resource "citrixadc_sslcertkey" "foo" { ` func TestAccSslcertkey_linkcert(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { doSslcertkeyPreChecks(t) }, Providers: testAccProviders, @@ -273,6 +279,9 @@ resource "citrixadc_sslcertkey" "intermediate" { ` func TestAccSslcertkey_AssertNonUpdateableAttributes(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } if tfAcc := os.Getenv("TF_ACC"); tfAcc == "" { t.Skip("TF_ACC not set. Skipping acceptance test.") diff --git a/citrixadc/resource_citrixadc_sslcipher.go b/citrixadc/resource_citrixadc_sslcipher.go index 9309d0d32..06f862de4 100644 --- a/citrixadc/resource_citrixadc_sslcipher.go +++ b/citrixadc/resource_citrixadc_sslcipher.go @@ -155,7 +155,7 @@ func getSortedCipherBindigs(unsortedCipherBindings *schema.Set) cipherPriorities for _, v := range unsortedCipherBindings.List() { val := v.(map[string]interface{}) ciphername := val["ciphername"].(string) - cipherpriority := val["cipherpriority"].(uint32) + cipherpriority := uint32(val["cipherpriority"].(int)) cipher := cipherPriority{ cipherName: ciphername, cipherPriority: cipherpriority, diff --git a/citrixadc/resource_citrixadc_sslcipher_test.go b/citrixadc/resource_citrixadc_sslcipher_test.go index 0352e59d0..14174dd82 100644 --- a/citrixadc/resource_citrixadc_sslcipher_test.go +++ b/citrixadc/resource_citrixadc_sslcipher_test.go @@ -82,6 +82,9 @@ const testAccSslcipher_update = ` ` func TestAccSslcipher_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_ssldhparam.go b/citrixadc/resource_citrixadc_ssldhparam.go index cd5abd47f..c3b155b41 100644 --- a/citrixadc/resource_citrixadc_ssldhparam.go +++ b/citrixadc/resource_citrixadc_ssldhparam.go @@ -42,7 +42,7 @@ func createSsldhparamFunc(d *schema.ResourceData, meta interface{}) error { ssldhparamName := d.Get("dhfile").(string) ssldhparam := ssl.Ssldhparam{ - Bits: uint32(d.Get("bits").(int)), + Bits: d.Get("bits").(int), Dhfile: ssldhparamName, Gen: d.Get("gen").(string), } diff --git a/citrixadc/resource_citrixadc_ssldhparam_test.go b/citrixadc/resource_citrixadc_ssldhparam_test.go index ad9def573..91dea1749 100644 --- a/citrixadc/resource_citrixadc_ssldhparam_test.go +++ b/citrixadc/resource_citrixadc_ssldhparam_test.go @@ -30,6 +30,9 @@ const testAccSsldhparam_create = ` ` func TestAccSsldhparam_create(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_sslparameter.go b/citrixadc/resource_citrixadc_sslparameter.go index 33d23799a..2e5e6cb0a 100644 --- a/citrixadc/resource_citrixadc_sslparameter.go +++ b/citrixadc/resource_citrixadc_sslparameter.go @@ -155,27 +155,27 @@ func createSslparameterFunc(d *schema.ResourceData, meta interface{}) error { sslparameterName = resource.PrefixedUniqueId("tf-sslparameter-") sslparameter := ssl.Sslparameter{ - Crlmemorysizemb: uint32(d.Get("crlmemorysizemb").(int)), - Cryptodevdisablelimit: uint32(d.Get("cryptodevdisablelimit").(int)), + Crlmemorysizemb: d.Get("crlmemorysizemb").(int), + Cryptodevdisablelimit: d.Get("cryptodevdisablelimit").(int), Defaultprofile: d.Get("defaultprofile").(string), Denysslreneg: d.Get("denysslreneg").(string), Dropreqwithnohostheader: d.Get("dropreqwithnohostheader").(string), - Encrypttriggerpktcount: uint32(d.Get("encrypttriggerpktcount").(int)), + Encrypttriggerpktcount: d.Get("encrypttriggerpktcount").(int), Heterogeneoussslhw: d.Get("heterogeneoussslhw").(string), Hybridfipsmode: d.Get("hybridfipsmode").(string), Insertcertspace: d.Get("insertcertspace").(string), Insertionencoding: d.Get("insertionencoding").(string), Ndcppcompliancecertcheck: d.Get("ndcppcompliancecertcheck").(string), - Ocspcachesize: uint32(d.Get("ocspcachesize").(int)), - Pushenctriggertimeout: uint32(d.Get("pushenctriggertimeout").(int)), - Pushflag: uint32(d.Get("pushflag").(int)), + Ocspcachesize: d.Get("ocspcachesize").(int), + Pushenctriggertimeout: d.Get("pushenctriggertimeout").(int), + Pushflag: d.Get("pushflag").(int), Quantumsize: d.Get("quantumsize").(string), Sendclosenotify: d.Get("sendclosenotify").(string), Snihttphostmatch: d.Get("snihttphostmatch").(string), - Softwarecryptothreshold: uint32(d.Get("softwarecryptothreshold").(int)), + Softwarecryptothreshold: d.Get("softwarecryptothreshold").(int), Sslierrorcache: d.Get("sslierrorcache").(string), - Sslimaxerrorcachemem: uint32(d.Get("sslimaxerrorcachemem").(int)), - Ssltriggertimeout: uint32(d.Get("ssltriggertimeout").(int)), + Sslimaxerrorcachemem: d.Get("sslimaxerrorcachemem").(int), + Ssltriggertimeout: d.Get("ssltriggertimeout").(int), Strictcachecks: d.Get("strictcachecks").(string), Undefactioncontrol: d.Get("undefactioncontrol").(string), Undefactiondata: d.Get("undefactiondata").(string), @@ -243,12 +243,12 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { hasChange := false if d.HasChange("crlmemorysizemb") { log.Printf("[DEBUG] citrixadc-provider: Crlmemorysizemb has changed for sslparameter, starting update") - sslparameter.Crlmemorysizemb = uint32(d.Get("crlmemorysizemb").(int)) + sslparameter.Crlmemorysizemb = d.Get("crlmemorysizemb").(int) hasChange = true } if d.HasChange("cryptodevdisablelimit") { log.Printf("[DEBUG] citrixadc-provider: Cryptodevdisablelimit has changed for sslparameter, starting update") - sslparameter.Cryptodevdisablelimit = uint32(d.Get("cryptodevdisablelimit").(int)) + sslparameter.Cryptodevdisablelimit = d.Get("cryptodevdisablelimit").(int) hasChange = true } if d.HasChange("defaultprofile") { @@ -268,7 +268,7 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("encrypttriggerpktcount") { log.Printf("[DEBUG] citrixadc-provider: Encrypttriggerpktcount has changed for sslparameter, starting update") - sslparameter.Encrypttriggerpktcount = uint32(d.Get("encrypttriggerpktcount").(int)) + sslparameter.Encrypttriggerpktcount = d.Get("encrypttriggerpktcount").(int) hasChange = true } if d.HasChange("heterogeneoussslhw") { @@ -298,17 +298,17 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("ocspcachesize") { log.Printf("[DEBUG] citrixadc-provider: Ocspcachesize has changed for sslparameter, starting update") - sslparameter.Ocspcachesize = uint32(d.Get("ocspcachesize").(int)) + sslparameter.Ocspcachesize = d.Get("ocspcachesize").(int) hasChange = true } if d.HasChange("pushenctriggertimeout") { log.Printf("[DEBUG] citrixadc-provider: Pushenctriggertimeout has changed for sslparameter, starting update") - sslparameter.Pushenctriggertimeout = uint32(d.Get("pushenctriggertimeout").(int)) + sslparameter.Pushenctriggertimeout = d.Get("pushenctriggertimeout").(int) hasChange = true } if d.HasChange("pushflag") { log.Printf("[DEBUG] citrixadc-provider: Pushflag has changed for sslparameter, starting update") - sslparameter.Pushflag = uint32(d.Get("pushflag").(int)) + sslparameter.Pushflag = d.Get("pushflag").(int) hasChange = true } if d.HasChange("quantumsize") { @@ -328,7 +328,7 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("softwarecryptothreshold") { log.Printf("[DEBUG] citrixadc-provider: Softwarecryptothreshold has changed for sslparameter, starting update") - sslparameter.Softwarecryptothreshold = uint32(d.Get("softwarecryptothreshold").(int)) + sslparameter.Softwarecryptothreshold = d.Get("softwarecryptothreshold").(int) hasChange = true } if d.HasChange("sslierrorcache") { @@ -338,12 +338,12 @@ func updateSslparameterFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("sslimaxerrorcachemem") { log.Printf("[DEBUG] citrixadc-provider: Sslimaxerrorcachemem has changed for sslparameter, starting update") - sslparameter.Sslimaxerrorcachemem = uint32(d.Get("sslimaxerrorcachemem").(int)) + sslparameter.Sslimaxerrorcachemem = d.Get("sslimaxerrorcachemem").(int) hasChange = true } if d.HasChange("ssltriggertimeout") { log.Printf("[DEBUG] citrixadc-provider: Ssltriggertimeout has changed for sslparameter, starting update") - sslparameter.Ssltriggertimeout = uint32(d.Get("ssltriggertimeout").(int)) + sslparameter.Ssltriggertimeout = d.Get("ssltriggertimeout").(int) hasChange = true } if d.HasChange("strictcachecks") { diff --git a/citrixadc/resource_citrixadc_sslparameter_test.go b/citrixadc/resource_citrixadc_sslparameter_test.go index 5e2ad3cb7..caa8e1697 100644 --- a/citrixadc/resource_citrixadc_sslparameter_test.go +++ b/citrixadc/resource_citrixadc_sslparameter_test.go @@ -38,8 +38,8 @@ const testAccSslparameter_basic_update = ` ` func TestAccSslparameter_basic(t *testing.T) { - if isCpxRun { - t.Skip("sslparameter failing in CPX12.0. Skipping for now!") + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/citrixadc/resource_citrixadc_sslpolicy_test.go b/citrixadc/resource_citrixadc_sslpolicy_test.go index bbdf1abc7..e3f22f482 100644 --- a/citrixadc/resource_citrixadc_sslpolicy_test.go +++ b/citrixadc/resource_citrixadc_sslpolicy_test.go @@ -53,9 +53,8 @@ const testAccSslpolicy_update = ` ` func TestAccSslpolicy_basic(t *testing.T) { - // TODO: Configure circleci to run against CPX13 - if isCpxRun { - t.Skip("sslaction clientcertverification attribute not supported in CPX12") + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, diff --git a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go index ced113080..159b26982 100644 --- a/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go +++ b/citrixadc/resource_citrixadc_sslprofile_sslcipher_binding_test.go @@ -26,9 +26,8 @@ import ( ) func TestAccSslprofile_sslcipher_binding_basic(t *testing.T) { - - if isCpxRun { - t.Skip("Operation not permitted under CPX") + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) } resource.Test(t, resource.TestCase{ diff --git a/citrixadc/resource_citrixadc_sslprofile_test.go b/citrixadc/resource_citrixadc_sslprofile_test.go index 599d7dba8..83be541f8 100644 --- a/citrixadc/resource_citrixadc_sslprofile_test.go +++ b/citrixadc/resource_citrixadc_sslprofile_test.go @@ -39,6 +39,9 @@ const testAccSslprofile_update = ` ` func TestAccSslprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -77,8 +80,8 @@ const testAccSslprofile_ecccurvebinding_unbind = ` ` func TestAccSslprofile_ecccurve_binding(t *testing.T) { - if isCpxRun { - t.Skip("Operation not permitted under CPX") + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -121,9 +124,8 @@ const testAccSslprofile_cipherbinding_unbind = ` ` func TestAccSslprofile_cipher_binding(t *testing.T) { - - if isCpxRun { - t.Skip("Operation not permitted under CPX") + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) } resource.Test(t, resource.TestCase{ diff --git a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go index 9e96bf318..d3181075e 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslcertkey_binding_test.go @@ -200,6 +200,9 @@ resource "citrixadc_sslvserver_sslcertkey_binding" "tf_binding" { ` func TestAccSslvserver_sslcertkey_binding_lb(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -228,6 +231,9 @@ func TestAccSslvserver_sslcertkey_binding_lb(t *testing.T) { } func TestAccSslvserver_sslcertkey_binding_cs(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go index 95f9ee15c..ed64c46b2 100644 --- a/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go +++ b/citrixadc/resource_citrixadc_sslvserver_sslpolicy_binding_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccSslvserver_sslpolicy_binding_lbvserver(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -48,6 +51,9 @@ func TestAccSslvserver_sslpolicy_binding_lbvserver(t *testing.T) { } func TestAccSslvserver_sslpolicy_binding_csvserver(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_systemcmdpolicy_test.go b/citrixadc/resource_citrixadc_systemcmdpolicy_test.go index bf170cece..1c1c46352 100644 --- a/citrixadc/resource_citrixadc_systemcmdpolicy_test.go +++ b/citrixadc/resource_citrixadc_systemcmdpolicy_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccSystemcmdpolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_systemextramgmtcpu_test.go b/citrixadc/resource_citrixadc_systemextramgmtcpu_test.go index 454c61b83..75a14ad53 100644 --- a/citrixadc/resource_citrixadc_systemextramgmtcpu_test.go +++ b/citrixadc/resource_citrixadc_systemextramgmtcpu_test.go @@ -17,12 +17,16 @@ package citrixadc import ( "fmt" + "testing" + "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "testing" ) func TestAccSystemextramgmtcpu_basic(t *testing.T) { + if adcTestbed != "STANDALONE_12CORES" { + t.Skipf("ADC testbed is %s. Expected STANDALONE_12CORES.", adcTestbed) + } if isCpxRun { t.Skip("CPX does not support the feature") // TODO actually we need a VPX with 12 cores licensed to test this resource diff --git a/citrixadc/resource_citrixadc_systemfile_test.go b/citrixadc/resource_citrixadc_systemfile_test.go index 08af19eb0..82c923d24 100644 --- a/citrixadc/resource_citrixadc_systemfile_test.go +++ b/citrixadc/resource_citrixadc_systemfile_test.go @@ -26,6 +26,9 @@ import ( ) func TestAccSystemfile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_systemgroup.go b/citrixadc/resource_citrixadc_systemgroup.go index bc4d304b5..b60bc097d 100644 --- a/citrixadc/resource_citrixadc_systemgroup.go +++ b/citrixadc/resource_citrixadc_systemgroup.go @@ -76,7 +76,7 @@ func createSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { systemgroup := system.Systemgroup{ Groupname: d.Get("groupname").(string), Promptstring: d.Get("promptstring").(string), - Timeout: uint64(d.Get("timeout").(int)), + Timeout: d.Get("timeout").(int), } _, err := client.AddResource(service.Systemgroup.Type(), systemgroupName, &systemgroup) @@ -151,7 +151,7 @@ func updateSystemgroupFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] citrixadc-provider: Timeout has changed for systemgroup %s, starting update", systemgroupName) - systemgroup.Timeout = uint64(d.Get("timeout").(int)) + systemgroup.Timeout = d.Get("timeout").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_systemgroup_test.go b/citrixadc/resource_citrixadc_systemgroup_test.go index 05cc27cd3..0e514f616 100644 --- a/citrixadc/resource_citrixadc_systemgroup_test.go +++ b/citrixadc/resource_citrixadc_systemgroup_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccSystemgroup_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_systemuser.go b/citrixadc/resource_citrixadc_systemuser.go index 9aefe2322..5d7b078a2 100644 --- a/citrixadc/resource_citrixadc_systemuser.go +++ b/citrixadc/resource_citrixadc_systemuser.go @@ -98,10 +98,10 @@ func createSystemuserFunc(d *schema.ResourceData, meta interface{}) error { systemuser := system.Systemuser{ Externalauth: d.Get("externalauth").(string), Logging: d.Get("logging").(string), - Maxsession: uint32(d.Get("maxsession").(int)), + Maxsession: d.Get("maxsession").(int), Password: d.Get("password").(string), Promptstring: d.Get("promptstring").(string), - Timeout: uint64(d.Get("timeout").(int)), + Timeout: d.Get("timeout").(int), Username: username, } @@ -189,7 +189,7 @@ func updateSystemuserFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("maxsession") { log.Printf("[DEBUG] citrixadc-provider: Maxsession has changed for systemuser %s, starting update", systemuserName) - systemuser.Maxsession = uint32(d.Get("maxsession").(int)) + systemuser.Maxsession = d.Get("maxsession").(int) hasChange = true } if d.HasChange("password") { @@ -204,7 +204,7 @@ func updateSystemuserFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("timeout") { log.Printf("[DEBUG] citrixadc-provider: Timeout has changed for systemuser %s, starting update", systemuserName) - systemuser.Timeout = uint64(d.Get("timeout").(int)) + systemuser.Timeout = d.Get("timeout").(int) hasChange = true } diff --git a/citrixadc/resource_citrixadc_systemuser_test.go b/citrixadc/resource_citrixadc_systemuser_test.go index bd7cbfb0c..a5f3535ea 100644 --- a/citrixadc/resource_citrixadc_systemuser_test.go +++ b/citrixadc/resource_citrixadc_systemuser_test.go @@ -25,6 +25,9 @@ import ( ) func TestAccSystemuser_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_transformaction.go b/citrixadc/resource_citrixadc_transformaction.go index af6ca4887..fc0b268c4 100644 --- a/citrixadc/resource_citrixadc_transformaction.go +++ b/citrixadc/resource_citrixadc_transformaction.go @@ -89,7 +89,7 @@ func createTransformactionFunc(d *schema.ResourceData, meta interface{}) error { // Create does not support all attributes transformactionNew := transform.Transformaction{ Name: d.Get("name").(string), - Priority: uint32(d.Get("priority").(int)), + Priority: d.Get("priority").(int), Profilename: d.Get("profilename").(string), State: d.Get("state").(string), } @@ -105,7 +105,7 @@ func createTransformactionFunc(d *schema.ResourceData, meta interface{}) error { Cookiedomainfrom: d.Get("cookiedomainfrom").(string), Cookiedomaininto: d.Get("cookiedomaininto").(string), Name: d.Get("name").(string), - Priority: uint32(d.Get("priority").(int)), + Priority: d.Get("priority").(int), Requrlfrom: d.Get("requrlfrom").(string), Requrlinto: d.Get("requrlinto").(string), Resurlfrom: d.Get("resurlfrom").(string), @@ -187,7 +187,7 @@ func updateTransformactionFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("priority") { log.Printf("[DEBUG] citrixadc-provider: Priority has changed for transformaction %s, starting update", transformactionName) - transformaction.Priority = uint32(d.Get("priority").(int)) + transformaction.Priority = d.Get("priority").(int) hasChange = true } if d.HasChange("profilename") { diff --git a/citrixadc/resource_citrixadc_transformaction_test.go b/citrixadc/resource_citrixadc_transformaction_test.go index 47ed3c3c4..cf248daf5 100644 --- a/citrixadc/resource_citrixadc_transformaction_test.go +++ b/citrixadc/resource_citrixadc_transformaction_test.go @@ -85,6 +85,9 @@ resource "citrixadc_transformaction" "tf_trans_action" { ` func TestAccTransformaction_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_transformpolicy_test.go b/citrixadc/resource_citrixadc_transformpolicy_test.go index 77a602a72..d5dc42b7a 100644 --- a/citrixadc/resource_citrixadc_transformpolicy_test.go +++ b/citrixadc/resource_citrixadc_transformpolicy_test.go @@ -57,6 +57,9 @@ resource "citrixadc_transformpolicy" "tf_trans_policy" { ` func TestAccTransformpolicy_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_transformprofile_test.go b/citrixadc/resource_citrixadc_transformprofile_test.go index cf376cf90..aa70c4588 100644 --- a/citrixadc/resource_citrixadc_transformprofile_test.go +++ b/citrixadc/resource_citrixadc_transformprofile_test.go @@ -47,6 +47,9 @@ resource "citrixadc_transformprofile" "tf_trans_profile" { ` func TestAccTransformprofile_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -69,6 +72,9 @@ func TestAccTransformprofile_basic(t *testing.T) { } func TestAccTransformprofile_lean(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/resource_citrixadc_vlan.go b/citrixadc/resource_citrixadc_vlan.go index d9fbf791d..17530ce0c 100644 --- a/citrixadc/resource_citrixadc_vlan.go +++ b/citrixadc/resource_citrixadc_vlan.go @@ -64,9 +64,9 @@ func createVlanFunc(d *schema.ResourceData, meta interface{}) error { vlan := network.Vlan{ Aliasname: d.Get("aliasname").(string), Dynamicrouting: d.Get("dynamicrouting").(string), - Id: uint32(d.Get("vlanid").(int)), + Id: d.Get("vlanid").(int), Ipv6dynamicrouting: d.Get("ipv6dynamicrouting").(string), - Mtu: uint32(d.Get("mtu").(int)), + Mtu: d.Get("mtu").(int), Sharing: d.Get("sharing").(string), } @@ -114,7 +114,7 @@ func updateVlanFunc(d *schema.ResourceData, meta interface{}) error { client := meta.(*NetScalerNitroClient).client vlanId := d.Get("vlanid").(int) vlan := network.Vlan{ - Id: uint32(d.Get("vlanid").(int)), + Id: d.Get("vlanid").(int), } hasChange := false if d.HasChange("aliasname") { @@ -134,7 +134,7 @@ func updateVlanFunc(d *schema.ResourceData, meta interface{}) error { } if d.HasChange("mtu") { log.Printf("[DEBUG] citrixadc-provider: Mtu has changed for vlan %d, starting update", vlanId) - vlan.Mtu = uint32(d.Get("mtu").(int)) + vlan.Mtu = d.Get("mtu").(int) hasChange = true } if d.HasChange("sharing") { diff --git a/citrixadc/resource_citrixadc_vlan_test.go b/citrixadc/resource_citrixadc_vlan_test.go index a9229bd94..916f84aa4 100644 --- a/citrixadc/resource_citrixadc_vlan_test.go +++ b/citrixadc/resource_citrixadc_vlan_test.go @@ -39,6 +39,9 @@ resource "citrixadc_vlan" "tf_vlan" { ` func TestAccVlan_basic(t *testing.T) { + if adcTestbed != "STANDALONE" { + t.Skipf("ADC testbed is %s. Expected STANDALONE.", adcTestbed) + } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, diff --git a/citrixadc/sslvserver_utils.go b/citrixadc/sslvserver_utils.go index 89c8d1dc7..064f5e032 100644 --- a/citrixadc/sslvserver_utils.go +++ b/citrixadc/sslvserver_utils.go @@ -414,13 +414,19 @@ func readSslpolicyBindings(d *schema.ResourceData, meta interface{}, sslvserverN processedBindingEntry := make(map[string]interface{}) processedBindingEntry["gotopriorityexpression"] = singleBinding["gotopriorityexpression"].(string) processedBindingEntry["invoke"] = singleBinding["invoke"].(bool) - processedBindingEntry["labelname"] = singleBinding["labelname"].(string) - processedBindingEntry["labeltype"] = singleBinding["labeltype"].(string) + if _, ok := singleBinding["labelname"]; ok { + processedBindingEntry["labelname"] = singleBinding["labelname"].(string) + } + if _, ok := singleBinding["labeltype"]; ok { + processedBindingEntry["labeltype"] = singleBinding["labeltype"].(string) + } processedBindingEntry["policyname"] = singleBinding["policyname"].(string) if processedBindingEntry["priority"], err = strconv.Atoi(singleBinding["priority"].(string)); err != nil { return err } - processedBindingEntry["type"] = singleBinding["type"].(string) + if _, ok := singleBinding["type"]; ok { + processedBindingEntry["type"] = singleBinding["type"].(string) + } processedBindings = append(processedBindings, processedBindingEntry) } From f4be7ed29fdccf18c806a607828caa4dd44f7b1b Mon Sep 17 00:00:00 2001 From: George Nikolopoulos Date: Tue, 6 Jul 2021 16:41:00 +0300 Subject: [PATCH 5/5] Update go.sum --- go.sum | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/go.sum b/go.sum index b7f42e53a..90ad93542 100644 --- a/go.sum +++ b/go.sum @@ -69,11 +69,11 @@ github.com/bmatcuk/doublestar v1.1.5 h1:2bNwBOmhyFEFcoB3tGvTD5xanq+4kyOZlB8wFYbM github.com/bmatcuk/doublestar v1.1.5/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= -github.com/chiradeep/go-nitro v0.0.0-20210415084059-355fec1cd7ac h1:YQlNG9pL3q2xMpz+7Cdv8gnhNUN5iRWuTT9cct020bE= -github.com/chiradeep/go-nitro v0.0.0-20210415084059-355fec1cd7ac/go.mod h1:RIyfAubyIck4tVaQrEiNGW4Y1e6CcTONDnYSX8VktH8= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/citrix/adc-nitro-go v0.0.0-20210706081452-0ff4869771a4 h1:fRZI2/P0fma04RFwT/dQuA+nitBuJG/GgBIzLtLum0s= +github.com/citrix/adc-nitro-go v0.0.0-20210706081452-0ff4869771a4/go.mod h1:1SPLFfIOtWnKiNWEuLhRqGrEi6VxGkXt4gpWa+mhaCg= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/bbolt v1.3.0/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= @@ -150,8 +150,9 @@ github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02 h1:l1KB3bHVd github.com/hashicorp/go-getter v1.4.2-0.20200106182914-9813cbd4eb02/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +github.com/hashicorp/go-hclog v0.16.1 h1:IVQwpTGNRRIHafnTs2dQLIk4ENtneRIEEJWOVDqz99o= +github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v0.0.0-20180129170900-7f3cd4390caa/go.mod h1:6ij3Z20p+OhOkCSrA0gImAWoHYQRGbnlcuk6XYTiaRw= github.com/hashicorp/go-msgpack v0.5.4/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= @@ -226,12 +227,15 @@ github.com/lusis/go-artifactory v0.0.0-20160115162124-7e4ce345df82/go.mod h1:y54 github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9/go.mod h1:kCEbxUJlNDEBNbdQMkPSp6yaKcRXVI6f4ddk8Riv4bc= github.com/masterzen/winrm v0.0.0-20190223112901-5e5c9a7fe54b/go.mod h1:wr1VqkwW0AB5JS0QLy5GpVMS9E3VtRoSYXUYyVk46KY= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.1 h1:G1f5SKeVxmagw/IyvzvtZE4Gybcc4Tr1tf7I8z0XgOg= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5 h1:tHXDdz1cpzGaovsTB+TVB8q90WEokoVmfMqoVcrLUgw= github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-shellwords v1.0.4/go.mod h1:3xCvwCdWdlDJUrvuMn7Wuy9eWs4pE8vqg+NOMyg4B2o= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= @@ -392,8 +396,9 @@ golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa h1:KIDDMLT1O0Nr7TSxp8xM5tJcdn8tgyAONntO829og1M= golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be h1:QAcqgptGM8IQBC9K/RC4o+O9YmqEm0diQn9QmZw/0mU= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/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=