httpsync

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeaderSetter added in v0.3.0

type HeaderSetter interface {
	SetHeader(*http.Request) error
}

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) *HttpDataSynchronizer

func NewS3 added in v0.5.0

func NewS3(path, url, region, endpoint string, credentials *config.SecretRef) *HttpDataSynchronizer

func (*HttpDataSynchronizer) Close

func (*HttpDataSynchronizer) Execute

func (s *HttpDataSynchronizer) Execute(ctx context.Context) (map[string]any, error)

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).

Jump to

Keyboard shortcuts

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