Skip to content

Commit

Permalink
fix(ResourceOriented): Renamed IRepository and related implementation…
Browse files Browse the repository at this point in the history
…s to IResourceRepository, to avoid clashes with the IRepository interface
  • Loading branch information
cdavernas committed May 7, 2024
1 parent ff53774 commit 8be6be5
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static async Task<Namespace> CreateNamespaceAsync(this IDatabase database
/// Gets the definition of the specified resource type
/// </summary>
/// <typeparam name="TResource">The type of <see cref="IResource"/> to get the definition of</typeparam>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/></param>
/// <returns>The resource definition with the specified name, if any</returns>
public static Task<IResourceDefinition?> GetDefinitionAsync<TResource>(this IDatabase database, CancellationToken cancellationToken = default)
Expand All @@ -85,7 +85,7 @@ public static async Task<Namespace> CreateNamespaceAsync(this IDatabase database
/// <summary>
/// Gets all <see cref="IResourceDefinition"/>s
/// </summary>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="labelSelectors">A collection of objects used to configure the labels to filter the <see cref="IResourceDefinition"/>s to list by</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/></param>
/// <returns>A new <see cref="IAsyncEnumerable{T}"/> used to asynchronously enumerate <see cref="IResourceDefinition"/>s</returns>
Expand All @@ -97,7 +97,7 @@ public static IAsyncEnumerable<IResourceDefinition> GetDefinitionsAsync(this IDa
/// <summary>
/// Lists <see cref="IResourceDefinition"/>s
/// </summary>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="labelSelectors">A collection of objects used to configure the labels to filter the <see cref="IResourceDefinition"/>s to list by</param>
/// <param name="maxResults">The maximum amount of results that should be returned</param>
/// <param name="continuationToken">A value used to continue paging resource definitions, in the context of a paging request</param>
Expand All @@ -112,7 +112,7 @@ public static async Task<ICollection<ResourceDefinition>> ListDefinitionsAsync(t
/// Gets the <see cref="IResource"/> with the specified name, if any
/// </summary>
/// <typeparam name="TResource">The type of <see cref="IResource"/> to get</typeparam>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="name">The name of the <see cref="IResource"/> to get</param>
/// <param name="namespace">The namespace the <see cref="IResource"/> to get belongs to, if any</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/></param>
Expand All @@ -130,7 +130,7 @@ public static async Task<ICollection<ResourceDefinition>> ListDefinitionsAsync(t
/// Lists <see cref="IResource"/>s of the specified type
/// </summary>
/// <typeparam name="TResource">The type of <see cref="IResource"/>s to list</typeparam>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="namespace">The namespace the <see cref="IResource"/>s to list belongs to, if any. If not set, lists resources across all namespaces</param>
/// <param name="labelSelectors">A collection of objects used to configure the labels to filter the <see cref="IResource"/>s to list by</param>
/// <param name="maxResults">The maximum amount of results that should be returned</param>
Expand All @@ -149,7 +149,7 @@ public static async Task<ICollection<TResource>> ListResourcesAsync<TResource>(t
/// Streams <see cref="IResource"/>s of the specified type
/// </summary>
/// <typeparam name="TResource">The type of <see cref="IResource"/>s to stream</typeparam>
/// <param name="database">The extended <see cref="IRepository"/></param>
/// <param name="database">The extended <see cref="IResourceRepository"/></param>
/// <param name="namespace">The namespace the <see cref="IResource"/>s to stream belongs to, if any. If not set, streams resources across all namespaces</param>
/// <param name="labelSelectors">A collection of objects used to configure the labels to filter the <see cref="IResource"/>s to stream by</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/></param>
Expand Down
Loading

0 comments on commit 8be6be5

Please sign in to comment.