Skip to content

Retry support for network interactions #518

@shizhMSFT

Description

@shizhMSFT

What is the areas you would like to add the new feature to?

Notation CLI

Is your feature request related to a problem?

Currently, there is no retry logic in notation like notation sign or notation verify.

What solution do you propose?

Use oras.land/oras-go/v2/registry/remote/retry for retrying.

Pros:

  • Simple and easy to use

Cons:

  • Support retry only on read e.g.notation verify / notation list)

What alternatives have you considered?

Use github.com/hashicorp/go-retryablehttp.

Pros:

  • Supports retry on read and write operations (e.g. notation sign)

Cons:

  • New dependency introduced (license MPL 2.0)

Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions