Skip to content

Commit

Permalink
refactor!: rename namespaces to prefix OrasProject.Oras (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
  • Loading branch information
shizhMSFT authored Dec 26, 2023
1 parent 37507f6 commit 6debbd6
Show file tree
Hide file tree
Showing 59 changed files with 163 additions and 161 deletions.
56 changes: 28 additions & 28 deletions Oras.sln → OrasProject.Oras.sln
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Oras.Tests", "tests\OrasProject.Oras.Tests\Oras.Tests.csproj", "{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OrasProject.Oras", "src\OrasProject.Oras\OrasProject.Oras.csproj", "{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Release|Any CPU.Build.0 = Release|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OrasProject.Oras.Tests", "tests\OrasProject.Oras.Tests\OrasProject.Oras.Tests.csproj", "{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OrasProject.Oras", "src\OrasProject.Oras\OrasProject.Oras.csproj", "{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{70DFCE13-53AA-4CC2-8E1A-F73A1344A0CB}.Release|Any CPU.Build.0 = Release|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{547F152F-6F4D-4E5A-AD3A-C3BC5CDCFD27}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Constants/DockerMediaTypes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Constants
namespace OrasProject.Oras.Constants
{
public static class DockerMediaTypes
{
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Constants/OCIMediaTypes .cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Constants
namespace OrasProject.Oras.Constants
{
public static class OCIMediaTypes
{
Expand Down
14 changes: 7 additions & 7 deletions src/OrasProject.Oras/Content/Content.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
using Oras.Constants;
using Oras.Exceptions;
using Oras.Interfaces;
using Oras.Models;
using OrasProject.Oras.Exceptions;
using OrasProject.Oras.Interfaces;
using OrasProject.Oras.Models;
using OrasProject.Oras.Constants;
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Index = Oras.Models.Index;
using Index = OrasProject.Oras.Models.Index;

namespace Oras.Content
namespace OrasProject.Oras.Content
{
public static class Content
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public static async Task<IList<Descriptor>> SuccessorsAsync(IFetcher fetcher, De
/// <param name="desc"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Byte[]> FetchAllAsync(IFetcher fetcher, Descriptor desc, CancellationToken cancellationToken)
public static async Task<byte[]> FetchAllAsync(IFetcher fetcher, Descriptor desc, CancellationToken cancellationToken)
{
var stream = await fetcher.FetchAsync(desc, cancellationToken);
return await ReadAllAsync(stream, desc);
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Content/DigestUtility.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Oras.Exceptions;
using OrasProject.Oras.Exceptions;
using System;
using System.Security.Cryptography;
using System.Text.RegularExpressions;

namespace Oras.Content
namespace OrasProject.Oras.Content
{
internal static class DigestUtility
{
Expand Down
8 changes: 4 additions & 4 deletions src/OrasProject.Oras/Copy.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Oras.Interfaces;
using Oras.Models;
using OrasProject.Oras.Interfaces;
using OrasProject.Oras.Models;
using System;
using System.Threading;
using System.Threading.Tasks;
using static Oras.Content.Content;
using static OrasProject.Oras.Content.Content;

namespace Oras
namespace OrasProject.Oras
{
public class Copy
{
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Exceptions/AlreadyExistsException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// AlreadyExistsException is thrown when a resource already exists.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// InvalidDescriptorSizeException is thrown when a descriptor size is invalid.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Exceptions/InvalidDigestException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// InvalidDigestException is thrown when a digest is invalid.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// InvalidReferenceException is thrown when the reference is invlid
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// MismatchedDigestException is thrown when a digest does not match the content.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// MissingReferenceException is thrown when a reference is missing.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Exceptions/NotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// NotFoundException is thrown when a resource is not found.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// SizeExceedsLimitException is thrown when a size exceeds the limit.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Exceptions/UnsupportedException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
/// <summary>
/// UnsupportedException is thrown when a feature is not supported.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Oras.Exceptions
namespace OrasProject.Oras.Exceptions
{
public class UnsupportedVersionException : Exception
{
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/IDeleter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IDeleter removes content.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/IFetcher.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IFetcher fetches content.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/IReadOnlyStorage.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IReadOnlyStorage represents a read-only Storage.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/IReadOnlyTarget.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IReadOnlyTarget represents a read-only Target.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/IResolver.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IResolver resolves reference tags.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/IStorage.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// IStorage represents a content-addressable storage (CAS) where contents are accessed via Descriptors.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/ITagResolver.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// ITagResolver provides reference tag indexing services.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/ITagger.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// ITagger tags reference tags
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/ITarget.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces
namespace OrasProject.Oras.Interfaces
{
/// <summary>
/// Target is a CAS with generic tags
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/Registry/IBlobStore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// IBlobStore is a CAS with the ability to stat and delete its content.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/Registry/IManifestStore.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// IManifestStore is a CAS with the ability to stat and delete its content.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/Registry/IReferenceFetcher.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// IReferenceFetcher provides advanced fetch with the tag service.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/Registry/IReferencePusher.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Oras.Models;
using OrasProject.Oras.Models;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// IReferencePusher provides advanced push with the tag service.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/Registry/IRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
public interface IRegistry
{
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/Registry/IRepository.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// Repository is an ORAS target and an union of the blob and the manifest CASs.
Expand Down
4 changes: 2 additions & 2 deletions src/OrasProject.Oras/Interfaces/Registry/IRepositoryOption.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Oras.Remote;
using OrasProject.Oras.Remote;
using System.Net.Http;

namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// IRepositoryOption is used to configure a remote repository.
Expand Down
2 changes: 1 addition & 1 deletion src/OrasProject.Oras/Interfaces/Registry/ITagLister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace Oras.Interfaces.Registry
namespace OrasProject.Oras.Interfaces.Registry
{
/// <summary>
/// ITagLister lists tags by the tag service.
Expand Down
8 changes: 4 additions & 4 deletions src/OrasProject.Oras/Memory/MemoryGraph.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Oras.Interfaces;
using Oras.Models;
using OrasProject.Oras.Interfaces;
using OrasProject.Oras.Models;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using static Oras.Content.Content;
using static OrasProject.Oras.Content.Content;

namespace Oras.Memory
namespace OrasProject.Oras.Memory
{
internal class MemoryGraph
{
Expand Down
Loading

0 comments on commit 6debbd6

Please sign in to comment.