Versions in this module Expand all Collapse all v0 v0.0.7 Jun 3, 2025 v0.0.6 Apr 10, 2025 v0.0.5 Apr 10, 2025 v0.0.4 Apr 10, 2025 v0.0.3 Apr 7, 2025 Changes in this version + const PropertyAll + const PropertyDate + const PropertyDir + const PropertyDrive + const PropertyExt + const PropertyMaxSize + const PropertyMimeType + const PropertyMinSize + const PropertyName + const PropertyNameSolo + const PropertyOther + const PropertyPath + var FuncMap = template.FuncMap type Config + Definitions []Definition + type Definition struct + Rules []string + Sources []string + type File struct + Date time.Time + Drive string + MimeType string + Name string + Path path.Local + Properties map[string]string + Size int + func (f *File) TargetURL(rules []Rule, isTest bool) (string, error) + type Files []*File type Property + Name string + type S3Hosts struct + Configs map[string]S3Config + func (s *S3Hosts) Load(file path.Local) error v0.0.2 Apr 7, 2025 v0.0.1 Apr 7, 2025 Changes in this version + func GetS3Client(s S3Config) (*s3.S3, error) + func GetS3ObjectData(s S3Config, s3client *s3.S3, path string) ([]byte, error) + func MoveURL(u string, s3configFile path.Local, fl *FileWithProperties, testonly bool) error + func PutS3ObjectData(checksumsha256 string, s S3Config, s3client *s3.S3, path string, bt []byte) error + func Run(configFile path.Local, s3configFile path.Local, isTest bool) error + type Config struct + Rules []Rule + Sources []string + type FileProp string + const All + const Date + const Dir + const Drive + const Ext + const MaxSize + const MimeType + const MinSize + const Name + const NameSolo + const Path + const Prop + func (p FileProp) String() string + type FileWithProperties struct + Date time.Time + Drive string + MimeType string + Name string + Path path.Local + Properties map[string]string + Size int + func (f FileWithProperties) TargetURL(c Config) string + type FilesWithProperties []*FileWithProperties + func FindFiles(dir path.Local) (FilesWithProperties, error) + type Matcher struct + Pattern string + Property Property + func (m Matcher) Matches(f FileWithProperties) bool + type Matchers []Matcher + func (m Matchers) Matches(f FileWithProperties) bool + type Property struct + Prop FileProp + Val any + type Rule struct + Matchers Matchers + URLPattern string + func (r Rule) Matches(f FileWithProperties) bool + type S3Config struct + Bucket string + ClientRegion string + Endpoint string + Key string + Region string + Secret string + SubPath string + type S3HostsConfigs struct + Configs map[string]S3Config