Documentation
¶
Index ¶
- Constants
- type Adapter
- func (a *Adapter) Configure(cfg sources.AdapterConfig)
- func (a *Adapter) CredentialFields() []sources.CredentialField
- func (a *Adapter) DownloadFile(ctx context.Context, file sources.FileInfo, dst io.Writer, ...) error
- func (a *Adapter) FetchDeliveries(ctx context.Context, productID string) ([]sources.DeliveryInfo, error)
- func (a *Adapter) FetchFiles(ctx context.Context, productID, deliveryID string) ([]sources.FileInfo, error)
- func (a *Adapter) FetchProducts(ctx context.Context) ([]sources.ProductInfo, error)
- func (a *Adapter) ID() string
- func (a *Adapter) Name() string
- func (a *Adapter) SetCredentials(creds map[string]string)
- func (a *Adapter) ValidateCredentials(ctx context.Context) error
Constants ¶
View Source
const ( SourceID = "epo-bdds" SourceName = "EPO BDDS" )
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 EPO BDDS
func (*Adapter) Configure ¶ added in v0.1.5
func (a *Adapter) Configure(cfg sources.AdapterConfig)
Configure applies runtime configuration from the application
func (*Adapter) CredentialFields ¶
func (a *Adapter) CredentialFields() []sources.CredentialField
CredentialFields returns the required credential fields
func (*Adapter) DownloadFile ¶
func (a *Adapter) DownloadFile(ctx context.Context, file sources.FileInfo, dst io.Writer, progress sources.ProgressFunc) error
DownloadFile downloads a file
func (*Adapter) FetchDeliveries ¶
func (a *Adapter) FetchDeliveries(ctx context.Context, productID string) ([]sources.DeliveryInfo, error)
FetchDeliveries fetches deliveries for a product
func (*Adapter) FetchFiles ¶
func (a *Adapter) FetchFiles(ctx context.Context, productID, deliveryID string) ([]sources.FileInfo, error)
FetchFiles fetches files for a delivery
func (*Adapter) FetchProducts ¶
FetchProducts fetches all available products
func (*Adapter) SetCredentials ¶
SetCredentials sets the credentials for the adapter
Click to show internal directories.
Click to hide internal directories.