Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 2,083 for perror (0.07 sec)

  1. internal/kms/config.go

    //
    // It returns an error if connecting to the KMS implementation fails,
    // e.g. due to incomplete config, or when configurations for multiple
    // KMS implementations are present.
    func Connect(ctx context.Context, opts *ConnectionOptions) (*KMS, error) {
    	if present, err := IsPresent(); !present || err != nil {
    		if err != nil {
    			return nil, err
    		}
    		return nil, errors.New("kms: no KMS configuration specified")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. docs/debugging/reorder-disks/main.go

    	}
    
    	if err := scanner.Err(); err != nil {
    		return nil, err
    	}
    
    	return result, nil
    }
    
    func getDiskUUIDMap() (map[string]string, error) {
    	result := make(map[string]string)
    	err := filepath.Walk("/dev/disk/by-uuid/",
    		func(path string, info os.FileInfo, err error) error {
    			if err != nil {
    				return err
    			}
    			realPath, err := filepath.EvalSymlinks(path)
    			if err != nil {
    				return err
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. internal/event/target/nats.go

    		}
    	}
    
    	if connErr != nil {
    		if connErr.Error() == nats.ErrNoServers.Error() {
    			return false, store.ErrNotConnected
    		}
    		return false, connErr
    	}
    
    	if target.natsConn != nil && target.args.JetStream.Enable {
    		target.jstream, connErr = target.natsConn.JetStream()
    		if connErr != nil {
    			if connErr.Error() == nats.ErrNoServers.Error() {
    				return false, store.ErrNotConnected
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. internal/event/target/mqtt.go

    func (target *MQTTTarget) Close() error {
    	if target.client != nil {
    		target.client.Disconnect(100)
    	}
    	close(target.quitCh)
    	return nil
    }
    
    func (target *MQTTTarget) init() error {
    	return target.initOnce.Do(target.initMQTT)
    }
    
    func (target *MQTTTarget) initMQTT() error {
    	args := target.args
    
    	// Using hex here, to make sure we avoid 23
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. internal/event/target/kafka.go

    // Validate KafkaArgs fields
    func (k KafkaArgs) Validate() error {
    	if !k.Enable {
    		return nil
    	}
    	if len(k.Brokers) == 0 {
    		return errors.New("no broker address found")
    	}
    	for _, b := range k.Brokers {
    		if _, err := xnet.ParseHost(b.String()); err != nil {
    			return err
    		}
    	}
    	if k.QueueDir != "" {
    		if !filepath.IsAbs(k.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    	saveUserIdentity(ctx context.Context, name string, userType IAMUserType, u UserIdentity, opts ...options) error
    	saveGroupInfo(ctx context.Context, group string, gi GroupInfo) error
    	deletePolicyDoc(ctx context.Context, policyName string) error
    	deleteMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool) error
    	deleteUserIdentity(ctx context.Context, name string, userType IAMUserType) error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  7. internal/etag/etag.go

    // FromContentMD5 decodes and returns the Content-MD5
    // as ETag, if set. If no Content-MD5 header is set
    // it returns an empty ETag and no error.
    func FromContentMD5(h http.Header) (ETag, error) {
    	v, ok := h["Content-Md5"]
    	if !ok {
    		return nil, nil
    	}
    	if v[0] == "" {
    		return nil, errors.New("etag: content-md5 is set but contains no value")
    	}
    	b, err := base64.StdEncoding.Strict().DecodeString(v[0])
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. cmd/bucket-metadata.go

    	return loadBucketMetadataParse(ctx, objectAPI, bucket, true)
    }
    
    // parseAllConfigs will parse all configs and populate the private fields.
    // The first error encountered is returned.
    func (b *BucketMetadata) parseAllConfigs(ctx context.Context, objectAPI ObjectLayer) (err error) {
    	if len(b.PolicyConfigJSON) != 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. cmd/object-api-putobject_test.go

    			if testCase.expectedError.Error() != actualErr.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead.", i+1,
    					instanceType, testCase.expectedError.Error(), actualErr.Error())
    			}
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    		if actualErr == nil && testCase.shouldPass {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. cmd/bucket-handlers_test.go

    		}
    		if errorResponse.Resource != testCase.errorResponse.Resource {
    			t.Errorf("Test %d: %s: Expected the error resource to be `%s`, but instead found `%s`", i+1, instanceType, testCase.errorResponse.Resource, errorResponse.Resource)
    		}
    		if errorResponse.Message != testCase.errorResponse.Message {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top