Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 249 for validi (2.6 sec)

  1. cmd/sftp-server.go

    				break
    			}
    		}
    		if !found {
    			logger.Fatal(fmt.Errorf("unknown algorithm %q passed to --sftp=%s\nValid algorithms: %v", algo, arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    		}
    	}
    	if len(filteredAlgos) == 0 {
    		logger.Fatal(fmt.Errorf("no valid algorithms passed to --sftp=%s\nValid algorithms: %v", arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    	}
    	return filteredAlgos
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. soft_delete.go

    func (n DeletedAt) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Time, nil
    }
    
    func (n DeletedAt) MarshalJSON() ([]byte, error) {
    	if n.Valid {
    		return json.Marshal(n.Time)
    	}
    	return json.Marshal(nil)
    }
    
    func (n *DeletedAt) UnmarshalJSON(b []byte) error {
    	if string(b) == "null" {
    		n.Valid = false
    		return nil
    	}
    	err := json.Unmarshal(b, &n.Time)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  3. internal/crypto/sse_test.go

    	}
    }
    
    var ssecUnsealObjectKeyTests = []struct {
    	Headers        http.Header
    	Bucket, Object string
    	Metadata       map[string]string
    
    	ExpectedErr error
    }{
    	{ // 0 - Valid HTTP headers and valid metadata entries for bucket/object
    		Headers: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{"AES256"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    			expectedOutput:    "Error: expecting a workload namespace\n",
    		},
    		{
    			description:       "valid case - minimal flags, infer defaults",
    			args:              strings.Split("group create --name foo --namespace bar", " "),
    			expectedException: false,
    			expectedOutput:    defaultYAML,
    		},
    		{
    			description: "valid case - create full workload group",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/compare/sds/writer.go

    	case TABULAR:
    		err = w.printSecretItemsTabular(secrets)
    	}
    	return err
    }
    
    var (
    	secretItemColumns = []string{"RESOURCE NAME", "TYPE", "STATUS", "VALID CERT", "SERIAL NUMBER", "NOT AFTER", "NOT BEFORE"}
    	secretDiffColumns = []string{"RESOURCE NAME", "TYPE", "VALID CERT", "NODE AGENT", "PROXY", "SERIAL NUMBER", "NOT AFTER", "NOT BEFORE"}
    )
    
    // printSecretItemsTabular prints the secret in table format
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  6. cmd/object-api-utils.go

    }
    
    // IsValidObjectPrefix verifies whether the prefix is a valid object name.
    // Its valid to have a empty prefix.
    func IsValidObjectPrefix(object string) bool {
    	if hasBadPathComponent(object) {
    		return false
    	}
    	if !utf8.ValidString(object) {
    		return false
    	}
    	if strings.Contains(object, `//`) {
    		return false
    	}
    	// This is valid for AWS S3 but it will never
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  7. migrator/index.go

    func (idx Index) PrimaryKey() (isPrimaryKey bool, ok bool) {
    	return idx.PrimaryKeyValue.Bool, idx.PrimaryKeyValue.Valid
    }
    
    // Unique returns whether the index is unique or not.
    func (idx Index) Unique() (unique bool, ok bool) {
    	return idx.UniqueValue.Bool, idx.UniqueValue.Valid
    }
    
    // Option return the optional attribute of the index
    func (idx Index) Option() string {
    	return idx.OptionValue
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Apr 11 02:32:46 GMT 2023
    - 1023 bytes
    - Viewed (0)
  8. cmd/bucket-policy.go

    	if err != nil {
    		// This should not happen because bucketPolicy is valid to convert to JSON data.
    		return nil, err
    	}
    
    	var policyInfo miniogopolicy.BucketAccessPolicy
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(data, &policyInfo); err != nil {
    		// This should not happen because data is valid to JSON data.
    		return nil, err
    	}
    
    	return &policyInfo, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. cmd/erasure-healing-common_test.go

    				nil, nil, nil, nil, nil, nil, nil, nil,
    			},
    			_tamperBackend: noTamper,
    		},
    		{
    			modTimes:     modTimesThreeNone,
    			expectedTime: threeNanoSecs,
    			errs: []error{
    				// Disks that have a valid xl.meta.
    				nil, nil, nil, nil, nil, nil, nil, nil,
    				nil, nil, nil, nil, nil,
    				// Some disks can't access xl.meta.
    				errFileNotFound, errDiskAccessDenied, errDiskNotFound,
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  10. src/archive/zip/reader.go

    	if b.uint32() != 0 { // number of the disk with the start of the zip64 end of central directory
    		return -1, nil // the file is not a valid zip64-file
    	}
    	p := b.uint64()      // relative offset of the zip64 end of central directory record
    	if b.uint32() != 1 { // total number of disks
    		return -1, nil // the file is not a valid zip64-file
    	}
    	return int64(p), nil
    }
    
    // readDirectory64End reads the zip64 directory end and updates the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top