Skip to content

Add Client PrepareFetch Method #244

@lmphil

Description

@lmphil

The Git and OCI clients have their own methods that run before actually performing a fetch operation (named cloneRepo and createRepository respectively). For consistency between clients, and similar to the PreparePush method for the Push operation, we should implement a PrepareFetch method with the following signature:

PrepareFetch(url *netutil.URL, auth *netutil.BasicAuth, opts *options.Options) error

Consequently, the top level Fetch function must be updated to call PrepareFetch before it calls the specialized client's Fetch method.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions