Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTokenDriverDependencies ¶
RegisterTokenDriverDependencies registers the dependencies of the token drivers in the passed dig container. This is necessary because token drivers now depend on localized interfaces rather than concrete service implementations. This function bridges the gap by providing the container with the necessary mappings from concrete types (e.g., *network.Provider, *vault.Provider) to the interfaces expected by the drivers (e.g., cdriver.NetworkProvider, cdriver.VaultProvider). When implementing a custom SDK, this function must be called in the Install method to ensure drivers can be correctly instantiated. For example:
func (p *SDK) Install() error {
// ...
if err := sdk.RegisterTokenDriverDependencies(p.Container()); err != nil {
return err
}
// ...
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.