Skip to content

File store to support context cancel #619

Description

@Wwwsylvia

Adding a directory to file.Store could take a long time and sometimes users may want to cancel it.
Currently the ctx parameter is not used in the Add method and context cancel is not supported. We should consider adding this support for better user experience.

// Add adds a file into the file store.
func (s *Store) Add(_ context.Context, name, mediaType, path string) (ocispec.Descriptor, error) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions