Skip to content

Allow to pass version-id-marker as an option to ListObjects #2126

@aiivashchenko

Description

@aiivashchenko

At the moment, it is not possible to list object versions starting with particular version of choice.
versionIDMarker is initialized with empty string in api-list.go#L408.
On response, if result.NextVersionIDMarker is present, versionIDMarker is set to its value, api-list.go#L501.
That is the only place, where versionIDMarker is updated, and it is the only variable that supplies value for listObjectVersionsQuery, where version-id-marker is set.

It'd be nice, if there would be an opportunity to set VersionIDMarker as a list option.

minio.ListObjectsOptions{
	WithVersions: true,
	Prefix: objectKey,
	VersionIDMarker: versionIDMarker,
}

The same is valid to key-marker; it is currently not present as an option as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions