Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for pkpass (0.08 sec)

  1. internal/disk/directio_darwin.go

    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	_, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0)
    	return err
    }
    
    // AlignedBlock - pass through to directio implementation.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. internal/disk/directio_unix.go

    import (
    	"os"
    	"syscall"
    
    	"github.com/ncw/directio"
    	"golang.org/x/sys/unix"
    )
    
    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = true
    
    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SigningDigest.java

        static LogStream log = LogStream.getInstance();
    
        private MessageDigest digest;
        private byte[] macSigningKey;
        private boolean bypass = false;
        private int updates;
        private int signSequence;
    
        public SigningDigest(byte[] macSigningKey, boolean bypass) throws SmbException {
            try {
                digest = MessageDigest.getInstance("MD5");
            } catch (NoSuchAlgorithmException ex) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7K bytes
    - Viewed (0)
  4. tests/test_invalid_path_param.py

            @app.get("/items/{id}")
            def read_items(id: List[Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: Tuple[Item, Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_dict():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jun 03 17:59:40 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  5. docs/bucket/retention/README.md

    ```
    
    See <https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html> for AWS S3 spec on object locking and permissions required for object retention and governance bypass overrides.
    
    ### Set legal hold on an object
    
    PutObject API allows setting legal hold using `x-amz-object-lock-legal-hold` header.
    
    ```sh
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  6. logger/sql_test.go

    		},
    		{
    			SQL:           "create table users (name, age, height, actived, bytes, create_at, update_at, deleted_at, email, role, pass) values (@p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11)",
    			NumericRegexp: regexp.MustCompile(`@p(\d+)`),
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. tests/test_response_model_invalid.py

    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import FastAPIError
    
    
    class NonPydanticModel:
        pass
    
    
    def test_invalid_response_model_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", response_model=NonPydanticModel)
            def read_root():
                pass  # pragma: nocover
    
    
    def test_invalid_response_model_sub_type_raises():
        with pytest.raises(FastAPIError):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 29 13:04:35 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  8. tests/test_response_model_sub_types.py

    @app.get("/valid1", responses={"500": {"model": int}})
    def valid1():
        pass
    
    
    @app.get("/valid2", responses={"500": {"model": List[int]}})
    def valid2():
        pass
    
    
    @app.get("/valid3", responses={"500": {"model": Model}})
    def valid3():
        pass
    
    
    @app.get("/valid4", responses={"500": {"model": List[Model]}})
    def valid4():
        pass
    
    
    client = TestClient(app)
    
    
    def test_path_operations():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. tests/test_ws_router.py

        pass  # pragma: no cover
    
    
    async def ws_dependency_validate(x_missing: str = Header()):
        pass  # pragma: no cover
    
    
    @router.websocket("/depends-validate/")
    async def router_ws_depends_validate(
        websocket: WebSocket, data=Depends(ws_dependency_validate)
    ):
        pass  # pragma: no cover
    
    
    class CustomError(Exception):
        pass
    
    
    @router.websocket("/custom_error/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. tests/test_invalid_sequence_param.py

            def read_items(q: List[Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
            def read_items(q: Tuple[Item, Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    def test_invalid_dict():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top