CubeRegistryClient class final

The cube registry client.

Constructors

CubeRegistryClient({required String baseUrl, Client? client})
Creates a client against a registry base url (default: fa1.dev).

Properties

baseUrl → String
The registry base url, e.g. https://fa1.dev.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

download(CubeRegistryTemplate template) → Future<String>
Downloads template's manifest from <baseUrl>/cubes/<file> and verifies its sha256 — a mismatch refuses the bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
templates() → Future<List<CubeRegistryTemplate>>
Fetches the catalog: GET <baseUrl>/cubes/templates.json.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultBaseUrl → const String
The default registry base url.