diff --git a/src/pkg/reg/adapter/harborsatellite/adapter.go b/src/pkg/reg/adapter/harborsatellite/adapter.go index 261a092104c..b78e209c91c 100644 --- a/src/pkg/reg/adapter/harborsatellite/adapter.go +++ b/src/pkg/reg/adapter/harborsatellite/adapter.go @@ -175,19 +175,19 @@ func (a adapter) HealthCheck() (string, error) { return model.Healthy, nil } -func (a adapter) FetchArtifacts(filters []*model.Filter) ([]*model.Resource, error) { +func (a adapter) FetchArtifacts(_ []*model.Filter) ([]*model.Resource, error) { return nil, nil } -func (a adapter) ManifestExist(repository, reference string) (exist bool, desc *distribution.Descriptor, err error) { +func (a adapter) ManifestExist(_, _ string) (exist bool, desc *distribution.Descriptor, err error) { return true, nil, nil } -func (a adapter) PullManifest(repository, reference string, accepttedMediaTypes ...string) (manifest distribution.Manifest, digest string, err error) { +func (a adapter) PullManifest(_, _ string, accepttedMediaTypes ...string) (manifest distribution.Manifest, digest string, err error) { return nil, "", ErrNotImplemented } -func (a adapter) PushManifest(repository, reference, mediaType string, payload []byte) (string, error) { +func (a adapter) PushManifest(_, _, _ string, _ []byte) (string, error) { return "", nil } @@ -215,11 +215,11 @@ func (a adapter) PushBlob(repository, digest string, size int64, blob io.Reader) return nil } -func (a adapter) MountBlob(srcRepository, digest, dstRepository string) (err error) { +func (a adapter) MountBlob(_, _, _ string) (err error) { return nil } -func (a adapter) CanBeMount(digest string) (mount bool, repository string, err error) { +func (a adapter) CanBeMount(_ string) (mount bool, repository string, err error) { return false, "", ErrNotImplemented }