sdk

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTokenDriverDependencies

func RegisterTokenDriverDependencies(container dig.Container) error

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.

Directories

Path Synopsis
mock
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL