package
2.10.1+incompatible
Repository: https://github.com/sapcc/swift-http-import.git
Documentation: pkg.go.dev
# Functions
ReadConfiguration reads the configuration file.
# Constants
DeleteUnknownFiles is another strategy.
Some common values for ListEntriesError.Message that are always accompanied by an Inner error.
KeepUnknownFiles is the default cleanup strategy.
ReportUnknownFiles is another strategy.
StatusSwiftRateLimit is the non-standard HTTP status code used by Swift to indicate Too Many Requests.
TransferFailed means that an error occurred and was logged.
TransferSkipped means that the file was the same on both sides andnothing was transferred.
TransferSuccess means that the file was newer on the source and was sentto the target.
# Variables
ErrListAllFilesNotSupported is returned by ListAllFiles() for sources that only support ListEntries().
ErrListEntriesNotSupported is returned by ListEntries() for sources that only support ListAllFiles().
# Structs
CleanupConfiguration contains the "cleanup" section of a JobConfiguration.
Configuration contains the contents of the configuration file.
DebianSource is a URLSource containing a Debian repository.
Directory describes a directory on the source side which can be scraped.
ExpirationConfiguration contains the "expiration" section of a JobConfiguration.
File describes a single file which is mirrored as part of a Job.
FileSpec contains metadata for a File.
FileState is used by Source.GetFile() to describe the state of a file.
No description provided by the author
GPGConfiguration contains the configuration options relating to GPG signature verification for Debian/Yum repos.
Job describes a transfer job at runtime.
JobConfiguration describes a transfer job in the configuration file.
ListEntriesError is an error that occurs while scraping a directory.
MatchConfiguration contains the "match" section of a JobConfiguration.
Matcher determines if files shall be included or excluded in a transfer.
MatchError is returned by the functions on type Matcher.
SegmentingConfiguration contains the "segmenting" section of a JobConfiguration.
SourceUnmarshaler provides a yaml.Unmarshaler implementation for the Source interface.
StatsdConfiguration contains the configuration options relating to StatsD metric emission.
SwiftLocation contains all parameters required to establish a Swift connection.
URLSource describes a source that's accessible via HTTP.
YumSource is a URLSource containing a Yum repository.
# Interfaces
Source describes a place from which files can be fetched.
# Type aliases
AgeSpec is a timestamp that is deserialized from a duration in the format "<value> <unit>", e.g.
CleanupStrategy is an enum of legal values for the jobs[].cleanup.strategy configuration option.
TransferResult is the return type for PerformTransfer().