-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regitry.Repository does not implement content.ReadOnlyGraphStorage #806
Comments
Thank @JefeDavis for mentioning this. reg, err := remote.NewRegistry("myreg")
if err != nil {
// handle error
}
repo, err := reg.Repository("myrepo")
if err != nil {
// handle error
}
target, ok := repo.(content.GraphTarget)
if !ok {
// handle exception
// note that *remote.Repository implements oras.GraphTarget
}
// use target with Copy or ExtendedCopy |
This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to prevent it from being closed in 30 days. |
This issue has been closed because there has been no activity for 30 days. |
Should this issue be revived for v3? |
This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to prevent it from being closed in 30 days. |
currently
remote.NewRepository("myreg/myrepo")
returns a remote.Repository objectbut i use
reg, err := remote.NewRegistry("myreg")
and then callreg.Repository("myrepo")
it returns a registry.Repository interface.Unfortunately this interface is missing the
Predecessors()
method which means that it does not implement the content.ReadOnlyGraphStoragethis means that while i can use
content.CopyGraph
, i cannot usecontent.ExtendedCopyGraph
The text was updated successfully, but these errors were encountered: