Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 114 for parsing (0.18 sec)

  1. src/archive/tar/strconv.go

    // appropriate length.
    func formatPAXRecord(k, v string) (string, error) {
    	if !validPAXRecord(k, v) {
    		return "", ErrHeader
    	}
    
    	const padding = 3 // Extra padding for ' ', '=', and '\n'
    	size := len(k) + len(v) + padding
    	size += len(strconv.Itoa(size))
    	record := strconv.Itoa(size) + " " + k + "=" + v + "\n"
    
    	// Final adjustment if adding size field increased the record size.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. cmd/streaming-signature-v4.go

    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
    //
    // returns signature, error otherwise if the signature mismatches or any other
    // error while parsing and validating.
    func calculateSeedSignature(r *http.Request, trailers bool) (cred auth.Credentials, signature string, region string, date time.Time, errCode APIErrorCode) {
    	// Copy request.
    	req := *r
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  3. istioctl/pkg/precheck/precheck.go

    		}
    		meshData := make(map[string]interface{})
    		if data, exists := configMap.Data["mesh"]; exists {
    			if err := yaml.Unmarshal([]byte(data), &meshData); err != nil {
    				fmt.Printf("Error parsing meshConfig: %v\n", err)
    				return err
    			}
    		}
    		if scopingImpacted = meshData["discoverySelectors"] != nil; !scopingImpacted {
    			continue
    		}
    		// Check if mitigation is already in place
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. internal/bucket/replication/replication_test.go

    				t.Fatalf("%d: Expected '%v' during parsing but got '%v'", i+1, tc.expectedParsingErr, err)
    			}
    			if err == nil && tc.expectedParsingErr != nil {
    				t.Fatalf("%d: Expected '%v' during parsing but got '%v'", i+1, tc.expectedParsingErr, err)
    			}
    			if tc.expectedParsingErr != nil {
    				// We already expect a parsing error,
    				// no need to continue this test.
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  5. internal/s3select/select.go

    		} else {
    			s3Select.recordReader = json.NewReader(s3Select.progressReader, &s3Select.Input.JSONArgs)
    		}
    
    		return nil
    	case parquetFormat:
    		if !parquetSupport {
    			return errors.New("parquet format parsing not enabled on server")
    		}
    		if offset != 0 || length != -1 {
    			// Offsets do not make sense in parquet files.
    			return errors.New("parquet format does not support offsets")
    		}
    		var err error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  6. internal/amztime/parse.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    // Package amztime implements AWS specific time parsing and deviations
    package amztime
    
    import (
    	"errors"
    	"net/http"
    	"time"
    )
    
    // Supported amz date formats.
    var amzDateFormats = []string{
    	// Do not change this order, x-amz-date format is usually in
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. cmd/api-datatypes.go

    	// ReplicateDecisionStr stringified representation of replication decision
    	ReplicateDecisionStr string `xml:"-"`
    }
    
    // createBucketConfiguration container for bucket configuration request from client.
    // Used for parsing the location from the request body for Makebucket.
    type createBucketLocationConfiguration struct {
    	XMLName  xml.Name `xml:"CreateBucketConfiguration" json:"-"`
    	Location string   `xml:"LocationConstraint"`
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. src/archive/tar/strconv_test.go

    	for _, v := range vectors {
    		var p parser
    		got := p.parseNumeric([]byte(v.in))
    		ok := (p.err == nil)
    		if ok != v.ok {
    			if v.ok {
    				t.Errorf("parseNumeric(%q): got parsing failure, want success", v.in)
    			} else {
    				t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in)
    			}
    		}
    		if ok && got != v.want {
    			t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  10. cmd/signature-v4-parser_test.go

    				t.Errorf("Test %d: Expected the result to be \"%v\", but got \"%v\". ", i+1, testCase.expectedSignedHeaders, actualSignedHeaders)
    			}
    		}
    
    	}
    }
    
    // TestParseSignV4 - Tests Parsing of v4 signature form the authorization string.
    func TestParseSignV4(t *testing.T) {
    	sampleTimeStr := UTCNow().Format(yyyymmdd)
    	testCases := []struct {
    		inputV4AuthStr    string
    		expectedAuthField signValues
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
Back to top