Class HonuaCatalogClient
HTTP client implementation for Honua portal and catalog discovery.
public sealed class HonuaCatalogClient : IHonuaCatalogClient
- Inheritance
-
HonuaCatalogClient
- Implements
- Inherited Members
Constructors
HonuaCatalogClient(HttpClient)
Initializes a new instance of the HonuaCatalogClient class.
public HonuaCatalogClient(HttpClient httpClient)
Parameters
httpClientHttpClientThe HTTP client configured with base address and auth handlers.
Methods
GetGroupAsync(string, string, CancellationToken)
Gets one metadata-backed catalog group.
public Task<CatalogGroup?> GetGroupAsync(string ns, string name, CancellationToken cancellationToken = default)
Parameters
nsstringMetadata namespace.
namestringGroup name.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CatalogGroup>
The group, or
nullwhen it is not found.
GetLayerAsync(string, int, CancellationToken)
Gets one layer by service name and layer ID.
public Task<CatalogLayer?> GetLayerAsync(string serviceName, int layerId, CancellationToken cancellationToken = default)
Parameters
serviceNamestringService name.
layerIdintLayer ID within the service.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CatalogLayer>
The layer detail, or
nullwhen it is not found.
GetServiceAsync(string, CancellationToken)
Gets one published service by name.
public Task<CatalogService?> GetServiceAsync(string serviceName, CancellationToken cancellationToken = default)
Parameters
serviceNamestringService name.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CatalogService>
The service detail, or
nullwhen it is not found.
GetSourceDescriptorAsync(string, string, CancellationToken)
Gets one metadata-backed saved SDK source descriptor.
public Task<CatalogSourceDescriptor?> GetSourceDescriptorAsync(string ns, string name, CancellationToken cancellationToken = default)
Parameters
nsstringMetadata namespace.
namestringDescriptor name.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CatalogSourceDescriptor>
The source descriptor, or
nullwhen it is not found.
ListGroupsAsync(CatalogQueryOptions?, CancellationToken)
Lists metadata-backed catalog groups.
public Task<IReadOnlyList<CatalogGroup>> ListGroupsAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCatalogQueryOptionsFilter, sort, and paging options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<CatalogGroup>>
Catalog groups.
ListLayersAsync(CatalogQueryOptions?, CancellationToken)
Lists layers discovered from service metadata.
public Task<IReadOnlyList<CatalogLayer>> ListLayersAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCatalogQueryOptionsFilter, sort, and paging options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<CatalogLayer>>
Catalog layer details.
ListServicesAsync(CatalogQueryOptions?, CancellationToken)
Lists published services.
public Task<IReadOnlyList<CatalogService>> ListServicesAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCatalogQueryOptionsFilter, sort, and paging options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<CatalogService>>
Published services.
ListSourceDescriptorsAsync(CatalogQueryOptions?, CancellationToken)
Lists metadata-backed saved SDK source descriptors.
public Task<IReadOnlyList<CatalogSourceDescriptor>> ListSourceDescriptorsAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCatalogQueryOptionsFilter, sort, and paging options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<IReadOnlyList<CatalogSourceDescriptor>>
Saved SDK source descriptors.
SearchAsync(CatalogQueryOptions?, CancellationToken)
Searches services and layers by default. Explicit group/source-descriptor kinds and metadata filters require the legacy metadata-resource API; server errors propagate.
public Task<CatalogSearchResult> SearchAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsCatalogQueryOptionsSearch, filter, sort, and paging options.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<CatalogSearchResult>
Filtered and paged catalog items.