s3_file Derived Type

type, private :: s3_file

Internal file handle type for managing S3 objects as file-like entities.

This type maintains the state of an open S3 object, including its content buffer, read/write position, and mode. Used internally by the module.


Components

Type Visibility Attributes Name Initial
logical, public :: is_open = .false.
character(len=256), public :: key = ''
character(len=:), public, allocatable :: buffer
integer, public :: position = 1
logical, public :: is_write = .false.

Source Code

    type :: s3_file
        logical :: is_open = .false.                !< Whether this file handle is in use
        character(len=256) :: key = ''              !< S3 object key
        character(len=:), allocatable :: buffer     !< Content buffer
        integer :: position = 1                     !< Current read/write position
        logical :: is_write = .false.               !< Write mode flag
    end type s3_file