Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for eslint (0.2 sec)

  1. internal/bucket/object/lock/lock_test.go

    		},
    	}
    	for _, tt := range tests {
    		d, err := xml.MarshalIndent(&tt.value, "", "\t")
    		if err != nil {
    			t.Fatal(err)
    		}
    		var dr DefaultRetention
    		err = xml.Unmarshal(d, &dr)
    		//nolint:gocritic
    		if tt.expectedErr == nil {
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		} else if err == nil {
    			t.Fatalf("error: expected = %v, got = <nil>", tt.expectedErr)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/config/identity/openid/provider/provider.go

    package provider
    
    import "errors"
    
    // DiscoveryDoc - parses the output from openid-configuration
    // for example https://accounts.google.com/.well-known/openid-configuration
    //
    //nolint:unused
    type DiscoveryDoc struct {
    	Issuer                           string   `json:"issuer,omitempty"`
    	AuthEndpoint                     string   `json:"authorization_endpoint,omitempty"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. internal/config/certsinfo.go

    // things as its common name and locality.
    func printName(names []pkix.AttributeTypeAndValue, buf *strings.Builder) []string {
    	values := []string{}
    	for _, name := range names {
    		oid := name.Type
    		//nolint:gocritic
    		if len(oid) == 4 && oid[0] == 2 && oid[1] == 5 && oid[2] == 4 {
    			switch oid[3] {
    			case 3:
    				values = append(values, fmt.Sprintf("CN=%s", name.Value))
    			case 6:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  4. operator/cmd/mesh/install.go

    		Short:   "Applies an Istio manifest, installing or reconfiguring Istio on a cluster.",
    		Long:    "The install command generates an Istio install manifest and applies it to a cluster.",
    		Aliases: []string{"apply"},
    		// nolint: lll
    		Example: `  # Apply a default Istio installation
      istioctl install
    
      # Enable Tracing
      istioctl install --set meshConfig.enableTracing=true
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    				return nil, nil, err
    			}
    		}
    	}
    
    	injector := &ExternalInjector{}
    	if injectConfigFile != "" {
    		injectionConfig, err := os.ReadFile(injectConfigFile) // nolint: vetshadow
    		if err != nil {
    			return nil, nil, err
    		}
    		injectConfig, err := readInjectConfigFile(injectionConfig)
    		if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. internal/config/identity/openid/jwks_test.go

    	for ii, jks := range jk.Keys {
    		var err error
    		keys[ii], err = jks.DecodePublicKey()
    		if err != nil {
    			t.Fatalf("Failed to decode key %d: %v", ii, err)
    		}
    	}
    
    	//nolint:gocritic
    	if key0, ok := keys[0].(*ecdsa.PublicKey); !ok {
    		t.Fatalf("Expected ECDSA key[0], got %T", keys[0])
    	} else if key1, ok := keys[1].(*rsa.PublicKey); !ok {
    		t.Fatalf("Expected RSA key[1], got %T", keys[1])
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 9.8K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate.go

    				defaultNamespace = metav1.NamespaceDefault
    			}
    			obj.Namespace = defaultNamespace
    		}
    
    		warnings, err := schema.ValidateConfig(*obj)
    		return warnings, err
    	}
    
    	var errs error
    	if un.IsList() {
    		_ = un.EachListItem(func(item runtime.Object) error {
    			castItem := item.(*unstructured.Unstructured)
    			if castItem.GetKind() == name.ServiceStr {
    				err := v.validateServicePortPrefix(istioNamespace, castItem)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock.go

    		return fmt.Errorf("either Days or Years must be specified")
    	}
    
    	if retention.Days != nil && retention.Years != nil {
    		return fmt.Errorf("either Days or Years must be specified, not both")
    	}
    
    	//nolint:gocritic
    	if retention.Days != nil {
    		if *retention.Days == 0 {
    			return fmt.Errorf("Default retention period must be a positive integer value for 'Days'")
    		}
    		if *retention.Days > maximumRetentionDays {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    func getServerInfo(ctx context.Context, pools, metrics bool, r *http.Request) madmin.InfoMessage {
    	ldap := madmin.LDAP{}
    	if globalIAMSys.LDAPConfig.Enabled() {
    		ldapConn, err := globalIAMSys.LDAPConfig.LDAP.Connect()
    		//nolint:gocritic
    		if err != nil {
    			ldap.Status = string(madmin.ItemOffline)
    		} else if ldapConn == nil {
    			ldap.Status = "Not Configured"
    		} else {
    			// Close ldap connection to avoid leaks.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  10. cni/pkg/plugin/plugin.go

    type K8sArgs struct {
    	types.CommonArgs
    	K8S_POD_NAME               types.UnmarshallableString // nolint: revive, stylecheck
    	K8S_POD_NAMESPACE          types.UnmarshallableString // nolint: revive, stylecheck
    	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString // nolint: revive, stylecheck
    }
    
    // parseConfig parses the supplied configuration (and prevResult) from stdin.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top