Table of Contents

Class HonuaCatalogClient

Namespace
Honua.Sdk.Admin.Catalog
Assembly
Honua.Sdk.Admin.dll

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

httpClient HttpClient

The 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

ns string

Metadata namespace.

name string

Group name.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CatalogGroup>

The group, or null when 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

serviceName string

Service name.

layerId int

Layer ID within the service.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CatalogLayer>

The layer detail, or null when it is not found.

GetServiceAsync(string, CancellationToken)

Gets one published service by name.

public Task<CatalogService?> GetServiceAsync(string serviceName, CancellationToken cancellationToken = default)

Parameters

serviceName string

Service name.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CatalogService>

The service detail, or null when 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

ns string

Metadata namespace.

name string

Descriptor name.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CatalogSourceDescriptor>

The source descriptor, or null when it is not found.

ListGroupsAsync(CatalogQueryOptions?, CancellationToken)

Lists metadata-backed catalog groups.

public Task<IReadOnlyList<CatalogGroup>> ListGroupsAsync(CatalogQueryOptions? options = null, CancellationToken cancellationToken = default)

Parameters

options CatalogQueryOptions

Filter, sort, and paging options.

cancellationToken CancellationToken

Cancellation 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

options CatalogQueryOptions

Filter, sort, and paging options.

cancellationToken CancellationToken

Cancellation 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

options CatalogQueryOptions

Filter, sort, and paging options.

cancellationToken CancellationToken

Cancellation 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

options CatalogQueryOptions

Filter, sort, and paging options.

cancellationToken CancellationToken

Cancellation 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

options CatalogQueryOptions

Search, filter, sort, and paging options.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<CatalogSearchResult>

Filtered and paged catalog items.