dpma

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceID            = "dpma-connect-plus"
	SourceName          = "DPMA Connect Plus"
	DefaultWeeksToFetch = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter implements the sources.Adapter interface for DPMA Connect Plus.

func New

func New() *Adapter

New creates a new DPMA Connect Plus adapter.

func (*Adapter) Configure

func (a *Adapter) Configure(cfg sources.AdapterConfig)

func (*Adapter) CredentialFields

func (a *Adapter) CredentialFields() []sources.CredentialField

func (*Adapter) DownloadFile

func (a *Adapter) DownloadFile(ctx context.Context, file sources.FileInfo, dst io.Writer, progress sources.ProgressFunc) error

func (*Adapter) FetchDeliveries

func (a *Adapter) FetchDeliveries(_ context.Context, productID string) ([]sources.DeliveryInfo, error)

func (*Adapter) FetchFiles

func (a *Adapter) FetchFiles(_ context.Context, productID, deliveryID string) ([]sources.FileInfo, error)

func (*Adapter) FetchProducts

func (a *Adapter) FetchProducts(_ context.Context) ([]sources.ProductInfo, error)

func (*Adapter) ID

func (a *Adapter) ID() string

func (*Adapter) Name

func (a *Adapter) Name() string

func (*Adapter) SetCredentials

func (a *Adapter) SetCredentials(creds map[string]string)

func (*Adapter) ValidateCredentials

func (a *Adapter) ValidateCredentials(ctx context.Context) error

Jump to

Keyboard shortcuts

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