Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSyncOption ¶ added in v0.6.0
type HTTPSyncOption func(*HttpDataSynchronizer)
func WithMetadataFields ¶ added in v0.6.0
func WithMetadataFields(fields []string) HTTPSyncOption
WithMetadataFields configures which metadata fields should be computed. If not specified or empty, no expensive metadata (like hash) will be computed.
type HeaderSetter ¶ added in v0.3.0
type HttpDataSynchronizer ¶
type HttpDataSynchronizer struct {
// contains filtered or unexported fields
}
HttpDataSynchronizer is a struct that implements the Synchronizer interface for downloading JSON from HTTP endpoints.
func New ¶
func New(path, url, method, body string, headers map[string]any, credentials *config.SecretRef, opts ...HTTPSyncOption) *HttpDataSynchronizer
func NewS3 ¶ added in v0.5.0
func NewS3(path, url, region, endpoint string, credentials *config.SecretRef, opts ...HTTPSyncOption) *HttpDataSynchronizer
func (*HttpDataSynchronizer) Close ¶
func (*HttpDataSynchronizer) Close(context.Context)
func (*HttpDataSynchronizer) WithSecretProvider ¶ added in v0.5.0
func (s *HttpDataSynchronizer) WithSecretProvider(provider pkgsync.SecretProvider) *HttpDataSynchronizer
WithSecretProvider configures the synchronizer to use an external SecretProvider for authentication. This allows external projects to integrate their own secret management systems (e.g., Whisper, Vault).
Click to show internal directories.
Click to hide internal directories.