Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, client config.ClientInterface, cfg config.Config) (types.Importer, error)
Create creates a new Importer instance for the given client and configuration.
func Register ¶
func Register(importType config.ImportType, fn ImporterFunc)
Register registers a function that creates an Importer instance for a given import type. It panics if the same import type is registered twice to prevent duplications at compile-time.
func Replace ¶
func Replace(importType config.ImportType, fn ImporterFunc)
Replace overwrites the ImporterFunc for the given import type. Unlike Register, it does not panic on duplicates. Use in tests to inject custom importers.
Types ¶
Click to show internal directories.
Click to hide internal directories.