Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Parsing (0.18 sec)

  1. cmd/api-errors.go

    	ErrInvalidServiceS3: {
    		Code:           "AuthorizationParametersError",
    		Description:    "Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\".",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidServiceSTS: {
    		Code:           "AuthorizationParametersError",
    		Description:    "Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\".",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  2. cmd/iam.go

    		// All actions are allowed by default and no policy evaluation is
    		// required.
    
    	case roleArn != "":
    		arn, err := arn.Parse(roleArn)
    		if err != nil {
    			iamLogIf(GlobalContext, fmt.Errorf("error parsing role ARN %s: %v", roleArn, err))
    			return false
    		}
    		svcPolicies = newMappedPolicy(sys.rolesMap[arn]).toSlice()
    
    	default:
    		// Check policy for parent user of service account.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. cmd/test-utils_test.go

    	if anonReq.Method != http.MethodHead {
    		// read the response body.
    		var actualContent []byte
    		actualContent, err = io.ReadAll(rec.Body)
    		if err != nil {
    			t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Failed parsing response body: <ERROR> %v", err)))
    		}
    
    		actualError := &APIErrorResponse{}
    		if err = xml.Unmarshal(actualContent, actualError); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    		case mrfMetaVersion:
    		default:
    			return re, fmt.Errorf("replication mrf: unknown version: %d", binary.LittleEndian.Uint16(data[2:4]))
    		}
    
    		// OK, parse data.
    		// ignore any parsing errors, we do not care this file is generated again anyways.
    		re.DecodeMsg(msgp.NewReader(rc))
    
    		return re, nil
    	}
    
    	globalLocalDrivesMu.RLock()
    	localDrives := cloneDrives(globalLocalDrives)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  5. cmd/site-replication.go

    		// To add the bucket replication rule, we fetch the current
    		// server configuration, and convert it to minio-go's
    		// replication configuration type (by converting to xml and
    		// parsing it back), use minio-go's add rule function, and
    		// finally convert it back to the server type (again via xml).
    		// This is needed as there is no add-rule function in the server
    		// yet.
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  6. internal/rest/client.go

    	if err != nil {
    		if xnet.IsNetworkOrHostDown(err, expectTimeouts) {
    			if !c.NoMetrics {
    				atomic.AddUint64(&globalStats.errs, 1)
    			}
    			if c.MarkOffline(err) {
    				logger.LogOnceIf(ctx, logSubsys, fmt.Errorf("Marking %s offline temporarily; caused by %w", c.url.Host, err), c.url.Host)
    			}
    		}
    		return nil, &NetworkError{err}
    	}
    
    	// If trace is enabled, dump http request and response,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  7. cmd/format-erasure.go

    					for j := 0; j < setDriveCount; j++ {
    						disk := storageDisks[i*setDriveCount+j]
    						logger.Info("   - Drive: %s", disk.String())
    					}
    				})
    				logger.Info(color.Yellow("WARNING:")+" Host %v has more than %v drives of set. "+
    					"A host failure will result in data becoming unavailable.", host, wantAtMost)
    			}
    		}
    	}
    
    	// Save formats `format.json` across all disks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  8. cmd/config-current.go

    		}
    
    		if len(globalDomainNames) != 0 && !globalDomainIPs.IsEmpty() && globalEtcdClient != nil {
    			if globalDNSConfig != nil {
    				// if global DNS is already configured, indicate with a warning, in case
    				// users are confused.
    				configLogIf(ctx, fmt.Errorf("DNS store is already configured with %s, etcd is not used for DNS store", globalDNSConfig))
    			} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  9. cmd/common-main.go

    			logger.Fatal(config.ErrInvalidCredentials(err),
    				"Unable to validate credentials inherited from the shell environment")
    		}
    		if env.IsSet(config.EnvAccessKey) && env.IsSet(config.EnvSecretKey) {
    			msg := fmt.Sprintf("WARNING: %s and %s are deprecated.\n"+
    				"         Please use %s and %s",
    				config.EnvAccessKey, config.EnvSecretKey,
    				config.EnvRootUser, config.EnvRootPassword)
    			logger.Info(color.RedBold(msg))
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  10. internal/config/identity/ldap/ldap.go

    	if dur < minLDAPExpiry || dur > maxLDAPExpiry {
    		return 0, auth.ErrInvalidDuration
    	}
    	return dur, nil
    }
    
    // ParsesAsDN determines if the given string could be a valid DN based on
    // parsing alone.
    func (l Config) ParsesAsDN(dn string) bool {
    	_, err := ldap.ParseDN(dn)
    	return err == nil
    }
    
    // IsLDAPUserDN determines if the given string could be a user DN from LDAP.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top