RemoteRegistryOptions class
Immutable configuration options for a single remote template registry.
RemoteRegistryOptions describes how RemoteRegistryClient should connect to a specific registry endpoint. All fields are validated on construction; invalid values throw RegistryConfigurationException.
Security: credentials must never be stored in this object. Use RegistryAuthMode.bearerToken with a separately injected credential provider.
Constructors
- RemoteRegistryOptions({required String id, required String baseUrl, bool enabled = true, Duration requestTimeout = const Duration(seconds: 15), RegistryCachePolicy cachePolicy = RegistryCachePolicy.normal, Duration cacheTtl = const Duration(minutes: 5), RegistryAuthMode authMode = RegistryAuthMode.none, int maxResponseBytes = 5 * 1024 * 1024, String? displayName})
-
Creates validated RemoteRegistryOptions.
factory
Properties
- authMode → RegistryAuthMode
-
Authentication mode.
final
- baseUrl → String
-
Base URL of the registry endpoint.
final
- cachePolicy → RegistryCachePolicy
-
Cache policy controlling when cached data is used.
final
- cacheTtl → Duration
-
TTL for cached registry metadata.
final
- displayName → String?
-
Optional human-readable display name.
final
- enabled → bool
-
Whether this registry is active.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this registry within FPS configuration.
final
- maxResponseBytes → int
-
Maximum allowed response body size in bytes (default 5 MiB).
final
- requestTimeout → Duration
-
Maximum request timeout duration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? enabled, Duration? requestTimeout, RegistryCachePolicy? cachePolicy, Duration? cacheTtl, RegistryAuthMode? authMode, String? displayName, int? maxResponseBytes}) → RemoteRegistryOptions - Returns a copy with selected fields overridden.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited