Skip to content

Commit cac2962

Browse files
committed
refactor: delete adapters.py
Signed-off-by: jiwangCHEN <hyper1char@gmail.com>
1 parent 4f89dc6 commit cac2962

6 files changed

Lines changed: 392 additions & 1363 deletions

File tree

oras/copy/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
ReferenceFetcher - Fetch by reference (resolve + fetch in one call)
2525
Mounter - Cross-repo blob mounting
2626
27-
Adapters:
28-
RegistryTarget - Adapts Registry + container to Target/ReferencePusher/Mounter
29-
LayoutTarget - Adapts Layout directory to Target (full read/write)
27+
Concrete targets that bridge this engine to a registry or an OCI layout:
28+
:class:`oras.provider.RegistryTarget` and :class:`oras.layout.layout.LayoutTarget`.
3029
"""
3130

3231
__author__ = "The ORAS Authors"
@@ -47,7 +46,6 @@
4746
TagResolver,
4847
Target,
4948
)
50-
from oras.copy.adapters import LayoutTarget, RegistryTarget
5149
from oras.copy.copy import copy
5250
from oras.copy.errors import CopyError, CopyErrorOrigin
5351
from oras.copy.graph import SkipNode
@@ -81,7 +79,4 @@
8179
"ReferencePusher",
8280
"ReferenceFetcher",
8381
"Mounter",
84-
# Adapters
85-
"RegistryTarget",
86-
"LayoutTarget",
8782
]

oras/copy/adapters.py

Lines changed: 0 additions & 368 deletions
This file was deleted.

0 commit comments

Comments
 (0)