Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 955 for prefix (0.19 sec)

  1. internal/bucket/lifecycle/prefix.go

    package lifecycle
    
    import (
    	"encoding/xml"
    )
    
    // Prefix holds the prefix xml tag in <Rule> and <Filter>
    type Prefix struct {
    	string
    	set    bool
    	Unused struct{} // Needed for GOB compatibility
    }
    
    // UnmarshalXML - decodes XML data.
    func (p *Prefix) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	var s string
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 15 14:45:25 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. tests/test_deprecated_openapi_prefix.py

    from fastapi import FastAPI, Request
    from fastapi.testclient import TestClient
    
    app = FastAPI(openapi_prefix="/api/v1")
    
    
    @app.get("/app")
    def read_main(request: Request):
        return {"message": "Hello World", "root_path": request.scope.get("root_path")}
    
    
    client = TestClient(app)
    
    
    def test_main():
        response = client.get("/app")
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  3. tests/test_router_prefix_with_template.py

    app = FastAPI()
    
    router = APIRouter()
    
    
    @router.get("/users/{id}")
    def read_user(segment: str, id: str):
        return {"segment": segment, "id": id}
    
    
    app.include_router(router, prefix="/{segment}")
    
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/seg/users/foo")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 484 bytes
    - Viewed (0)
  4. internal/bucket/versioning/versioning.go

    	if prefix == "" {
    		return true
    	}
    	if v.ExcludeFolders && strings.HasSuffix(prefix, "/") {
    		return false
    	}
    
    	for _, sprefix := range v.ExcludedPrefixes {
    		// Note: all excluded prefix patterns end with `/` (See Validate)
    		sprefix.Prefix += "*"
    
    		if matched := wildcard.MatchSimple(sprefix.Prefix, prefix); matched {
    			return false
    		}
    	}
    	return true
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  5. internal/bucket/versioning/versioning_test.go

    	for i, prefix := range testPrefixes {
    		if v.PrefixEnabled(prefix) || !v.PrefixSuspended(prefix) {
    			t.Fatalf("Test %d: Expected versioning to be excluded for %s", i+1, prefix)
    		}
    	}
    
    	// Test applicability for regular objects
    	if prefix := "prefix-1/obj-1"; !v.PrefixEnabled(prefix) || v.PrefixSuspended(prefix) {
    		t.Fatalf("Expected versioning to be enabled for %s", prefix)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun May 08 05:06:44 GMT 2022
    - 8.8K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

            validateStringNotEmpty(
                    prefix, "version", problems, Severity.ERROR, Version.BASE, d.getVersion(), d.getManagementKey(), d);
        }
    
        private void validateRawRepositories(
                ModelProblemCollector problems,
                List<Repository> repositories,
                String prefix,
                String prefix2,
                ModelBuilderRequest request) {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 65K bytes
    - Viewed (0)
  7. cmd/metacache_test.go

    			prefix: "prefix/obj.ext",
    			want:   "prefix/",
    		},
    		{
    			name:   "folderfolderobj",
    			prefix: "prefix/prefix2/obj.ext",
    			want:   "prefix/prefix2/",
    		},
    		{
    			name:   "folderfolder",
    			prefix: "prefix/prefix2/",
    			want:   "prefix/prefix2/",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := baseDirFromPrefix(tt.prefix); got != tt.want {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    				}
    
    				if len(testCase.result.Prefixes) != len(result.Prefixes) {
    					t.Log(testCase, testCase.result.Prefixes, result.Prefixes)
    					t.Fatalf("%s: Expected number of prefixes in the result to be '%d', but found '%d' prefixes instead", instanceType, len(testCase.result.Prefixes), len(result.Prefixes))
    				}
    				for j := 0; j < len(testCase.result.Prefixes); j++ {
    					if testCase.result.Prefixes[j] != result.Prefixes[j] {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

            resolver("${prefix}TestAllDistributionPath", "gradle-all-distribution-zip", allDistribution)
            resolver("${prefix}TestDocsDistributionPath", "gradle-docs-distribution-zip", docsDistribution)
            resolver("${prefix}TestSrcDistributionPath", "gradle-src-distribution-zip", srcDistribution)
            resolver("${prefix}TestAgentsClasspath", LibraryElements.JAR)
        }
    
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Mon Feb 12 13:19:06 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  10. internal/bucket/replication/replication_test.go

    arkerReplication><DeleteReplication><Status>Disabled</Status></DeleteReplication><Prefix>key-prefix</Prefix><Destination><Bucket>arn:minio:replication:::destinationbucket</Bucket></Destination></Rule><Rule><Status>Enabled</Status><Priority>3</Priority><DeleteMarkerReplication><Status>Disabled</Status></DeleteMarkerReplication><DeleteReplication><Status>Disabled</Status></DeleteReplication><Prefix>key-prefix</Prefix><Destination><Bucket>arn:minio:replication:::destinationbucket2</Bucket></Destina...
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top